@vef-framework/components 1.0.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/README.md +27 -0
- package/dist/index.d.ts +65 -0
- package/dist/index.js +3 -0
- package/dist/internal/index.d.ts +1 -0
- package/dist/internal/index.js +3 -0
- package/dist/internal/utils.d.ts +9 -0
- package/dist/internal/utils.js +3 -0
- package/dist/vef-access-denied/access-denied-icon.d.ts +4 -0
- package/dist/vef-access-denied/access-denied-icon.js +3 -0
- package/dist/vef-access-denied/index.d.ts +5 -0
- package/dist/vef-access-denied/index.js +29 -0
- package/dist/vef-access-denied/props.d.ts +18 -0
- package/dist/vef-action-buttons/index.d.ts +6 -0
- package/dist/vef-action-buttons/index.js +3 -0
- package/dist/vef-action-buttons/props.d.ts +23 -0
- package/dist/vef-badge/index.d.ts +5 -0
- package/dist/vef-badge/index.js +3 -0
- package/dist/vef-badge/props.d.ts +28 -0
- package/dist/vef-bool/hooks/use-bool-instance.d.ts +6 -0
- package/dist/vef-bool/hooks/use-bool-instance.js +3 -0
- package/dist/vef-bool/index.d.ts +4 -0
- package/dist/vef-bool/index.js +3 -0
- package/dist/vef-bool/props.d.ts +63 -0
- package/dist/vef-button/components/base-button.d.ts +9 -0
- package/dist/vef-button/components/base-button.js +3 -0
- package/dist/vef-button/index.d.ts +4 -0
- package/dist/vef-button/index.js +3 -0
- package/dist/vef-button/props.d.ts +79 -0
- package/dist/vef-card/index.d.ts +5 -0
- package/dist/vef-card/index.js +3 -0
- package/dist/vef-card/props.d.ts +27 -0
- package/dist/vef-card-meta/index.d.ts +5 -0
- package/dist/vef-card-meta/index.js +3 -0
- package/dist/vef-card-meta/props.d.ts +7 -0
- package/dist/vef-checkbox/hooks/use-checkbox-instance.d.ts +11 -0
- package/dist/vef-checkbox/hooks/use-checkbox-instance.js +3 -0
- package/dist/vef-checkbox/hooks/use-data-options.d.ts +34 -0
- package/dist/vef-checkbox/hooks/use-data-options.js +3 -0
- package/dist/vef-checkbox/index.d.ts +6 -0
- package/dist/vef-checkbox/index.js +5 -0
- package/dist/vef-checkbox/props.d.ts +41 -0
- package/dist/vef-col/index.d.ts +5 -0
- package/dist/vef-col/index.js +3 -0
- package/dist/vef-col/props.d.ts +5 -0
- package/dist/vef-color-picker/index.d.ts +5 -0
- package/dist/vef-color-picker/index.js +3 -0
- package/dist/vef-color-picker/props.d.ts +28 -0
- package/dist/vef-compact/index.d.ts +5 -0
- package/dist/vef-compact/index.js +3 -0
- package/dist/vef-compact/props.d.ts +11 -0
- package/dist/vef-config-provider/fonts/din/bold.woff2.js +3 -0
- package/dist/vef-config-provider/fonts/din/regular.woff2.js +3 -0
- package/dist/vef-config-provider/hooks/use-ui-config.d.ts +46 -0
- package/dist/vef-config-provider/hooks/use-ui-config.js +3 -0
- package/dist/vef-config-provider/index.d.ts +5 -0
- package/dist/vef-config-provider/index.js +111 -0
- package/dist/vef-config-provider/props.d.ts +24 -0
- package/dist/vef-config-provider/reset-style.d.ts +4 -0
- package/dist/vef-config-provider/reset-style.js +257 -0
- package/dist/vef-config-provider/store.d.ts +12 -0
- package/dist/vef-config-provider/store.js +3 -0
- package/dist/vef-container/index.d.ts +5 -0
- package/dist/vef-container/index.js +3 -0
- package/dist/vef-container/props.d.ts +6 -0
- package/dist/vef-crud-page/components/crud-actions.d.ts +21 -0
- package/dist/vef-crud-page/components/crud-actions.js +3 -0
- package/dist/vef-crud-page/components/crud-filter.d.ts +31 -0
- package/dist/vef-crud-page/components/crud-filter.js +3 -0
- package/dist/vef-crud-page/components/crud-footer.d.ts +31 -0
- package/dist/vef-crud-page/components/crud-footer.js +9 -0
- package/dist/vef-crud-page/components/crud-form-modal.d.ts +18 -0
- package/dist/vef-crud-page/components/crud-form-modal.js +3 -0
- package/dist/vef-crud-page/components/crud-header.d.ts +32 -0
- package/dist/vef-crud-page/components/crud-header.js +3 -0
- package/dist/vef-crud-page/components/crud-table.d.ts +57 -0
- package/dist/vef-crud-page/components/crud-table.js +3 -0
- package/dist/vef-crud-page/hooks/use-action-buttons.d.ts +16 -0
- package/dist/vef-crud-page/hooks/use-action-buttons.js +3 -0
- package/dist/vef-crud-page/hooks/use-crud-context.d.ts +8 -0
- package/dist/vef-crud-page/hooks/use-crud-context.js +3 -0
- package/dist/vef-crud-page/hooks/use-crud-schema.d.ts +17 -0
- package/dist/vef-crud-page/hooks/use-crud-schema.js +3 -0
- package/dist/vef-crud-page/hooks/use-operation-buttons.d.ts +11 -0
- package/dist/vef-crud-page/hooks/use-operation-buttons.js +3 -0
- package/dist/vef-crud-page/index.d.ts +6 -0
- package/dist/vef-crud-page/index.js +3 -0
- package/dist/vef-crud-page/props.d.ts +84 -0
- package/dist/vef-crud-page/store.d.ts +119 -0
- package/dist/vef-crud-page/store.js +3 -0
- package/dist/vef-crud-page/types.d.ts +173 -0
- package/dist/vef-divider/index.d.ts +5 -0
- package/dist/vef-divider/index.js +3 -0
- package/dist/vef-divider/props.d.ts +25 -0
- package/dist/vef-drawer/components/action-button-wrapper.d.ts +14 -0
- package/dist/vef-drawer/components/action-button-wrapper.js +3 -0
- package/dist/vef-drawer/components/button-props.d.ts +15 -0
- package/dist/vef-drawer/components/button-props.js +2 -0
- package/dist/vef-drawer/components/cancel-action-button.d.ts +4 -0
- package/dist/vef-drawer/components/cancel-action-button.js +3 -0
- package/dist/vef-drawer/components/ok-action-button.d.ts +4 -0
- package/dist/vef-drawer/components/ok-action-button.js +3 -0
- package/dist/vef-drawer/context.d.ts +27 -0
- package/dist/vef-drawer/context.js +3 -0
- package/dist/vef-drawer/index.d.ts +5 -0
- package/dist/vef-drawer/index.js +10 -0
- package/dist/vef-drawer/props.d.ts +97 -0
- package/dist/vef-dropdown/index.d.ts +4 -0
- package/dist/vef-dropdown/index.js +3 -0
- package/dist/vef-dropdown/props.d.ts +68 -0
- package/dist/vef-empty/index.d.ts +5 -0
- package/dist/vef-empty/index.js +3 -0
- package/dist/vef-empty/props.d.ts +7 -0
- package/dist/vef-empty-placeholder/index.d.ts +5 -0
- package/dist/vef-empty-placeholder/index.js +7 -0
- package/dist/vef-empty-placeholder/props.d.ts +6 -0
- package/dist/vef-error/error-icon.d.ts +4 -0
- package/dist/vef-error/error-icon.js +3 -0
- package/dist/vef-error/index.d.ts +5 -0
- package/dist/vef-error/index.js +30 -0
- package/dist/vef-error/props.d.ts +18 -0
- package/dist/vef-filter/components/action-buttons.d.ts +3 -0
- package/dist/vef-filter/components/action-buttons.js +21 -0
- package/dist/vef-filter/components/advanced-filter.d.ts +13 -0
- package/dist/vef-filter/components/advanced-filter.js +11 -0
- package/dist/vef-filter/components/basic-filter.d.ts +14 -0
- package/dist/vef-filter/components/basic-filter.js +21 -0
- package/dist/vef-filter/components/fields/index.d.ts +9 -0
- package/dist/vef-filter/components/fields/index.js +3 -0
- package/dist/vef-filter/components/fields/input-number.d.ts +4 -0
- package/dist/vef-filter/components/fields/input-number.js +3 -0
- package/dist/vef-filter/components/fields/input.d.ts +4 -0
- package/dist/vef-filter/components/fields/input.js +3 -0
- package/dist/vef-filter/components/fields/props.d.ts +32 -0
- package/dist/vef-filter/components/filter-field.d.ts +4 -0
- package/dist/vef-filter/components/filter-field.js +3 -0
- package/dist/vef-filter/components/filter-item.d.ts +15 -0
- package/dist/vef-filter/components/filter-item.js +3 -0
- package/dist/vef-filter/event.d.ts +12 -0
- package/dist/vef-filter/event.js +3 -0
- package/dist/vef-filter/helper.d.ts +10 -0
- package/dist/vef-filter/helper.js +3 -0
- package/dist/vef-filter/hooks/use-action-handlers.d.ts +20 -0
- package/dist/vef-filter/hooks/use-action-handlers.js +3 -0
- package/dist/vef-filter/hooks/use-computed-values.d.ts +42 -0
- package/dist/vef-filter/hooks/use-computed-values.js +3 -0
- package/dist/vef-filter/hooks/use-filter-context.d.ts +8 -0
- package/dist/vef-filter/hooks/use-filter-context.js +3 -0
- package/dist/vef-filter/hooks/use-filter-initialization.d.ts +7 -0
- package/dist/vef-filter/hooks/use-filter-initialization.js +3 -0
- package/dist/vef-filter/hooks/use-filter-instance.d.ts +10 -0
- package/dist/vef-filter/hooks/use-filter-instance.js +3 -0
- package/dist/vef-filter/hooks/use-filter-items.d.ts +13 -0
- package/dist/vef-filter/hooks/use-filter-items.js +3 -0
- package/dist/vef-filter/hooks/use-filter-values-change.d.ts +11 -0
- package/dist/vef-filter/hooks/use-filter-values-change.js +3 -0
- package/dist/vef-filter/hooks/use-label-config.d.ts +14 -0
- package/dist/vef-filter/hooks/use-label-config.js +3 -0
- package/dist/vef-filter/index.d.ts +8 -0
- package/dist/vef-filter/index.js +10 -0
- package/dist/vef-filter/props.d.ts +106 -0
- package/dist/vef-filter/store.d.ts +77 -0
- package/dist/vef-filter/store.js +3 -0
- package/dist/vef-filter/types.d.ts +224 -0
- package/dist/vef-flex/index.d.ts +5 -0
- package/dist/vef-flex/index.js +3 -0
- package/dist/vef-flex/props.d.ts +12 -0
- package/dist/vef-float-button/index.d.ts +5 -0
- package/dist/vef-float-button/index.js +3 -0
- package/dist/vef-float-button/props.d.ts +26 -0
- package/dist/vef-float-button-group/index.d.ts +5 -0
- package/dist/vef-float-button-group/index.js +3 -0
- package/dist/vef-float-button-group/props.d.ts +11 -0
- package/dist/vef-form/components/fields/index.d.ts +10 -0
- package/dist/vef-form/components/fields/index.js +3 -0
- package/dist/vef-form/components/fields/input-number.d.ts +5 -0
- package/dist/vef-form/components/fields/input-number.js +3 -0
- package/dist/vef-form/components/fields/input.d.ts +5 -0
- package/dist/vef-form/components/fields/input.js +3 -0
- package/dist/vef-form/components/fields/props.d.ts +33 -0
- package/dist/vef-form/components/form-actions.d.ts +20 -0
- package/dist/vef-form/components/form-actions.js +5 -0
- package/dist/vef-form/components/form-content.d.ts +18 -0
- package/dist/vef-form/components/form-content.js +6 -0
- package/dist/vef-form/components/form-field.d.ts +5 -0
- package/dist/vef-form/components/form-field.js +3 -0
- package/dist/vef-form/components/form-group.d.ts +22 -0
- package/dist/vef-form/components/form-group.js +13 -0
- package/dist/vef-form/components/form-hidden-item.d.ts +14 -0
- package/dist/vef-form/components/form-hidden-item.js +3 -0
- package/dist/vef-form/components/form-item.d.ts +18 -0
- package/dist/vef-form/components/form-item.js +3 -0
- package/dist/vef-form/components/form-row.d.ts +26 -0
- package/dist/vef-form/components/form-row.js +3 -0
- package/dist/vef-form/event.d.ts +15 -0
- package/dist/vef-form/event.js +3 -0
- package/dist/vef-form/helper.d.ts +11 -0
- package/dist/vef-form/helper.js +3 -0
- package/dist/vef-form/hooks/use-action-handlers.d.ts +14 -0
- package/dist/vef-form/hooks/use-action-handlers.js +3 -0
- package/dist/vef-form/hooks/use-columns-layout.d.ts +12 -0
- package/dist/vef-form/hooks/use-columns-layout.js +3 -0
- package/dist/vef-form/hooks/use-computed-values.d.ts +42 -0
- package/dist/vef-form/hooks/use-computed-values.js +3 -0
- package/dist/vef-form/hooks/use-form-context.d.ts +6 -0
- package/dist/vef-form/hooks/use-form-context.js +3 -0
- package/dist/vef-form/hooks/use-form-initialization.d.ts +14 -0
- package/dist/vef-form/hooks/use-form-initialization.js +3 -0
- package/dist/vef-form/hooks/use-form-instance.d.ts +10 -0
- package/dist/vef-form/hooks/use-form-instance.js +3 -0
- package/dist/vef-form/hooks/use-form-values-change.d.ts +11 -0
- package/dist/vef-form/hooks/use-form-values-change.js +3 -0
- package/dist/vef-form/hooks/use-label-width.d.ts +9 -0
- package/dist/vef-form/hooks/use-label-width.js +3 -0
- package/dist/vef-form/index.d.ts +8 -0
- package/dist/vef-form/index.js +5 -0
- package/dist/vef-form/props.d.ts +158 -0
- package/dist/vef-form/store.d.ts +89 -0
- package/dist/vef-form/store.js +3 -0
- package/dist/vef-form/types.d.ts +335 -0
- package/dist/vef-form/validation-rules.d.ts +175 -0
- package/dist/vef-form/validation-rules.js +3 -0
- package/dist/vef-form-drawer/index.d.ts +9 -0
- package/dist/vef-form-drawer/index.js +3 -0
- package/dist/vef-form-drawer/props.d.ts +17 -0
- package/dist/vef-form-modal/index.d.ts +9 -0
- package/dist/vef-form-modal/index.js +3 -0
- package/dist/vef-form-modal/props.d.ts +20 -0
- package/dist/vef-grid/index.d.ts +5 -0
- package/dist/vef-grid/index.js +14 -0
- package/dist/vef-grid/props.d.ts +25 -0
- package/dist/vef-grid/props.js +3 -0
- package/dist/vef-grid-item/index.d.ts +5 -0
- package/dist/vef-grid-item/index.js +3 -0
- package/dist/vef-grid-item/props.d.ts +34 -0
- package/dist/vef-icon/index.d.ts +4 -0
- package/dist/vef-icon/index.js +3 -0
- package/dist/vef-icon/props.d.ts +12 -0
- package/dist/vef-input/hooks/use-input-instance.d.ts +12 -0
- package/dist/vef-input/hooks/use-input-instance.js +3 -0
- package/dist/vef-input/index.d.ts +4 -0
- package/dist/vef-input/index.js +3 -0
- package/dist/vef-input/props.d.ts +67 -0
- package/dist/vef-input-number/hooks/use-input-number-instance.d.ts +12 -0
- package/dist/vef-input-number/hooks/use-input-number-instance.js +3 -0
- package/dist/vef-input-number/index.d.ts +4 -0
- package/dist/vef-input-number/index.js +3 -0
- package/dist/vef-input-number/props.d.ts +124 -0
- package/dist/vef-loading-placeholder/index.d.ts +5 -0
- package/dist/vef-loading-placeholder/index.js +7 -0
- package/dist/vef-loading-placeholder/props.d.ts +6 -0
- package/dist/vef-login/index.d.ts +5 -0
- package/dist/vef-login/index.js +53 -0
- package/dist/vef-login/login-icon.d.ts +4 -0
- package/dist/vef-login/login-icon.js +3 -0
- package/dist/vef-login/props.d.ts +57 -0
- package/dist/vef-modal/components/action-button-wrapper.d.ts +14 -0
- package/dist/vef-modal/components/action-button-wrapper.js +3 -0
- package/dist/vef-modal/components/button-props.d.ts +15 -0
- package/dist/vef-modal/components/button-props.js +2 -0
- package/dist/vef-modal/components/cancel-action-button.d.ts +4 -0
- package/dist/vef-modal/components/cancel-action-button.js +3 -0
- package/dist/vef-modal/components/ok-action-button.d.ts +4 -0
- package/dist/vef-modal/components/ok-action-button.js +3 -0
- package/dist/vef-modal/context.d.ts +27 -0
- package/dist/vef-modal/context.js +3 -0
- package/dist/vef-modal/index.d.ts +5 -0
- package/dist/vef-modal/index.js +6 -0
- package/dist/vef-modal/props.d.ts +88 -0
- package/dist/vef-not-found/index.d.ts +5 -0
- package/dist/vef-not-found/index.js +30 -0
- package/dist/vef-not-found/not-found-icon.d.ts +4 -0
- package/dist/vef-not-found/not-found-icon.js +3 -0
- package/dist/vef-not-found/props.d.ts +18 -0
- package/dist/vef-page/index.d.ts +5 -0
- package/dist/vef-page/index.js +59 -0
- package/dist/vef-page/props.d.ts +29 -0
- package/dist/vef-pagination/index.d.ts +4 -0
- package/dist/vef-pagination/index.js +3 -0
- package/dist/vef-pagination/props.d.ts +59 -0
- package/dist/vef-pagination/props.js +3 -0
- package/dist/vef-paragraph/index.d.ts +5 -0
- package/dist/vef-paragraph/index.js +3 -0
- package/dist/vef-paragraph/props.d.ts +55 -0
- package/dist/vef-password/hooks/use-password-instance.d.ts +13 -0
- package/dist/vef-password/hooks/use-password-instance.js +3 -0
- package/dist/vef-password/index.d.ts +4 -0
- package/dist/vef-password/index.js +3 -0
- package/dist/vef-password/props.d.ts +58 -0
- package/dist/vef-popconfirm/index.d.ts +5 -0
- package/dist/vef-popconfirm/index.js +3 -0
- package/dist/vef-popconfirm/props.d.ts +33 -0
- package/dist/vef-popover/index.d.ts +5 -0
- package/dist/vef-popover/index.js +3 -0
- package/dist/vef-popover/props.d.ts +29 -0
- package/dist/vef-radio/hooks/use-data-options.d.ts +35 -0
- package/dist/vef-radio/hooks/use-data-options.js +3 -0
- package/dist/vef-radio/hooks/use-radio-instance.d.ts +11 -0
- package/dist/vef-radio/hooks/use-radio-instance.js +3 -0
- package/dist/vef-radio/index.d.ts +7 -0
- package/dist/vef-radio/index.js +5 -0
- package/dist/vef-radio/props.d.ts +59 -0
- package/dist/vef-rate/hooks/use-rate-instance.d.ts +12 -0
- package/dist/vef-rate/hooks/use-rate-instance.js +3 -0
- package/dist/vef-rate/index.d.ts +4 -0
- package/dist/vef-rate/index.js +3 -0
- package/dist/vef-rate/props.d.ts +25 -0
- package/dist/vef-responsive-container/index.d.ts +4 -0
- package/dist/vef-responsive-container/index.js +7 -0
- package/dist/vef-responsive-container/props.d.ts +21 -0
- package/dist/vef-responsive-item/index.d.ts +4 -0
- package/dist/vef-responsive-item/index.js +5 -0
- package/dist/vef-responsive-item/props.d.ts +12 -0
- package/dist/vef-ribbon/index.d.ts +5 -0
- package/dist/vef-ribbon/index.js +3 -0
- package/dist/vef-ribbon/props.d.ts +15 -0
- package/dist/vef-row/index.d.ts +5 -0
- package/dist/vef-row/index.js +3 -0
- package/dist/vef-row/props.d.ts +7 -0
- package/dist/vef-scroll-area/components/scrollbar.d.ts +2 -0
- package/dist/vef-scroll-area/components/scrollbar.js +34 -0
- package/dist/vef-scroll-area/index.d.ts +4 -0
- package/dist/vef-scroll-area/index.js +10 -0
- package/dist/vef-scroll-area/props.d.ts +24 -0
- package/dist/vef-select/components/option.d.ts +7 -0
- package/dist/vef-select/components/option.js +11 -0
- package/dist/vef-select/hooks/use-data-options.d.ts +37 -0
- package/dist/vef-select/hooks/use-data-options.js +3 -0
- package/dist/vef-select/hooks/use-field-names.d.ts +9 -0
- package/dist/vef-select/hooks/use-field-names.js +3 -0
- package/dist/vef-select/hooks/use-label-render.d.ts +11 -0
- package/dist/vef-select/hooks/use-label-render.js +10 -0
- package/dist/vef-select/hooks/use-option-render.d.ts +11 -0
- package/dist/vef-select/hooks/use-option-render.js +3 -0
- package/dist/vef-select/hooks/use-select-instance.d.ts +11 -0
- package/dist/vef-select/hooks/use-select-instance.js +3 -0
- package/dist/vef-select/index.d.ts +7 -0
- package/dist/vef-select/index.js +3 -0
- package/dist/vef-select/props.d.ts +153 -0
- package/dist/vef-slider/hooks/use-slider-instance.d.ts +12 -0
- package/dist/vef-slider/hooks/use-slider-instance.js +3 -0
- package/dist/vef-slider/index.d.ts +4 -0
- package/dist/vef-slider/index.js +3 -0
- package/dist/vef-slider/props.d.ts +72 -0
- package/dist/vef-sortable-list/components/overlay-item.d.ts +9 -0
- package/dist/vef-sortable-list/components/overlay-item.js +7 -0
- package/dist/vef-sortable-list/components/sortable-item.d.ts +21 -0
- package/dist/vef-sortable-list/components/sortable-item.js +7 -0
- package/dist/vef-sortable-list/hooks/use-merged-items.d.ts +10 -0
- package/dist/vef-sortable-list/hooks/use-merged-items.js +3 -0
- package/dist/vef-sortable-list/index.d.ts +7 -0
- package/dist/vef-sortable-list/index.js +3 -0
- package/dist/vef-sortable-list/props.d.ts +77 -0
- package/dist/vef-space/index.d.ts +5 -0
- package/dist/vef-space/index.js +3 -0
- package/dist/vef-space/props.d.ts +12 -0
- package/dist/vef-spin/index.d.ts +5 -0
- package/dist/vef-spin/index.js +3 -0
- package/dist/vef-spin/props.d.ts +12 -0
- package/dist/vef-splitter/index.d.ts +5 -0
- package/dist/vef-splitter/index.js +3 -0
- package/dist/vef-splitter/props.d.ts +16 -0
- package/dist/vef-splitter-panel/index.d.ts +5 -0
- package/dist/vef-splitter-panel/index.js +3 -0
- package/dist/vef-splitter-panel/props.d.ts +6 -0
- package/dist/vef-status/index.d.ts +5 -0
- package/dist/vef-status/index.js +3 -0
- package/dist/vef-status/props.d.ts +17 -0
- package/dist/vef-table/components/columns/bool.d.ts +5 -0
- package/dist/vef-table/components/columns/bool.js +3 -0
- package/dist/vef-table/components/columns/code.d.ts +4 -0
- package/dist/vef-table/components/columns/code.js +3 -0
- package/dist/vef-table/components/columns/data-dictionary.d.ts +4 -0
- package/dist/vef-table/components/columns/data-dictionary.js +3 -0
- package/dist/vef-table/components/columns/enum.d.ts +4 -0
- package/dist/vef-table/components/columns/enum.js +3 -0
- package/dist/vef-table/components/columns/file.d.ts +4 -0
- package/dist/vef-table/components/columns/file.js +3 -0
- package/dist/vef-table/components/columns/icon.d.ts +4 -0
- package/dist/vef-table/components/columns/icon.js +3 -0
- package/dist/vef-table/components/columns/id.d.ts +4 -0
- package/dist/vef-table/components/columns/id.js +3 -0
- package/dist/vef-table/components/columns/image.d.ts +4 -0
- package/dist/vef-table/components/columns/image.js +3 -0
- package/dist/vef-table/components/columns/index.d.ts +31 -0
- package/dist/vef-table/components/columns/index.js +3 -0
- package/dist/vef-table/components/columns/markdown.d.ts +4 -0
- package/dist/vef-table/components/columns/markdown.js +3 -0
- package/dist/vef-table/components/columns/number.d.ts +4 -0
- package/dist/vef-table/components/columns/number.js +3 -0
- package/dist/vef-table/components/columns/props.d.ts +24 -0
- package/dist/vef-table/components/columns/render.d.ts +4 -0
- package/dist/vef-table/components/columns/render.js +3 -0
- package/dist/vef-table/components/columns/rich-text.d.ts +4 -0
- package/dist/vef-table/components/columns/rich-text.js +3 -0
- package/dist/vef-table/components/columns/text.d.ts +4 -0
- package/dist/vef-table/components/columns/text.js +3 -0
- package/dist/vef-table/components/columns-settings.d.ts +2 -0
- package/dist/vef-table/components/columns-settings.js +54 -0
- package/dist/vef-table/components/operation-buttons.d.ts +22 -0
- package/dist/vef-table/components/operation-buttons.js +12 -0
- package/dist/vef-table/components/settings-icon.d.ts +2 -0
- package/dist/vef-table/components/settings-icon.js +5 -0
- package/dist/vef-table/components/table-footer.d.ts +34 -0
- package/dist/vef-table/components/table-footer.js +19 -0
- package/dist/vef-table/helper.d.ts +12 -0
- package/dist/vef-table/helper.js +3 -0
- package/dist/vef-table/hooks/use-computed-batch-buttons.d.ts +13 -0
- package/dist/vef-table/hooks/use-computed-batch-buttons.js +3 -0
- package/dist/vef-table/hooks/use-computed-columns.d.ts +10 -0
- package/dist/vef-table/hooks/use-computed-columns.js +3 -0
- package/dist/vef-table/hooks/use-computed-values.d.ts +45 -0
- package/dist/vef-table/hooks/use-computed-values.js +3 -0
- package/dist/vef-table/hooks/use-data.d.ts +11 -0
- package/dist/vef-table/hooks/use-data.js +3 -0
- package/dist/vef-table/hooks/use-default-column-configs.d.ts +9 -0
- package/dist/vef-table/hooks/use-default-column-configs.js +3 -0
- package/dist/vef-table/hooks/use-display-value.d.ts +32 -0
- package/dist/vef-table/hooks/use-display-value.js +3 -0
- package/dist/vef-table/hooks/use-helper-columns.d.ts +6 -0
- package/dist/vef-table/hooks/use-helper-columns.js +3 -0
- package/dist/vef-table/hooks/use-merged-value.d.ts +10 -0
- package/dist/vef-table/hooks/use-merged-value.js +3 -0
- package/dist/vef-table/hooks/use-operation-column-width.d.ts +11 -0
- package/dist/vef-table/hooks/use-operation-column-width.js +3 -0
- package/dist/vef-table/hooks/use-pagination-props.d.ts +17 -0
- package/dist/vef-table/hooks/use-pagination-props.js +3 -0
- package/dist/vef-table/hooks/use-row-props.d.ts +11 -0
- package/dist/vef-table/hooks/use-row-props.js +3 -0
- package/dist/vef-table/hooks/use-row-selection-config.d.ts +11 -0
- package/dist/vef-table/hooks/use-row-selection-config.js +3 -0
- package/dist/vef-table/hooks/use-table-columns.d.ts +12 -0
- package/dist/vef-table/hooks/use-table-columns.js +3 -0
- package/dist/vef-table/hooks/use-table-context.d.ts +9 -0
- package/dist/vef-table/hooks/use-table-context.js +3 -0
- package/dist/vef-table/hooks/use-table-instance.d.ts +10 -0
- package/dist/vef-table/hooks/use-table-instance.js +3 -0
- package/dist/vef-table/hooks/use-table-summary.d.ts +10 -0
- package/dist/vef-table/hooks/use-table-summary.js +3 -0
- package/dist/vef-table/hooks/use-table-width.d.ts +9 -0
- package/dist/vef-table/hooks/use-table-width.js +3 -0
- package/dist/vef-table/index.d.ts +7 -0
- package/dist/vef-table/index.js +56 -0
- package/dist/vef-table/props.d.ts +330 -0
- package/dist/vef-table/store.d.ts +21 -0
- package/dist/vef-table/store.js +3 -0
- package/dist/vef-table/types.d.ts +481 -0
- package/dist/vef-tabs/index.d.ts +5 -0
- package/dist/vef-tabs/index.js +3 -0
- package/dist/vef-tabs/props.d.ts +12 -0
- package/dist/vef-tag/index.d.ts +5 -0
- package/dist/vef-tag/index.js +3 -0
- package/dist/vef-tag/props.d.ts +20 -0
- package/dist/vef-temporal-picker/hooks/use-dayjs-value.d.ts +10 -0
- package/dist/vef-temporal-picker/hooks/use-dayjs-value.js +3 -0
- package/dist/vef-temporal-picker/hooks/use-temporal-formats.d.ts +8 -0
- package/dist/vef-temporal-picker/hooks/use-temporal-formats.js +3 -0
- package/dist/vef-temporal-picker/hooks/use-temporal-limit.d.ts +13 -0
- package/dist/vef-temporal-picker/hooks/use-temporal-limit.js +3 -0
- package/dist/vef-temporal-picker/hooks/use-temporal-picker-instance.d.ts +12 -0
- package/dist/vef-temporal-picker/hooks/use-temporal-picker-instance.js +3 -0
- package/dist/vef-temporal-picker/index.d.ts +5 -0
- package/dist/vef-temporal-picker/index.js +3 -0
- package/dist/vef-temporal-picker/props.d.ts +101 -0
- package/dist/vef-temporal-range-picker/hooks/use-dayjs-values.d.ts +10 -0
- package/dist/vef-temporal-range-picker/hooks/use-dayjs-values.js +3 -0
- package/dist/vef-temporal-range-picker/hooks/use-temporal-formats.d.ts +8 -0
- package/dist/vef-temporal-range-picker/hooks/use-temporal-formats.js +3 -0
- package/dist/vef-temporal-range-picker/hooks/use-temporal-limit.d.ts +13 -0
- package/dist/vef-temporal-range-picker/hooks/use-temporal-limit.js +3 -0
- package/dist/vef-temporal-range-picker/hooks/use-temporal-range-picker-instance.d.ts +12 -0
- package/dist/vef-temporal-range-picker/hooks/use-temporal-range-picker-instance.js +3 -0
- package/dist/vef-temporal-range-picker/index.d.ts +5 -0
- package/dist/vef-temporal-range-picker/index.js +3 -0
- package/dist/vef-temporal-range-picker/props.d.ts +82 -0
- package/dist/vef-temporal-range-picker/props.js +3 -0
- package/dist/vef-text/index.d.ts +5 -0
- package/dist/vef-text/index.js +3 -0
- package/dist/vef-text/props.d.ts +47 -0
- package/dist/vef-textarea/hooks/use-textarea-instance.d.ts +13 -0
- package/dist/vef-textarea/hooks/use-textarea-instance.js +3 -0
- package/dist/vef-textarea/index.d.ts +4 -0
- package/dist/vef-textarea/index.js +3 -0
- package/dist/vef-textarea/props.d.ts +58 -0
- package/dist/vef-title/index.d.ts +5 -0
- package/dist/vef-title/index.js +15 -0
- package/dist/vef-title/props.d.ts +39 -0
- package/dist/vef-tooltip/index.d.ts +5 -0
- package/dist/vef-tooltip/index.js +3 -0
- package/dist/vef-tooltip/props.d.ts +30 -0
- package/dist/vef-tree-select/hooks/use-change-handler.d.ts +10 -0
- package/dist/vef-tree-select/hooks/use-change-handler.js +3 -0
- package/dist/vef-tree-select/hooks/use-data-options.d.ts +36 -0
- package/dist/vef-tree-select/hooks/use-data-options.js +3 -0
- package/dist/vef-tree-select/hooks/use-tree-select-instance.d.ts +11 -0
- package/dist/vef-tree-select/hooks/use-tree-select-instance.js +3 -0
- package/dist/vef-tree-select/index.d.ts +7 -0
- package/dist/vef-tree-select/index.js +3 -0
- package/dist/vef-tree-select/props.d.ts +142 -0
- package/package.json +56 -0
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
import type { Align, ColorType, Consumer, Dimensions, EmptyObject, Expression, IdValue, LengthValue, LiteralUnion, Mapper, MaybeComputed, MaybeUndefined, NonEmptyArray, ObjectType, ObjectValue, Provider, QueryRefetchResult, StringKey, TriMapper } from "@vef-framework/shared";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
/**
|
|
4
|
+
* The fixed type of the column.
|
|
5
|
+
*/
|
|
6
|
+
export type TableColumnFixed = "left" | "right";
|
|
7
|
+
/**
|
|
8
|
+
* The height type of the table.
|
|
9
|
+
*/
|
|
10
|
+
export type TableHeight = LiteralUnion<"auto", LengthValue>;
|
|
11
|
+
/**
|
|
12
|
+
* The context of the table.
|
|
13
|
+
*/
|
|
14
|
+
export interface TableContext<T extends ObjectType> {
|
|
15
|
+
/**
|
|
16
|
+
* Whether the table is fetching.
|
|
17
|
+
*/
|
|
18
|
+
isFetching: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* The refetch handler.
|
|
21
|
+
*/
|
|
22
|
+
refetch: Provider<Promise<QueryRefetchResult<T>>>;
|
|
23
|
+
/**
|
|
24
|
+
* The selected keys of the table.
|
|
25
|
+
*/
|
|
26
|
+
selectedKeys: IdValue[];
|
|
27
|
+
/**
|
|
28
|
+
* The selected records of the table.
|
|
29
|
+
*/
|
|
30
|
+
selectedRecords: T[];
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The internal context of the table.
|
|
34
|
+
* Note that the internal context is only used for the table component itself.
|
|
35
|
+
*/
|
|
36
|
+
export interface InternalTableContext<T extends ObjectType, C extends ObjectType = EmptyObject> extends TableContext<T> {
|
|
37
|
+
/**
|
|
38
|
+
* The external context.
|
|
39
|
+
*/
|
|
40
|
+
externalContext?: C;
|
|
41
|
+
/**
|
|
42
|
+
* The default column configs.
|
|
43
|
+
*/
|
|
44
|
+
defaultColumnConfigMap: Map<string, TableColumnConfig>;
|
|
45
|
+
/**
|
|
46
|
+
* The map of the column configs.
|
|
47
|
+
*/
|
|
48
|
+
columnConfigMap: Map<string, TableColumnConfig>;
|
|
49
|
+
/**
|
|
50
|
+
* The set column config handler.
|
|
51
|
+
*/
|
|
52
|
+
setColumnConfigMap: Consumer<Map<string, TableColumnConfig> | Mapper<Map<string, TableColumnConfig>, Map<string, TableColumnConfig>>>;
|
|
53
|
+
/**
|
|
54
|
+
* Whether the column configs have changed.
|
|
55
|
+
*/
|
|
56
|
+
columnConfigMapHasChanged: boolean;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* The context of the table row.
|
|
60
|
+
*/
|
|
61
|
+
export interface TableRowContext<T extends ObjectType> extends TableContext<T> {
|
|
62
|
+
/**
|
|
63
|
+
* The index of the row.
|
|
64
|
+
*/
|
|
65
|
+
rowIndex: number;
|
|
66
|
+
/**
|
|
67
|
+
* The record of the row.
|
|
68
|
+
*/
|
|
69
|
+
record: T;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* The context of the operation button.
|
|
73
|
+
*/
|
|
74
|
+
export type OperationButtonContext<T extends ObjectType, C extends ObjectType = EmptyObject> = TableRowContext<T> & C;
|
|
75
|
+
/**
|
|
76
|
+
* The context of the batch action button.
|
|
77
|
+
*/
|
|
78
|
+
export type BatchActionButtonContext<T extends ObjectType, C extends ObjectType = EmptyObject> = TableContext<T> & C;
|
|
79
|
+
/**
|
|
80
|
+
* The config of the column.
|
|
81
|
+
*/
|
|
82
|
+
export interface TableColumnConfig {
|
|
83
|
+
/**
|
|
84
|
+
* The title of the column.
|
|
85
|
+
*/
|
|
86
|
+
title: ReactNode;
|
|
87
|
+
/**
|
|
88
|
+
* Whether to show the column.
|
|
89
|
+
*/
|
|
90
|
+
show: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Whether to fix the column.
|
|
93
|
+
*/
|
|
94
|
+
fixed: MaybeUndefined<TableColumnFixed>;
|
|
95
|
+
/**
|
|
96
|
+
* The order of the column.
|
|
97
|
+
*/
|
|
98
|
+
order: number;
|
|
99
|
+
/**
|
|
100
|
+
* Whether the column can be configured.
|
|
101
|
+
*/
|
|
102
|
+
configurable: boolean;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* The compute function of the column.
|
|
106
|
+
*/
|
|
107
|
+
type ComputeFn<T extends ObjectType, V, E> = TriMapper<V, T, number, E>;
|
|
108
|
+
/**
|
|
109
|
+
* The computed type of the column.
|
|
110
|
+
*/
|
|
111
|
+
export type TableComputedType<T extends ObjectType, V, E> = MaybeComputed<E, ComputeFn<T, V, E>>;
|
|
112
|
+
/**
|
|
113
|
+
* The schema of the table.
|
|
114
|
+
*/
|
|
115
|
+
export type TableSchema<T extends ObjectType> = NonEmptyArray<TableColumn<T>>;
|
|
116
|
+
/**
|
|
117
|
+
* The column type.
|
|
118
|
+
*/
|
|
119
|
+
export type TableColumn<T extends ObjectType = ObjectValue, K extends StringKey<T> = StringKey<T>> = TableColumnRender<T, K> | TableColumnText<T, K> | TableColumnNumber<T, K> | TableColumnBoolean<T, K> | TableColumnImage<T, K> | TableColumnCode<T, K> | TableColumnEnum<T, K> | TableColumnDataDictionary<T, K> | TableColumnId<T, K> | TableColumnIcon<T, K> | TableColumnFile<T, K> | TableColumnRichText<T, K> | TableColumnMarkdown<T, K>;
|
|
120
|
+
/**
|
|
121
|
+
* The base type of the column.
|
|
122
|
+
*/
|
|
123
|
+
interface TableColumnBase<T extends ObjectType, K extends StringKey<T>> {
|
|
124
|
+
/**
|
|
125
|
+
* The name of the column.
|
|
126
|
+
*/
|
|
127
|
+
name: K;
|
|
128
|
+
/**
|
|
129
|
+
* The title of the column.
|
|
130
|
+
*/
|
|
131
|
+
title?: ReactNode;
|
|
132
|
+
/**
|
|
133
|
+
* Whether to show the column.
|
|
134
|
+
*/
|
|
135
|
+
show?: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* The width of the column.
|
|
138
|
+
*/
|
|
139
|
+
width?: number;
|
|
140
|
+
/**
|
|
141
|
+
* The align of the column.
|
|
142
|
+
*/
|
|
143
|
+
align?: Align;
|
|
144
|
+
/**
|
|
145
|
+
* Whether to fix the column.
|
|
146
|
+
*/
|
|
147
|
+
fixed?: TableColumnFixed;
|
|
148
|
+
/**
|
|
149
|
+
* Whether to sort the column.
|
|
150
|
+
* When the value is a number, it means the priority of the column for multiple columns sorting.
|
|
151
|
+
*/
|
|
152
|
+
sort?: boolean | number;
|
|
153
|
+
/**
|
|
154
|
+
* The summary of the column.
|
|
155
|
+
*/
|
|
156
|
+
summary?: Mapper<readonly T[], ReactNode>;
|
|
157
|
+
/**
|
|
158
|
+
* The colSpan of the summary cell.
|
|
159
|
+
* @default 1
|
|
160
|
+
*/
|
|
161
|
+
summaryColSpan?: number;
|
|
162
|
+
/**
|
|
163
|
+
* Whether the column can be configured.
|
|
164
|
+
* @default true
|
|
165
|
+
*/
|
|
166
|
+
configurable?: boolean;
|
|
167
|
+
/**
|
|
168
|
+
* The dependent column names of the column.
|
|
169
|
+
* When the dependent columns have changed, the column will be updated.
|
|
170
|
+
*/
|
|
171
|
+
dependentColumnNames?: K[];
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* The render type of the column.
|
|
175
|
+
*/
|
|
176
|
+
interface TableColumnRender<T extends ObjectType, K extends StringKey<T>> extends TableColumnBase<T, K> {
|
|
177
|
+
/**
|
|
178
|
+
* The type of the column.
|
|
179
|
+
*/
|
|
180
|
+
type: "Render";
|
|
181
|
+
/**
|
|
182
|
+
* The render of the column.
|
|
183
|
+
*/
|
|
184
|
+
render: TriMapper<T[K], T, number, ReactNode>;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* The text type of the column.
|
|
188
|
+
*/
|
|
189
|
+
interface TableColumnText<T extends ObjectType, K extends StringKey<T>> extends TableColumnBase<T, K> {
|
|
190
|
+
/**
|
|
191
|
+
* The type of the column.
|
|
192
|
+
*/
|
|
193
|
+
type: "Text";
|
|
194
|
+
/**
|
|
195
|
+
* The default value of the column.
|
|
196
|
+
*/
|
|
197
|
+
defaultValue?: T[K] & string;
|
|
198
|
+
/**
|
|
199
|
+
* Whether to ellipsis the column.
|
|
200
|
+
*/
|
|
201
|
+
ellipsis?: boolean;
|
|
202
|
+
/**
|
|
203
|
+
* The color of the column.
|
|
204
|
+
*/
|
|
205
|
+
color?: TableComputedType<T, T[K] & string, ColorType>;
|
|
206
|
+
/**
|
|
207
|
+
* Whether to bold the column.
|
|
208
|
+
*/
|
|
209
|
+
bold?: TableComputedType<T, T[K] & string, boolean>;
|
|
210
|
+
/**
|
|
211
|
+
* Whether to italic the column.
|
|
212
|
+
*/
|
|
213
|
+
italic?: TableComputedType<T, T[K] & string, boolean>;
|
|
214
|
+
/**
|
|
215
|
+
* Whether to copy the column.
|
|
216
|
+
*/
|
|
217
|
+
copyable?: boolean;
|
|
218
|
+
/**
|
|
219
|
+
* The prefix of the column.
|
|
220
|
+
*/
|
|
221
|
+
prefix?: string;
|
|
222
|
+
/**
|
|
223
|
+
* The suffix of the column.
|
|
224
|
+
*/
|
|
225
|
+
suffix?: string;
|
|
226
|
+
/**
|
|
227
|
+
* The formatter of the column.
|
|
228
|
+
*/
|
|
229
|
+
formatter?: TriMapper<T[K] & string, T, number, string> | Expression;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* The number type of the column.
|
|
233
|
+
*/
|
|
234
|
+
interface TableColumnNumber<T extends ObjectType, K extends StringKey<T>> extends TableColumnBase<T, K> {
|
|
235
|
+
/**
|
|
236
|
+
* The type of the column.
|
|
237
|
+
*/
|
|
238
|
+
type: "Number";
|
|
239
|
+
/**
|
|
240
|
+
* The default value of the column.
|
|
241
|
+
*/
|
|
242
|
+
defaultValue?: T[K] & number;
|
|
243
|
+
/**
|
|
244
|
+
* The color of the column.
|
|
245
|
+
*/
|
|
246
|
+
color?: TableComputedType<T, T[K] & number, ColorType>;
|
|
247
|
+
/**
|
|
248
|
+
* Whether to bold the column.
|
|
249
|
+
*/
|
|
250
|
+
bold?: TableComputedType<T, T[K] & number, boolean>;
|
|
251
|
+
/**
|
|
252
|
+
* Whether to italic the column.
|
|
253
|
+
*/
|
|
254
|
+
italic?: TableComputedType<T, T[K] & number, boolean>;
|
|
255
|
+
/**
|
|
256
|
+
* The prefix of the column.
|
|
257
|
+
*/
|
|
258
|
+
prefix?: string;
|
|
259
|
+
/**
|
|
260
|
+
* The suffix of the column.
|
|
261
|
+
*/
|
|
262
|
+
suffix?: string;
|
|
263
|
+
/**
|
|
264
|
+
* The formatter of the column.
|
|
265
|
+
*/
|
|
266
|
+
formatter?: TriMapper<T[K] & number, T, number, string> | Expression;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* The boolean type of the column.
|
|
270
|
+
*/
|
|
271
|
+
interface TableColumnBoolean<T extends ObjectType, K extends StringKey<T>> extends TableColumnBase<T, K> {
|
|
272
|
+
/**
|
|
273
|
+
* The type of the column.
|
|
274
|
+
*/
|
|
275
|
+
type: "Boolean";
|
|
276
|
+
/**
|
|
277
|
+
* The default value of the column.
|
|
278
|
+
*/
|
|
279
|
+
defaultValue?: T[K] & boolean;
|
|
280
|
+
/**
|
|
281
|
+
* The color of the column.
|
|
282
|
+
* The key of the color mapping record can be `true`, `false` or `*` to represent all remaining values.
|
|
283
|
+
*/
|
|
284
|
+
color?: TableComputedType<T, T[K] & boolean, ColorType | Record<"true" | "false" | "*", ColorType>>;
|
|
285
|
+
/**
|
|
286
|
+
* Whether to bold the column.
|
|
287
|
+
*/
|
|
288
|
+
bold?: TableComputedType<T, T[K] & boolean, boolean>;
|
|
289
|
+
/**
|
|
290
|
+
* Whether to italic the column.
|
|
291
|
+
*/
|
|
292
|
+
italic?: TableComputedType<T, T[K] & boolean, boolean>;
|
|
293
|
+
/**
|
|
294
|
+
* The true text of the column.
|
|
295
|
+
*/
|
|
296
|
+
trueText?: string;
|
|
297
|
+
/**
|
|
298
|
+
* The false text of the column.
|
|
299
|
+
*/
|
|
300
|
+
falseText?: string;
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* The image type of the column.
|
|
304
|
+
*/
|
|
305
|
+
interface TableColumnImage<T extends ObjectType, K extends StringKey<T>> extends TableColumnBase<T, K> {
|
|
306
|
+
/**
|
|
307
|
+
* The type of the column.
|
|
308
|
+
*/
|
|
309
|
+
type: "Image";
|
|
310
|
+
/**
|
|
311
|
+
* The default value of the column.
|
|
312
|
+
*/
|
|
313
|
+
defaultValue?: T[K] & string;
|
|
314
|
+
/**
|
|
315
|
+
* The dimensions of the image.
|
|
316
|
+
*/
|
|
317
|
+
dimensions?: Dimensions;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* The code type of the column.
|
|
321
|
+
*/
|
|
322
|
+
interface TableColumnCode<T extends ObjectType, K extends StringKey<T>> extends TableColumnBase<T, K> {
|
|
323
|
+
/**
|
|
324
|
+
* The type of the column.
|
|
325
|
+
*/
|
|
326
|
+
type: "Code";
|
|
327
|
+
/**
|
|
328
|
+
* The default value of the column.
|
|
329
|
+
*/
|
|
330
|
+
defaultValue?: T[K] & string;
|
|
331
|
+
/**
|
|
332
|
+
* The language of the code.
|
|
333
|
+
*/
|
|
334
|
+
language?: "javascript" | "typescript" | "css" | "json" | "java" | "groovy" | "xml" | "bash" | "plaintext" | "shell" | "markdown" | "yaml" | "sql" | "pgsql";
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* The enum type of the column.
|
|
338
|
+
*/
|
|
339
|
+
interface TableColumnEnum<T extends ObjectType, K extends StringKey<T>> extends TableColumnBase<T, K> {
|
|
340
|
+
/**
|
|
341
|
+
* The type of the column.
|
|
342
|
+
*/
|
|
343
|
+
type: "Enum";
|
|
344
|
+
/**
|
|
345
|
+
* The default value of the column.
|
|
346
|
+
*/
|
|
347
|
+
defaultValue?: string;
|
|
348
|
+
/**
|
|
349
|
+
* Whether to ellipsis the column.
|
|
350
|
+
*/
|
|
351
|
+
ellipsis?: boolean;
|
|
352
|
+
/**
|
|
353
|
+
* Whether to show the enum name as a tag.
|
|
354
|
+
*
|
|
355
|
+
* @default true
|
|
356
|
+
*/
|
|
357
|
+
showAsTag?: boolean;
|
|
358
|
+
/**
|
|
359
|
+
* The color mapping of the enum.
|
|
360
|
+
* The key of the color mapping record can be a specific value or `*` to represent all remaining values.
|
|
361
|
+
*/
|
|
362
|
+
color?: TableComputedType<T, T[K] & string, ColorType | Record<T[K] & string | "*", ColorType>>;
|
|
363
|
+
/**
|
|
364
|
+
* Whether to bold the column.
|
|
365
|
+
* Only works when `showAsTag` is `false`.
|
|
366
|
+
*/
|
|
367
|
+
bold?: TableComputedType<T, T[K] & string, boolean>;
|
|
368
|
+
/**
|
|
369
|
+
* Whether to italic the column.
|
|
370
|
+
* Only works when `showAsTag` is `false`.
|
|
371
|
+
*/
|
|
372
|
+
italic?: TableComputedType<T, T[K] & string, boolean>;
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* The data dictionary type of the column.
|
|
376
|
+
*/
|
|
377
|
+
interface TableColumnDataDictionary<T extends ObjectType, K extends StringKey<T>> extends TableColumnBase<T, K> {
|
|
378
|
+
/**
|
|
379
|
+
* The type of the column.
|
|
380
|
+
*/
|
|
381
|
+
type: "DataDictionary";
|
|
382
|
+
/**
|
|
383
|
+
* The default value of the column.
|
|
384
|
+
*/
|
|
385
|
+
defaultValue?: string;
|
|
386
|
+
/**
|
|
387
|
+
* Whether to ellipsis the column.
|
|
388
|
+
*/
|
|
389
|
+
ellipsis?: boolean;
|
|
390
|
+
/**
|
|
391
|
+
* The color mapping of the data dictionary.
|
|
392
|
+
* The key of the color mapping record can be a specific value or `*` to represent all remaining values.
|
|
393
|
+
*/
|
|
394
|
+
color?: TableComputedType<T, T[K] & string, ColorType | Record<T[K] & string | "*", ColorType>>;
|
|
395
|
+
/**
|
|
396
|
+
* Whether to bold the column.
|
|
397
|
+
*/
|
|
398
|
+
bold?: TableComputedType<T, T[K] & string, boolean>;
|
|
399
|
+
/**
|
|
400
|
+
* Whether to italic the column.
|
|
401
|
+
*/
|
|
402
|
+
italic?: TableComputedType<T, T[K] & string, boolean>;
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* The id type of the column.
|
|
406
|
+
*/
|
|
407
|
+
interface TableColumnId<T extends ObjectType, K extends StringKey<T>> extends TableColumnBase<T, K> {
|
|
408
|
+
/**
|
|
409
|
+
* The type of the column.
|
|
410
|
+
*/
|
|
411
|
+
type: "Id";
|
|
412
|
+
/**
|
|
413
|
+
* The default value of the column.
|
|
414
|
+
*/
|
|
415
|
+
defaultValue?: string;
|
|
416
|
+
/**
|
|
417
|
+
* Whether to ellipsis the column.
|
|
418
|
+
*/
|
|
419
|
+
ellipsis?: boolean;
|
|
420
|
+
/**
|
|
421
|
+
* The color of the column.
|
|
422
|
+
*/
|
|
423
|
+
color?: TableComputedType<T, T[K] & string, ColorType>;
|
|
424
|
+
/**
|
|
425
|
+
* Whether to bold the column.
|
|
426
|
+
*/
|
|
427
|
+
bold?: TableComputedType<T, T[K] & string, boolean>;
|
|
428
|
+
/**
|
|
429
|
+
* Whether to italic the column.
|
|
430
|
+
*/
|
|
431
|
+
italic?: TableComputedType<T, T[K] & string, boolean>;
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* The icon type of the column.
|
|
435
|
+
*/
|
|
436
|
+
interface TableColumnIcon<T extends ObjectType, K extends StringKey<T>> extends TableColumnBase<T, K> {
|
|
437
|
+
/**
|
|
438
|
+
* The type of the column.
|
|
439
|
+
*/
|
|
440
|
+
type: "Icon";
|
|
441
|
+
/**
|
|
442
|
+
* The default value of the column.
|
|
443
|
+
*/
|
|
444
|
+
defaultValue?: T[K] & string;
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* The file type of the column.
|
|
448
|
+
*/
|
|
449
|
+
interface TableColumnFile<T extends ObjectType, K extends StringKey<T>> extends TableColumnBase<T, K> {
|
|
450
|
+
/**
|
|
451
|
+
* The type of the column.
|
|
452
|
+
*/
|
|
453
|
+
type: "File";
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* The rich text type of the column.
|
|
457
|
+
*/
|
|
458
|
+
interface TableColumnRichText<T extends ObjectType, K extends StringKey<T>> extends TableColumnBase<T, K> {
|
|
459
|
+
/**
|
|
460
|
+
* The type of the column.
|
|
461
|
+
*/
|
|
462
|
+
type: "RichText";
|
|
463
|
+
/**
|
|
464
|
+
* The default value of the column.
|
|
465
|
+
*/
|
|
466
|
+
defaultValue?: T[K] & string;
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* The markdown type of the column.
|
|
470
|
+
*/
|
|
471
|
+
interface TableColumnMarkdown<T extends ObjectType, K extends StringKey<T>> extends TableColumnBase<T, K> {
|
|
472
|
+
/**
|
|
473
|
+
* The type of the column.
|
|
474
|
+
*/
|
|
475
|
+
type: "Markdown";
|
|
476
|
+
/**
|
|
477
|
+
* The default value of the column.
|
|
478
|
+
*/
|
|
479
|
+
defaultValue?: T[K] & string;
|
|
480
|
+
}
|
|
481
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
|
|
2
|
+
import{jsx as t}from"@emotion/react/jsx-runtime";import{Tabs as i}from"antd";import"../internal/index.js";import{convertBasicSizeToUiSize as r}from"../internal/utils.js";const e={inkBar:!0,tabPane:!0},n=({size:n,...a})=>t(i,{animated:e,size:r(n),...a});export{n as VefTabs,n as default};
|
|
3
|
+
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { BasicSize } from "@vef-framework/shared";
|
|
2
|
+
import type { TabsProps } from "antd";
|
|
3
|
+
import type { Except } from "@vef-framework/shared";
|
|
4
|
+
/**
|
|
5
|
+
* The props of VefTabs component.
|
|
6
|
+
*/
|
|
7
|
+
export interface VefTabsProps extends Except<TabsProps, "animated" | "children" | "size" | "indicatorSize" | "prefixCls" | "rootClassName"> {
|
|
8
|
+
/**
|
|
9
|
+
* The size of the tabs.
|
|
10
|
+
*/
|
|
11
|
+
size?: BasicSize;
|
|
12
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
|
|
2
|
+
import{jsx as o}from"@emotion/react/jsx-runtime";import{Tag as r}from"antd";import{useMemo as e}from"react";const t=({closable:t=!1,color:n,inverse:c=!1,...i})=>{const l=e((()=>c?`${n}-inverse`:n),[n,c]);return o(r,{closeIcon:t?null:void 0,color:l,...i})};export{t as default};
|
|
3
|
+
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ColorType } from "@vef-framework/shared";
|
|
2
|
+
import type { TagProps } from "antd";
|
|
3
|
+
import type { Except } from "@vef-framework/shared";
|
|
4
|
+
/**
|
|
5
|
+
* The props of VefTag component.
|
|
6
|
+
*/
|
|
7
|
+
export interface VefTagProps extends Except<TagProps, "closable" | "closeIcon" | "visible" | "color" | "prefixCls" | "rootClassName"> {
|
|
8
|
+
/**
|
|
9
|
+
* Whether to allow the tag to be closed.
|
|
10
|
+
*/
|
|
11
|
+
closable?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* The color of the tag.
|
|
14
|
+
*/
|
|
15
|
+
color?: ColorType;
|
|
16
|
+
/**
|
|
17
|
+
* Whether to invert the color of the tag.
|
|
18
|
+
*/
|
|
19
|
+
inverse?: boolean;
|
|
20
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { MaybeNullish } from "@vef-framework/shared";
|
|
2
|
+
import { type Dayjs } from "dayjs";
|
|
3
|
+
import type { TemporalValueType } from "../props";
|
|
4
|
+
/**
|
|
5
|
+
* Convert the value to a dayjs object.
|
|
6
|
+
*
|
|
7
|
+
* @param value - The value to convert.
|
|
8
|
+
* @param formats - The formats to use for the conversion.
|
|
9
|
+
*/
|
|
10
|
+
export declare function useDayjsValue<M extends boolean = false>(value: MaybeNullish<TemporalValueType<string, M>>, formats: string[]): MaybeNullish<TemporalValueType<Dayjs, M>>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
|
|
2
|
+
import r from"dayjs";import{isNullish as o,isArray as m}from"@vef-framework/shared";import{useMemo as t}from"react";function e(e,f){return t((()=>o(e)?e:m(e)?e.map((o=>r(o,f))):r(e,f)),[e,f])}export{e as useDayjsValue};
|
|
3
|
+
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TemporalPickerMode } from "../props";
|
|
2
|
+
/**
|
|
3
|
+
* The hook to get the formats of the temporal picker.
|
|
4
|
+
*
|
|
5
|
+
* @param mode - The mode of the temporal picker.
|
|
6
|
+
* @returns The formats of the temporal picker.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useTemporalFormats(mode: TemporalPickerMode): string[];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
|
|
2
|
+
const Y=["YYYY"],M=["YYYY-Q季度"],m=["YYYY-MM","YYYY/MM","YYYY.MM","YYYYMM"],D=["YYYY-wo"],H=["YYYY-MM-DD","YYYY/MM/DD","YYYY.MM.DD","YYYYMMDD","YY/MM/DD","YY.MM.DD","YYMMDD"],s=["HH:mm:ss","HH.mm.ss","HHmmss"],e=["HH"],t=["HH:mm","HH.mm","HHmm"],r=["YYYY-MM-DD HH:mm:ss","YYYY/MM/DD HH:mm:ss","YYYY.MM.DD HH.mm.ss","YYYYMMDDHHmmss","YY/MM/DD HH:mm:ss","YY.MM.DD HH:mm:ss","YY.MM.DD HH.mm.ss","YYMMDDHHmmss"];function n(n){return"year"===n?Y:"quarter"===n?M:"month"===n?m:"week"===n?D:"datetime"===n?r:"date"===n?H:"time"===n?s:"hour"===n?e:"minute"===n?t:[]}export{n as useTemporalFormats};
|
|
3
|
+
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import dayjs, { type Dayjs } from "dayjs";
|
|
2
|
+
import type { VefTemporalPickerProps } from "../props";
|
|
3
|
+
/**
|
|
4
|
+
* The hook to get the limit of the temporal picker.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useTemporalLimit({ maxDate, minDate, disabledDate, disabledTime, }: Pick<VefTemporalPickerProps, "maxDate" | "minDate" | "disabledDate" | "disabledTime">): {
|
|
7
|
+
minDateValue: dayjs.Dayjs | undefined;
|
|
8
|
+
maxDateValue: dayjs.Dayjs | undefined;
|
|
9
|
+
disabledTimeValue: ((now: Dayjs) => import("..").DisabledTimeProviders) | undefined;
|
|
10
|
+
disabledDateValue: ((now: Dayjs, { from }: {
|
|
11
|
+
from?: Dayjs;
|
|
12
|
+
}) => boolean) | undefined;
|
|
13
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
|
|
2
|
+
import e from"dayjs";import{isFunction as a}from"@vef-framework/shared";import{useMemo as t}from"react";function r({maxDate:r,minDate:i,disabledDate:o,disabledTime:m}){const[d,f]=t((()=>[i?e(i):void 0,r?e(r):void 0]),[i,r]);return{minDateValue:d,maxDateValue:f,disabledTimeValue:t((()=>{if(a(m))return e=>m(e.toDate())}),[m]),disabledDateValue:t((()=>{if(a(o))return(e,{from:a})=>o(e.toDate(),a?.toDate())}),[o])}}export{r as useTemporalLimit};
|
|
3
|
+
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DatePicker, GetRef } from "antd";
|
|
2
|
+
import { type ForwardedRef, type RefObject } from "react";
|
|
3
|
+
import type { VefTemporalPickerInstance } from "../props";
|
|
4
|
+
type PickerRef = GetRef<typeof DatePicker>;
|
|
5
|
+
/**
|
|
6
|
+
* The hook to get the instance of the temporal picker.
|
|
7
|
+
*
|
|
8
|
+
* @param ref - The forwarded ref.
|
|
9
|
+
* @returns The ref of the temporal picker.
|
|
10
|
+
*/
|
|
11
|
+
export declare function useTemporalPickerInstance(ref: ForwardedRef<VefTemporalPickerInstance>): RefObject<PickerRef>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
|
|
2
|
+
import{useRef as r,useImperativeHandle as t}from"react";function u(u){const c=r(null);return t(u,(()=>({blur:()=>{c.current?.blur()},focus:()=>{c.current?.focus({preventScroll:!0})}}))),c}export{u as useTemporalPickerInstance};
|
|
3
|
+
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type FC, type ReactNode, type RefAttributes } from "react";
|
|
2
|
+
import type { DisabledTimeProviders, DisabledTimeType, TemporalPickerMode, VefTemporalPickerInstance, VefTemporalPickerProps } from "./props";
|
|
3
|
+
declare const VefTemporalPicker: (<M extends boolean = false>(props: VefTemporalPickerProps<M> & RefAttributes<VefTemporalPickerInstance>) => ReactNode) & Pick<FC, "displayName">;
|
|
4
|
+
export type { DisabledTimeProviders, DisabledTimeType, TemporalPickerMode, VefTemporalPickerInstance, VefTemporalPickerProps };
|
|
5
|
+
export default VefTemporalPicker;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
|
|
2
|
+
import{jsx as e}from"@emotion/react/jsx-runtime";import{TimePicker as a,DatePicker as t}from"antd";import{isFunction as o,isArray as i}from"@vef-framework/shared";import{useMemo as l,memo as m,forwardRef as r}from"react";import"../internal/index.js";import{useDayjsValue as u}from"./hooks/use-dayjs-value.js";import{useTemporalFormats as s}from"./hooks/use-temporal-formats.js";import{useTemporalLimit as n}from"./hooks/use-temporal-limit.js";import{useTemporalPickerInstance as d}from"./hooks/use-temporal-picker-instance.js";import{convertBasicSizeToUiSize as p}from"../internal/utils.js";const f=m(r((function({defaultValue:m,value:r,clearable:f,size:D,mode:h="date",multiple:c=!1,minDate:b,maxDate:k,disabledTime:V,disabledDate:j,hourStep:x,minuteStep:S,secondStep:v,onChange:C,...w},T){const g=s(h),z=u(r,g),y=u(m,g),{minDateValue:N,maxDateValue:P,disabledTimeValue:q,disabledDateValue:A}=n({maxDate:k,minDate:b,disabledTime:V,disabledDate:j}),B=d(T),E=l((()=>{if(o(C))return(e,a)=>{if(!e)return void C(null,null);const t=i(e)?e.map((e=>e.toDate())):e.toDate();C(a,t)}}),[C]);return"time"===h||"hour"===h||"minute"===h?e(a,{ref:B,allowClear:f,defaultValue:y,disabledTime:q,format:g,hourStep:x,minuteStep:S,multiple:c,secondStep:v,showNow:"hour"!==h,size:p(D),value:z,onChange:E,...w}):e(t,"datetime"===h?{ref:B,allowClear:f,defaultValue:y,disabledDate:A,disabledTime:q,format:g,hourStep:x,maxDate:P,minDate:N,minuteStep:S,multiple:c,picker:"date",size:p(D),value:z,onChange:E,...w}:{ref:B,allowClear:f,defaultValue:y,disabledDate:A,format:g,maxDate:P,minDate:N,multiple:c,picker:h,size:p(D),value:z,onChange:E,...w})})));f.displayName="VefTemporalPicker";export{f as default};
|
|
3
|
+
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|