@vef-framework/components 1.0.128 → 1.0.130
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/cjs/index.cjs +1 -195
- package/cjs/internal/base.css.cjs +488 -4
- package/cjs/internal/chart.cjs +1 -20
- package/cjs/internal/index.cjs +1 -9
- package/cjs/internal/modern-normalize.css.cjs +211 -4
- package/cjs/internal/utils.cjs +1 -8
- package/cjs/vef-access-denied/access-denied-icon.cjs +1 -932
- package/cjs/vef-access-denied/index.cjs +9 -49
- package/cjs/vef-access-denied/props.cjs +0 -2
- package/cjs/vef-action-buttons/index.cjs +1 -79
- package/cjs/vef-action-buttons/props.cjs +0 -2
- package/cjs/vef-approval-flow-editor/components/edge.cjs +2 -87
- package/cjs/vef-approval-flow-editor/components/label-value.cjs +8 -31
- package/cjs/vef-approval-flow-editor/components/node-content.cjs +10 -49
- package/cjs/vef-approval-flow-editor/components/node-selector.cjs +4 -37
- package/cjs/vef-approval-flow-editor/components/node-toolbar.cjs +1 -25
- package/cjs/vef-approval-flow-editor/components/nodes/approval.cjs +1 -28
- package/cjs/vef-approval-flow-editor/components/nodes/condition.cjs +1 -28
- package/cjs/vef-approval-flow-editor/components/nodes/end.cjs +1 -28
- package/cjs/vef-approval-flow-editor/components/nodes/handle.cjs +1 -28
- package/cjs/vef-approval-flow-editor/components/nodes/index.cjs +1 -19
- package/cjs/vef-approval-flow-editor/components/nodes/submit.cjs +1 -28
- package/cjs/vef-approval-flow-editor/components/selector-content.cjs +9 -52
- package/cjs/vef-approval-flow-editor/components/source-handle.cjs +1 -44
- package/cjs/vef-approval-flow-editor/components/target-handle.cjs +1 -13
- package/cjs/vef-approval-flow-editor/constants.cjs +1 -225
- package/cjs/vef-approval-flow-editor/helper.cjs +1 -88
- package/cjs/vef-approval-flow-editor/hooks/use-edges-interaction.cjs +1 -27
- package/cjs/vef-approval-flow-editor/hooks/use-element-selection.cjs +1 -26
- package/cjs/vef-approval-flow-editor/hooks/use-nodes-interaction.cjs +1 -53
- package/cjs/vef-approval-flow-editor/index.cjs +1 -79
- package/cjs/vef-approval-flow-editor/models/edge-node.cjs +1 -23
- package/cjs/vef-approval-flow-editor/models/flow-node.cjs +1 -112
- package/cjs/vef-approval-flow-editor/props.cjs +0 -2
- package/cjs/vef-approval-flow-editor/store.cjs +1 -20
- package/cjs/vef-approval-flow-editor/styles.cjs +12 -23
- package/cjs/vef-approval-flow-editor/types.cjs +1 -18
- package/cjs/vef-area-chart/index.cjs +1 -45
- package/cjs/vef-area-chart/props.cjs +0 -2
- package/cjs/vef-auto-sizer/index.cjs +1 -10
- package/cjs/vef-auto-sizer/props.cjs +0 -2
- package/cjs/vef-avatar/index.cjs +1 -24
- package/cjs/vef-avatar/props.cjs +0 -2
- package/cjs/vef-avatar-group/index.cjs +1 -29
- package/cjs/vef-avatar-group/props.cjs +0 -2
- package/cjs/vef-badge/index.cjs +1 -51
- package/cjs/vef-badge/props.cjs +0 -2
- package/cjs/vef-bar-chart/index.cjs +1 -45
- package/cjs/vef-bar-chart/props.cjs +0 -2
- package/cjs/vef-bool/hooks/use-bool-instance.cjs +1 -36
- package/cjs/vef-bool/index.cjs +1 -64
- package/cjs/vef-bool/props.cjs +0 -2
- package/cjs/vef-breadcrumb/index.cjs +1 -52
- package/cjs/vef-breadcrumb/props.cjs +0 -2
- package/cjs/vef-button/components/base-button.cjs +1 -77
- package/cjs/vef-button/index.cjs +1 -155
- package/cjs/vef-button/props.cjs +0 -2
- package/cjs/vef-card/index.cjs +1 -29
- package/cjs/vef-card/props.cjs +0 -2
- package/cjs/vef-card-meta/index.cjs +1 -16
- package/cjs/vef-card-meta/props.cjs +0 -2
- package/cjs/vef-chart-container/hooks/use-chart-container-context.cjs +1 -16
- package/cjs/vef-chart-container/index.cjs +13 -83
- package/cjs/vef-chart-container/props.cjs +0 -2
- package/cjs/vef-chart-legend-content/index.cjs +10 -48
- package/cjs/vef-chart-legend-content/props.cjs +0 -2
- package/cjs/vef-chart-tooltip-content/index.cjs +22 -89
- package/cjs/vef-chart-tooltip-content/props.cjs +0 -2
- package/cjs/vef-checkbox/hooks/use-checkbox-instance.cjs +1 -22
- package/cjs/vef-checkbox/hooks/use-data-options.cjs +1 -42
- package/cjs/vef-checkbox/index.cjs +3 -92
- package/cjs/vef-checkbox/props.cjs +0 -2
- package/cjs/vef-code-editor/hooks/use-change-handler.cjs +1 -12
- package/cjs/vef-code-editor/hooks/use-config-extensions.cjs +1 -50
- package/cjs/vef-code-editor/hooks/use-height-props.cjs +1 -22
- package/cjs/vef-code-editor/hooks/use-language-extensions.cjs +1 -119
- package/cjs/vef-code-editor/hooks/use-setup-options.cjs +1 -39
- package/cjs/vef-code-editor/index.cjs +1 -61
- package/cjs/vef-code-editor/props.cjs +0 -2
- package/cjs/vef-code-editor/styles.cjs +46 -54
- package/cjs/vef-col/index.cjs +1 -15
- package/cjs/vef-col/props.cjs +0 -2
- package/cjs/vef-color-picker/index.cjs +1 -50
- package/cjs/vef-color-picker/props.cjs +0 -2
- package/cjs/vef-compact/index.cjs +1 -19
- package/cjs/vef-compact/props.cjs +0 -2
- package/cjs/vef-config-provider/global-style.cjs +15 -26
- package/cjs/vef-config-provider/hooks/use-ui-config.cjs +1 -128
- package/cjs/vef-config-provider/index.cjs +3 -125
- package/cjs/vef-config-provider/props.cjs +0 -2
- package/cjs/vef-config-provider/store.cjs +1 -25
- package/cjs/vef-container/index.cjs +1 -22
- package/cjs/vef-container/props.cjs +0 -2
- package/cjs/vef-crud-page/components/crud-actions.cjs +1 -36
- package/cjs/vef-crud-page/components/crud-filter.cjs +1 -58
- package/cjs/vef-crud-page/components/crud-footer.cjs +3 -120
- package/cjs/vef-crud-page/components/crud-form-modal.cjs +1 -57
- package/cjs/vef-crud-page/components/crud-header.cjs +1 -33
- package/cjs/vef-crud-page/components/crud-table.cjs +1 -80
- package/cjs/vef-crud-page/hooks/use-action-buttons.cjs +1 -39
- package/cjs/vef-crud-page/hooks/use-crud-context.cjs +1 -22
- package/cjs/vef-crud-page/hooks/use-crud-schema.cjs +1 -118
- package/cjs/vef-crud-page/hooks/use-operation-buttons.cjs +1 -62
- package/cjs/vef-crud-page/index.cjs +1 -154
- package/cjs/vef-crud-page/props.cjs +0 -2
- package/cjs/vef-crud-page/store.cjs +1 -146
- package/cjs/vef-crud-page/types.cjs +0 -2
- package/cjs/vef-data-grid/index.cjs +1 -89
- package/cjs/vef-data-grid/props.cjs +0 -2
- package/cjs/vef-data-table/index.cjs +1 -13
- package/cjs/vef-data-table/props.cjs +0 -2
- package/cjs/vef-divider/index.cjs +1 -28
- package/cjs/vef-divider/props.cjs +0 -2
- package/cjs/vef-drawer/components/action-button-wrapper.cjs +1 -53
- package/cjs/vef-drawer/components/button-props.cjs +0 -2
- package/cjs/vef-drawer/components/cancel-action-button.cjs +1 -25
- package/cjs/vef-drawer/components/ok-action-button.cjs +1 -24
- package/cjs/vef-drawer/context.cjs +1 -19
- package/cjs/vef-drawer/index.cjs +3 -159
- package/cjs/vef-drawer/props.cjs +0 -2
- package/cjs/vef-dropdown/index.cjs +1 -96
- package/cjs/vef-dropdown/props.cjs +0 -2
- package/cjs/vef-dynamic-icon/index.cjs +1 -50
- package/cjs/vef-dynamic-icon/props.cjs +1 -8
- package/cjs/vef-empty/index.cjs +1 -41
- package/cjs/vef-empty/props.cjs +0 -2
- package/cjs/vef-empty-placeholder/index.cjs +4 -23
- package/cjs/vef-empty-placeholder/props.cjs +0 -2
- package/cjs/vef-error/error-icon.cjs +1 -761
- package/cjs/vef-error/index.cjs +9 -52
- package/cjs/vef-error/props.cjs +0 -2
- package/cjs/vef-filter/components/action-buttons.cjs +5 -125
- package/cjs/vef-filter/components/advanced-filter.cjs +8 -75
- package/cjs/vef-filter/components/basic-filter.cjs +4 -39
- package/cjs/vef-filter/components/fields/index.cjs +1 -21
- package/cjs/vef-filter/components/fields/input-number.cjs +1 -94
- package/cjs/vef-filter/components/fields/input.cjs +1 -71
- package/cjs/vef-filter/components/fields/props.cjs +0 -2
- package/cjs/vef-filter/components/fields/radio.cjs +1 -113
- package/cjs/vef-filter/components/fields/select.cjs +1 -144
- package/cjs/vef-filter/components/fields/tree-select.cjs +1 -140
- package/cjs/vef-filter/components/filter-field.cjs +1 -23
- package/cjs/vef-filter/components/filter-item.cjs +1 -116
- package/cjs/vef-filter/event.cjs +1 -46
- package/cjs/vef-filter/helper.cjs +1 -17
- package/cjs/vef-filter/hooks/use-action-handlers.cjs +1 -72
- package/cjs/vef-filter/hooks/use-computed-values.cjs +1 -57
- package/cjs/vef-filter/hooks/use-filter-context.cjs +1 -22
- package/cjs/vef-filter/hooks/use-filter-initialization.cjs +1 -39
- package/cjs/vef-filter/hooks/use-filter-instance.cjs +1 -28
- package/cjs/vef-filter/hooks/use-filter-items.cjs +1 -25
- package/cjs/vef-filter/hooks/use-filter-values-change.cjs +1 -32
- package/cjs/vef-filter/hooks/use-label-config.cjs +1 -29
- package/cjs/vef-filter/index.cjs +2 -145
- package/cjs/vef-filter/props.cjs +0 -2
- package/cjs/vef-filter/store.cjs +1 -75
- package/cjs/vef-filter/types.cjs +0 -2
- package/cjs/vef-flex/index.cjs +1 -35
- package/cjs/vef-flex/props.cjs +0 -2
- package/cjs/vef-float-button/index.cjs +1 -53
- package/cjs/vef-float-button/props.cjs +0 -2
- package/cjs/vef-float-button-group/index.cjs +1 -24
- package/cjs/vef-float-button-group/props.cjs +0 -2
- package/cjs/vef-form/components/fields/icon-select.cjs +1 -69
- package/cjs/vef-form/components/fields/index.cjs +1 -27
- package/cjs/vef-form/components/fields/input-number.cjs +1 -127
- package/cjs/vef-form/components/fields/input.cjs +1 -136
- package/cjs/vef-form/components/fields/password.cjs +1 -119
- package/cjs/vef-form/components/fields/props.cjs +0 -2
- package/cjs/vef-form/components/fields/radio.cjs +1 -110
- package/cjs/vef-form/components/fields/select.cjs +1 -242
- package/cjs/vef-form/components/fields/textarea.cjs +1 -113
- package/cjs/vef-form/components/fields/tree-select.cjs +1 -238
- package/cjs/vef-form/components/form-actions.cjs +3 -62
- package/cjs/vef-form/components/form-content.cjs +2 -148
- package/cjs/vef-form/components/form-field.cjs +1 -26
- package/cjs/vef-form/components/form-group.cjs +3 -68
- package/cjs/vef-form/components/form-hidden-item.cjs +1 -40
- package/cjs/vef-form/components/form-item.cjs +1 -83
- package/cjs/vef-form/components/form-row.cjs +1 -102
- package/cjs/vef-form/event.cjs +1 -46
- package/cjs/vef-form/helper.cjs +1 -17
- package/cjs/vef-form/hooks/use-action-handlers.cjs +1 -132
- package/cjs/vef-form/hooks/use-columns-layout.cjs +1 -124
- package/cjs/vef-form/hooks/use-computed-values.cjs +1 -57
- package/cjs/vef-form/hooks/use-form-context.cjs +1 -18
- package/cjs/vef-form/hooks/use-form-initialization.cjs +1 -47
- package/cjs/vef-form/hooks/use-form-instance.cjs +1 -28
- package/cjs/vef-form/hooks/use-form-values-change.cjs +1 -32
- package/cjs/vef-form/hooks/use-label-width.cjs +1 -20
- package/cjs/vef-form/index.cjs +3 -178
- package/cjs/vef-form/props.cjs +0 -2
- package/cjs/vef-form/store.cjs +1 -69
- package/cjs/vef-form/types.cjs +0 -2
- package/cjs/vef-form/validation-rules.cjs +1 -310
- package/cjs/vef-form-drawer/index.cjs +1 -102
- package/cjs/vef-form-drawer/props.cjs +0 -2
- package/cjs/vef-form-modal/index.cjs +1 -99
- package/cjs/vef-form-modal/props.cjs +0 -2
- package/cjs/vef-generic-select/index.cjs +1 -85
- package/cjs/vef-generic-select/props.cjs +0 -2
- package/cjs/vef-grid/index.cjs +12 -81
- package/cjs/vef-grid/props.cjs +1 -6
- package/cjs/vef-grid-item/index.cjs +1 -56
- package/cjs/vef-grid-item/props.cjs +0 -2
- package/cjs/vef-icon/index.cjs +1 -54
- package/cjs/vef-icon/props.cjs +0 -2
- package/cjs/vef-icon-select/index.cjs +11 -150
- package/cjs/vef-icon-select/props.cjs +0 -2
- package/cjs/vef-input/hooks/use-input-instance.cjs +1 -17
- package/cjs/vef-input/index.cjs +1 -68
- package/cjs/vef-input/props.cjs +0 -2
- package/cjs/vef-input-number/hooks/use-input-number-instance.cjs +1 -15
- package/cjs/vef-input-number/index.cjs +1 -152
- package/cjs/vef-input-number/props.cjs +0 -2
- package/cjs/vef-intellisense-code-editor/hooks/use-change-handler.cjs +1 -12
- package/cjs/vef-intellisense-code-editor/hooks/use-editor-options.cjs +1 -33
- package/cjs/vef-intellisense-code-editor/hooks/use-path.cjs +1 -32
- package/cjs/vef-intellisense-code-editor/index.cjs +1 -46
- package/cjs/vef-intellisense-code-editor/loader.cjs +1 -141
- package/cjs/vef-intellisense-code-editor/props.cjs +0 -2
- package/cjs/vef-intellisense-code-editor/styles.cjs +9 -17
- package/cjs/vef-intellisense-code-editor/themes/github-light.json.cjs +349 -7
- package/cjs/vef-json-viewer/index.cjs +1 -42
- package/cjs/vef-json-viewer/props.cjs +0 -2
- package/cjs/vef-layout/common-styles.cjs +4 -12
- package/cjs/vef-layout/components/content.cjs +1 -17
- package/cjs/vef-layout/components/font-size.cjs +1 -72
- package/cjs/vef-layout/components/fullscreen.cjs +1 -27
- package/cjs/vef-layout/components/header-action-icons.cjs +6 -33
- package/cjs/vef-layout/components/header-content.cjs +1 -23
- package/cjs/vef-layout/components/header.cjs +6 -73
- package/cjs/vef-layout/components/icon-boy.cjs +1 -73
- package/cjs/vef-layout/components/icon-girl.cjs +1 -80
- package/cjs/vef-layout/components/icon-menu-fold-left.cjs +1 -27
- package/cjs/vef-layout/components/icon-menu-unfold-left.cjs +1 -27
- package/cjs/vef-layout/components/menu-groups.cjs +15 -127
- package/cjs/vef-layout/components/message.cjs +1 -15
- package/cjs/vef-layout/components/search.cjs +1 -15
- package/cjs/vef-layout/components/sider.cjs +5 -58
- package/cjs/vef-layout/components/title.cjs +8 -57
- package/cjs/vef-layout/components/user-avatar.cjs +9 -84
- package/cjs/vef-layout/hooks/use-layout-context.cjs +1 -14
- package/cjs/vef-layout/index.cjs +2 -37
- package/cjs/vef-layout/logo.svg.cjs +1 -7
- package/cjs/vef-layout/props.cjs +0 -2
- package/cjs/vef-layout/store.cjs +1 -20
- package/cjs/vef-line-chart/index.cjs +1 -42
- package/cjs/vef-line-chart/props.cjs +0 -2
- package/cjs/vef-loading-placeholder/index.cjs +5 -46
- package/cjs/vef-loading-placeholder/props.cjs +0 -2
- package/cjs/vef-login/index.cjs +21 -156
- package/cjs/vef-login/login-icon.cjs +1 -672
- package/cjs/vef-login/props.cjs +0 -2
- package/cjs/vef-menu/index.cjs +4 -81
- package/cjs/vef-menu/props.cjs +0 -2
- package/cjs/vef-modal/components/action-button-wrapper.cjs +1 -53
- package/cjs/vef-modal/components/button-props.cjs +0 -2
- package/cjs/vef-modal/components/cancel-action-button.cjs +1 -22
- package/cjs/vef-modal/components/ok-action-button.cjs +1 -24
- package/cjs/vef-modal/context.cjs +1 -19
- package/cjs/vef-modal/index.cjs +2 -244
- package/cjs/vef-modal/props.cjs +0 -2
- package/cjs/vef-not-found/index.cjs +9 -49
- package/cjs/vef-not-found/not-found-icon.cjs +1 -848
- package/cjs/vef-not-found/props.cjs +0 -2
- package/cjs/vef-page/index.cjs +10 -91
- package/cjs/vef-page/props.cjs +0 -2
- package/cjs/vef-pagination/index.cjs +1 -61
- package/cjs/vef-pagination/props.cjs +1 -15
- package/cjs/vef-paragraph/index.cjs +1 -93
- package/cjs/vef-paragraph/props.cjs +0 -2
- package/cjs/vef-password/hooks/use-password-instance.cjs +1 -15
- package/cjs/vef-password/index.cjs +1 -71
- package/cjs/vef-password/props.cjs +0 -2
- package/cjs/vef-pie-chart/index.cjs +8 -74
- package/cjs/vef-pie-chart/props.cjs +0 -2
- package/cjs/vef-popconfirm/index.cjs +1 -60
- package/cjs/vef-popconfirm/props.cjs +0 -2
- package/cjs/vef-popover/index.cjs +1 -38
- package/cjs/vef-popover/props.cjs +0 -2
- package/cjs/vef-radio/hooks/use-data-options.cjs +1 -42
- package/cjs/vef-radio/hooks/use-radio-instance.cjs +1 -22
- package/cjs/vef-radio/index.cjs +3 -92
- package/cjs/vef-radio/props.cjs +0 -2
- package/cjs/vef-rate/hooks/use-rate-instance.cjs +1 -15
- package/cjs/vef-rate/index.cjs +1 -34
- package/cjs/vef-rate/props.cjs +0 -2
- package/cjs/vef-responsive-container/index.cjs +2 -58
- package/cjs/vef-responsive-container/props.cjs +0 -2
- package/cjs/vef-responsive-item/index.cjs +2 -27
- package/cjs/vef-responsive-item/props.cjs +0 -2
- package/cjs/vef-ribbon/index.cjs +1 -42
- package/cjs/vef-ribbon/props.cjs +0 -2
- package/cjs/vef-row/index.cjs +1 -16
- package/cjs/vef-row/props.cjs +0 -2
- package/cjs/vef-scroll-area/components/scrollbar.cjs +7 -38
- package/cjs/vef-scroll-area/index.cjs +3 -73
- package/cjs/vef-scroll-area/props.cjs +0 -2
- package/cjs/vef-segment/index.cjs +1 -40
- package/cjs/vef-segment/props.cjs +0 -2
- package/cjs/vef-select/components/option.cjs +3 -27
- package/cjs/vef-select/hooks/use-data-options.cjs +1 -49
- package/cjs/vef-select/hooks/use-field-names.cjs +1 -23
- package/cjs/vef-select/hooks/use-render-label.cjs +2 -25
- package/cjs/vef-select/hooks/use-render-option.cjs +1 -21
- package/cjs/vef-select/hooks/use-select-instance.cjs +1 -22
- package/cjs/vef-select/index.cjs +1 -104
- package/cjs/vef-select/props.cjs +0 -2
- package/cjs/vef-slider/hooks/use-slider-instance.cjs +1 -15
- package/cjs/vef-slider/index.cjs +1 -38
- package/cjs/vef-slider/props.cjs +0 -2
- package/cjs/vef-sortable-list/components/overlay-item.cjs +2 -35
- package/cjs/vef-sortable-list/components/sortable-item.cjs +2 -79
- package/cjs/vef-sortable-list/hooks/use-merged-items.cjs +1 -23
- package/cjs/vef-sortable-list/index.cjs +1 -118
- package/cjs/vef-sortable-list/props.cjs +0 -2
- package/cjs/vef-space/index.cjs +1 -29
- package/cjs/vef-space/props.cjs +0 -2
- package/cjs/vef-spin/index.cjs +1 -16
- package/cjs/vef-spin/props.cjs +0 -2
- package/cjs/vef-splitter/index.cjs +1 -24
- package/cjs/vef-splitter/props.cjs +0 -2
- package/cjs/vef-splitter-panel/index.cjs +1 -16
- package/cjs/vef-splitter-panel/props.cjs +0 -2
- package/cjs/vef-status/index.cjs +1 -41
- package/cjs/vef-status/props.cjs +0 -2
- package/cjs/vef-table/components/columns/bool.cjs +1 -95
- package/cjs/vef-table/components/columns/code.cjs +1 -14
- package/cjs/vef-table/components/columns/data-dictionary.cjs +1 -96
- package/cjs/vef-table/components/columns/enum.cjs +1 -105
- package/cjs/vef-table/components/columns/file.cjs +1 -14
- package/cjs/vef-table/components/columns/icon.cjs +1 -14
- package/cjs/vef-table/components/columns/id.cjs +1 -86
- package/cjs/vef-table/components/columns/image.cjs +1 -15
- package/cjs/vef-table/components/columns/index.cjs +1 -35
- package/cjs/vef-table/components/columns/markdown.cjs +1 -14
- package/cjs/vef-table/components/columns/number.cjs +1 -87
- package/cjs/vef-table/components/columns/props.cjs +0 -2
- package/cjs/vef-table/components/columns/render.cjs +1 -32
- package/cjs/vef-table/components/columns/rich-text.cjs +1 -14
- package/cjs/vef-table/components/columns/text.cjs +1 -92
- package/cjs/vef-table/components/columns-settings.cjs +10 -199
- package/cjs/vef-table/components/operation-buttons.cjs +2 -234
- package/cjs/vef-table/components/settings-icon.cjs +3 -23
- package/cjs/vef-table/components/table-footer.cjs +3 -106
- package/cjs/vef-table/helper.cjs +1 -17
- package/cjs/vef-table/hooks/use-computed-batch-buttons.cjs +1 -35
- package/cjs/vef-table/hooks/use-computed-columns.cjs +1 -22
- package/cjs/vef-table/hooks/use-computed-values.cjs +1 -40
- package/cjs/vef-table/hooks/use-data.cjs +1 -59
- package/cjs/vef-table/hooks/use-default-column-configs.cjs +1 -29
- package/cjs/vef-table/hooks/use-display-value.cjs +1 -38
- package/cjs/vef-table/hooks/use-helper-columns.cjs +1 -69
- package/cjs/vef-table/hooks/use-operation-column-width.cjs +1 -52
- package/cjs/vef-table/hooks/use-pagination-props.cjs +1 -46
- package/cjs/vef-table/hooks/use-row-props.cjs +1 -41
- package/cjs/vef-table/hooks/use-row-selection-config.cjs +1 -114
- package/cjs/vef-table/hooks/use-selected-rows.cjs +1 -28
- package/cjs/vef-table/hooks/use-table-columns.cjs +1 -58
- package/cjs/vef-table/hooks/use-table-context.cjs +1 -25
- package/cjs/vef-table/hooks/use-table-instance.cjs +1 -17
- package/cjs/vef-table/hooks/use-table-summary.cjs +1 -44
- package/cjs/vef-table/hooks/use-table-width.cjs +1 -15
- package/cjs/vef-table/index.cjs +5 -231
- package/cjs/vef-table/props.cjs +0 -2
- package/cjs/vef-table/store.cjs +1 -21
- package/cjs/vef-table/types.cjs +0 -2
- package/cjs/vef-tabs/index.cjs +1 -29
- package/cjs/vef-tabs/props.cjs +0 -2
- package/cjs/vef-tag/index.cjs +1 -32
- package/cjs/vef-tag/props.cjs +0 -2
- package/cjs/vef-temporal-picker/helper.cjs +1 -59
- package/cjs/vef-temporal-picker/hooks/use-dayjs-value.cjs +1 -20
- package/cjs/vef-temporal-picker/hooks/use-temporal-limit.cjs +1 -36
- package/cjs/vef-temporal-picker/hooks/use-temporal-picker-instance.cjs +1 -21
- package/cjs/vef-temporal-picker/index.cjs +1 -129
- package/cjs/vef-temporal-picker/props.cjs +0 -2
- package/cjs/vef-temporal-range-picker/helper.cjs +1 -59
- package/cjs/vef-temporal-range-picker/hooks/use-dayjs-values.cjs +1 -25
- package/cjs/vef-temporal-range-picker/hooks/use-temporal-limit.cjs +1 -36
- package/cjs/vef-temporal-range-picker/hooks/use-temporal-range-picker-instance.cjs +1 -21
- package/cjs/vef-temporal-range-picker/index.cjs +1 -132
- package/cjs/vef-temporal-range-picker/props.cjs +1 -6
- package/cjs/vef-text/index.cjs +1 -84
- package/cjs/vef-text/props.cjs +0 -2
- package/cjs/vef-textarea/hooks/use-textarea-instance.cjs +1 -15
- package/cjs/vef-textarea/index.cjs +1 -71
- package/cjs/vef-textarea/props.cjs +0 -2
- package/cjs/vef-title/index.cjs +6 -93
- package/cjs/vef-title/props.cjs +0 -2
- package/cjs/vef-tooltip/index.cjs +1 -39
- package/cjs/vef-tooltip/props.cjs +0 -2
- package/cjs/vef-tree-select/hooks/use-change-handler.cjs +1 -35
- package/cjs/vef-tree-select/hooks/use-data-options.cjs +1 -47
- package/cjs/vef-tree-select/hooks/use-tree-select-instance.cjs +1 -22
- package/cjs/vef-tree-select/index.cjs +1 -93
- package/cjs/vef-tree-select/props.cjs +0 -2
- package/cjs/vef-virtual-grid/index.cjs +3 -111
- package/cjs/vef-virtual-grid/props.cjs +0 -2
- package/cjs/vef-virtual-list/index.cjs +4 -219
- package/cjs/vef-virtual-list/props.cjs +0 -2
- package/esm/index.js +1 -97
- package/esm/internal/base.css.js +490 -2
- package/esm/internal/chart.js +1 -18
- package/esm/internal/index.js +1 -4
- package/esm/internal/modern-normalize.css.js +213 -2
- package/esm/internal/utils.js +1 -6
- package/esm/vef-access-denied/access-denied-icon.js +1 -928
- package/esm/vef-access-denied/index.js +9 -45
- package/esm/vef-action-buttons/index.js +1 -75
- package/esm/vef-approval-flow-editor/components/edge.js +2 -83
- package/esm/vef-approval-flow-editor/components/label-value.js +8 -27
- package/esm/vef-approval-flow-editor/components/node-content.js +10 -45
- package/esm/vef-approval-flow-editor/components/node-selector.js +4 -33
- package/esm/vef-approval-flow-editor/components/node-toolbar.js +1 -21
- package/esm/vef-approval-flow-editor/components/nodes/approval.js +1 -24
- package/esm/vef-approval-flow-editor/components/nodes/condition.js +1 -24
- package/esm/vef-approval-flow-editor/components/nodes/end.js +1 -24
- package/esm/vef-approval-flow-editor/components/nodes/handle.js +1 -24
- package/esm/vef-approval-flow-editor/components/nodes/index.js +1 -17
- package/esm/vef-approval-flow-editor/components/nodes/submit.js +1 -24
- package/esm/vef-approval-flow-editor/components/selector-content.js +9 -48
- package/esm/vef-approval-flow-editor/components/source-handle.js +1 -40
- package/esm/vef-approval-flow-editor/components/target-handle.js +1 -9
- package/esm/vef-approval-flow-editor/constants.js +1 -218
- package/esm/vef-approval-flow-editor/helper.js +1 -83
- package/esm/vef-approval-flow-editor/hooks/use-edges-interaction.js +1 -25
- package/esm/vef-approval-flow-editor/hooks/use-element-selection.js +1 -24
- package/esm/vef-approval-flow-editor/hooks/use-nodes-interaction.js +1 -51
- package/esm/vef-approval-flow-editor/index.js +1 -75
- package/esm/vef-approval-flow-editor/models/edge-node.js +1 -20
- package/esm/vef-approval-flow-editor/models/flow-node.js +1 -105
- package/esm/vef-approval-flow-editor/store.js +1 -16
- package/esm/vef-approval-flow-editor/styles.js +12 -20
- package/esm/vef-approval-flow-editor/types.js +1 -15
- package/esm/vef-area-chart/index.js +1 -41
- package/esm/vef-auto-sizer/index.js +1 -6
- package/esm/vef-avatar/index.js +1 -20
- package/esm/vef-avatar-group/index.js +1 -25
- package/esm/vef-badge/index.js +1 -47
- package/esm/vef-bar-chart/index.js +1 -41
- package/esm/vef-bool/hooks/use-bool-instance.js +1 -34
- package/esm/vef-bool/index.js +1 -60
- package/esm/vef-breadcrumb/index.js +1 -48
- package/esm/vef-button/components/base-button.js +1 -73
- package/esm/vef-button/index.js +1 -151
- package/esm/vef-card/index.js +1 -25
- package/esm/vef-card-meta/index.js +1 -12
- package/esm/vef-chart-container/hooks/use-chart-container-context.js +1 -12
- package/esm/vef-chart-container/index.js +13 -79
- package/esm/vef-chart-legend-content/index.js +10 -43
- package/esm/vef-chart-tooltip-content/index.js +22 -85
- package/esm/vef-checkbox/hooks/use-checkbox-instance.js +1 -20
- package/esm/vef-checkbox/hooks/use-data-options.js +1 -40
- package/esm/vef-checkbox/index.js +3 -88
- package/esm/vef-code-editor/hooks/use-change-handler.js +1 -10
- package/esm/vef-code-editor/hooks/use-config-extensions.js +1 -48
- package/esm/vef-code-editor/hooks/use-height-props.js +1 -20
- package/esm/vef-code-editor/hooks/use-language-extensions.js +1 -117
- package/esm/vef-code-editor/hooks/use-setup-options.js +1 -37
- package/esm/vef-code-editor/index.js +1 -57
- package/esm/vef-code-editor/styles.js +46 -52
- package/esm/vef-col/index.js +1 -11
- package/esm/vef-color-picker/index.js +1 -46
- package/esm/vef-compact/index.js +1 -15
- package/esm/vef-config-provider/global-style.js +15 -23
- package/esm/vef-config-provider/hooks/use-ui-config.js +1 -126
- package/esm/vef-config-provider/index.js +3 -121
- package/esm/vef-config-provider/store.js +1 -21
- package/esm/vef-container/index.js +1 -18
- package/esm/vef-crud-page/components/crud-actions.js +1 -32
- package/esm/vef-crud-page/components/crud-filter.js +1 -54
- package/esm/vef-crud-page/components/crud-footer.js +3 -116
- package/esm/vef-crud-page/components/crud-form-modal.js +1 -53
- package/esm/vef-crud-page/components/crud-header.js +1 -29
- package/esm/vef-crud-page/components/crud-table.js +1 -76
- package/esm/vef-crud-page/hooks/use-action-buttons.js +1 -37
- package/esm/vef-crud-page/hooks/use-crud-context.js +1 -20
- package/esm/vef-crud-page/hooks/use-crud-schema.js +1 -116
- package/esm/vef-crud-page/hooks/use-operation-buttons.js +1 -60
- package/esm/vef-crud-page/index.js +1 -150
- package/esm/vef-crud-page/store.js +1 -142
- package/esm/vef-data-grid/index.js +1 -85
- package/esm/vef-data-table/index.js +1 -9
- package/esm/vef-divider/index.js +1 -24
- package/esm/vef-drawer/components/action-button-wrapper.js +1 -49
- package/esm/vef-drawer/components/cancel-action-button.js +1 -21
- package/esm/vef-drawer/components/ok-action-button.js +1 -20
- package/esm/vef-drawer/context.js +1 -15
- package/esm/vef-drawer/index.js +3 -154
- package/esm/vef-dropdown/index.js +1 -92
- package/esm/vef-dynamic-icon/index.js +1 -46
- package/esm/vef-dynamic-icon/props.js +1 -6
- package/esm/vef-empty/index.js +1 -37
- package/esm/vef-empty-placeholder/index.js +4 -19
- package/esm/vef-error/error-icon.js +1 -757
- package/esm/vef-error/index.js +9 -48
- package/esm/vef-filter/components/action-buttons.js +5 -121
- package/esm/vef-filter/components/advanced-filter.js +8 -71
- package/esm/vef-filter/components/basic-filter.js +4 -35
- package/esm/vef-filter/components/fields/index.js +1 -19
- package/esm/vef-filter/components/fields/input-number.js +1 -90
- package/esm/vef-filter/components/fields/input.js +1 -67
- package/esm/vef-filter/components/fields/radio.js +1 -109
- package/esm/vef-filter/components/fields/select.js +1 -140
- package/esm/vef-filter/components/fields/tree-select.js +1 -136
- package/esm/vef-filter/components/filter-field.js +1 -19
- package/esm/vef-filter/components/filter-item.js +1 -112
- package/esm/vef-filter/event.js +1 -44
- package/esm/vef-filter/helper.js +1 -15
- package/esm/vef-filter/hooks/use-action-handlers.js +1 -70
- package/esm/vef-filter/hooks/use-computed-values.js +1 -55
- package/esm/vef-filter/hooks/use-filter-context.js +1 -18
- package/esm/vef-filter/hooks/use-filter-initialization.js +1 -37
- package/esm/vef-filter/hooks/use-filter-instance.js +1 -26
- package/esm/vef-filter/hooks/use-filter-items.js +1 -23
- package/esm/vef-filter/hooks/use-filter-values-change.js +1 -30
- package/esm/vef-filter/hooks/use-label-config.js +1 -27
- package/esm/vef-filter/index.js +2 -141
- package/esm/vef-filter/store.js +1 -71
- package/esm/vef-flex/index.js +1 -31
- package/esm/vef-float-button/index.js +1 -49
- package/esm/vef-float-button-group/index.js +1 -20
- package/esm/vef-form/components/fields/icon-select.js +1 -65
- package/esm/vef-form/components/fields/index.js +1 -25
- package/esm/vef-form/components/fields/input-number.js +1 -123
- package/esm/vef-form/components/fields/input.js +1 -132
- package/esm/vef-form/components/fields/password.js +1 -115
- package/esm/vef-form/components/fields/radio.js +1 -106
- package/esm/vef-form/components/fields/select.js +1 -238
- package/esm/vef-form/components/fields/textarea.js +1 -109
- package/esm/vef-form/components/fields/tree-select.js +1 -234
- package/esm/vef-form/components/form-actions.js +3 -58
- package/esm/vef-form/components/form-content.js +2 -144
- package/esm/vef-form/components/form-field.js +1 -22
- package/esm/vef-form/components/form-group.js +3 -64
- package/esm/vef-form/components/form-hidden-item.js +1 -36
- package/esm/vef-form/components/form-item.js +1 -79
- package/esm/vef-form/components/form-row.js +1 -98
- package/esm/vef-form/event.js +1 -44
- package/esm/vef-form/helper.js +1 -15
- package/esm/vef-form/hooks/use-action-handlers.js +1 -130
- package/esm/vef-form/hooks/use-columns-layout.js +1 -122
- package/esm/vef-form/hooks/use-computed-values.js +1 -55
- package/esm/vef-form/hooks/use-form-context.js +1 -14
- package/esm/vef-form/hooks/use-form-initialization.js +1 -45
- package/esm/vef-form/hooks/use-form-instance.js +1 -26
- package/esm/vef-form/hooks/use-form-values-change.js +1 -30
- package/esm/vef-form/hooks/use-label-width.js +1 -18
- package/esm/vef-form/index.js +3 -174
- package/esm/vef-form/store.js +1 -65
- package/esm/vef-form/validation-rules.js +1 -286
- package/esm/vef-form-drawer/index.js +1 -98
- package/esm/vef-form-modal/index.js +1 -95
- package/esm/vef-generic-select/index.js +1 -81
- package/esm/vef-grid/index.js +12 -77
- package/esm/vef-grid/props.js +1 -4
- package/esm/vef-grid-item/index.js +1 -52
- package/esm/vef-icon/index.js +1 -50
- package/esm/vef-icon-select/index.js +11 -146
- package/esm/vef-input/hooks/use-input-instance.js +1 -15
- package/esm/vef-input/index.js +1 -64
- package/esm/vef-input-number/hooks/use-input-number-instance.js +1 -13
- package/esm/vef-input-number/index.js +1 -148
- package/esm/vef-intellisense-code-editor/hooks/use-change-handler.js +1 -10
- package/esm/vef-intellisense-code-editor/hooks/use-editor-options.js +1 -31
- package/esm/vef-intellisense-code-editor/hooks/use-path.js +1 -30
- package/esm/vef-intellisense-code-editor/index.js +1 -42
- package/esm/vef-intellisense-code-editor/loader.js +1 -120
- package/esm/vef-intellisense-code-editor/styles.js +9 -15
- package/esm/vef-intellisense-code-editor/themes/github-light.json.js +349 -3
- package/esm/vef-json-viewer/index.js +1 -38
- package/esm/vef-layout/common-styles.js +4 -10
- package/esm/vef-layout/components/content.js +1 -13
- package/esm/vef-layout/components/font-size.js +1 -68
- package/esm/vef-layout/components/fullscreen.js +1 -23
- package/esm/vef-layout/components/header-action-icons.js +6 -29
- package/esm/vef-layout/components/header-content.js +1 -19
- package/esm/vef-layout/components/header.js +6 -69
- package/esm/vef-layout/components/icon-boy.js +1 -69
- package/esm/vef-layout/components/icon-girl.js +1 -76
- package/esm/vef-layout/components/icon-menu-fold-left.js +1 -23
- package/esm/vef-layout/components/icon-menu-unfold-left.js +1 -23
- package/esm/vef-layout/components/menu-groups.js +15 -123
- package/esm/vef-layout/components/message.js +1 -11
- package/esm/vef-layout/components/search.js +1 -11
- package/esm/vef-layout/components/sider.js +5 -54
- package/esm/vef-layout/components/title.js +8 -53
- package/esm/vef-layout/components/user-avatar.js +9 -80
- package/esm/vef-layout/hooks/use-layout-context.js +1 -10
- package/esm/vef-layout/index.js +2 -33
- package/esm/vef-layout/logo.svg.js +1 -3
- package/esm/vef-layout/store.js +1 -16
- package/esm/vef-line-chart/index.js +1 -38
- package/esm/vef-loading-placeholder/index.js +5 -42
- package/esm/vef-login/index.js +21 -152
- package/esm/vef-login/login-icon.js +1 -668
- package/esm/vef-menu/index.js +4 -77
- package/esm/vef-modal/components/action-button-wrapper.js +1 -49
- package/esm/vef-modal/components/cancel-action-button.js +1 -18
- package/esm/vef-modal/components/ok-action-button.js +1 -20
- package/esm/vef-modal/context.js +1 -15
- package/esm/vef-modal/index.js +2 -239
- package/esm/vef-not-found/index.js +9 -45
- package/esm/vef-not-found/not-found-icon.js +1 -844
- package/esm/vef-page/index.js +10 -87
- package/esm/vef-pagination/index.js +1 -57
- package/esm/vef-pagination/props.js +1 -13
- package/esm/vef-paragraph/index.js +1 -89
- package/esm/vef-password/hooks/use-password-instance.js +1 -13
- package/esm/vef-password/index.js +1 -67
- package/esm/vef-pie-chart/index.js +8 -70
- package/esm/vef-popconfirm/index.js +1 -56
- package/esm/vef-popover/index.js +1 -34
- package/esm/vef-radio/hooks/use-data-options.js +1 -40
- package/esm/vef-radio/hooks/use-radio-instance.js +1 -20
- package/esm/vef-radio/index.js +3 -88
- package/esm/vef-rate/hooks/use-rate-instance.js +1 -13
- package/esm/vef-rate/index.js +1 -30
- package/esm/vef-responsive-container/index.js +2 -54
- package/esm/vef-responsive-item/index.js +2 -23
- package/esm/vef-ribbon/index.js +1 -38
- package/esm/vef-row/index.js +1 -12
- package/esm/vef-scroll-area/components/scrollbar.js +7 -34
- package/esm/vef-scroll-area/index.js +3 -69
- package/esm/vef-segment/index.js +1 -36
- package/esm/vef-select/components/option.js +3 -23
- package/esm/vef-select/hooks/use-data-options.js +1 -47
- package/esm/vef-select/hooks/use-field-names.js +1 -21
- package/esm/vef-select/hooks/use-render-label.js +2 -23
- package/esm/vef-select/hooks/use-render-option.js +1 -19
- package/esm/vef-select/hooks/use-select-instance.js +1 -20
- package/esm/vef-select/index.js +1 -100
- package/esm/vef-slider/hooks/use-slider-instance.js +1 -13
- package/esm/vef-slider/index.js +1 -34
- package/esm/vef-sortable-list/components/overlay-item.js +2 -31
- package/esm/vef-sortable-list/components/sortable-item.js +2 -75
- package/esm/vef-sortable-list/hooks/use-merged-items.js +1 -21
- package/esm/vef-sortable-list/index.js +1 -114
- package/esm/vef-space/index.js +1 -25
- package/esm/vef-spin/index.js +1 -12
- package/esm/vef-splitter/index.js +1 -20
- package/esm/vef-splitter-panel/index.js +1 -12
- package/esm/vef-status/index.js +1 -37
- package/esm/vef-table/components/columns/bool.js +1 -91
- package/esm/vef-table/components/columns/code.js +1 -10
- package/esm/vef-table/components/columns/data-dictionary.js +1 -92
- package/esm/vef-table/components/columns/enum.js +1 -101
- package/esm/vef-table/components/columns/file.js +1 -10
- package/esm/vef-table/components/columns/icon.js +1 -10
- package/esm/vef-table/components/columns/id.js +1 -82
- package/esm/vef-table/components/columns/image.js +1 -11
- package/esm/vef-table/components/columns/index.js +1 -33
- package/esm/vef-table/components/columns/markdown.js +1 -10
- package/esm/vef-table/components/columns/number.js +1 -83
- package/esm/vef-table/components/columns/render.js +1 -28
- package/esm/vef-table/components/columns/rich-text.js +1 -10
- package/esm/vef-table/components/columns/text.js +1 -88
- package/esm/vef-table/components/columns-settings.js +10 -195
- package/esm/vef-table/components/operation-buttons.js +2 -230
- package/esm/vef-table/components/settings-icon.js +3 -19
- package/esm/vef-table/components/table-footer.js +3 -102
- package/esm/vef-table/helper.js +1 -15
- package/esm/vef-table/hooks/use-computed-batch-buttons.js +1 -33
- package/esm/vef-table/hooks/use-computed-columns.js +1 -20
- package/esm/vef-table/hooks/use-computed-values.js +1 -38
- package/esm/vef-table/hooks/use-data.js +1 -57
- package/esm/vef-table/hooks/use-default-column-configs.js +1 -27
- package/esm/vef-table/hooks/use-display-value.js +1 -36
- package/esm/vef-table/hooks/use-helper-columns.js +1 -67
- package/esm/vef-table/hooks/use-operation-column-width.js +1 -50
- package/esm/vef-table/hooks/use-pagination-props.js +1 -44
- package/esm/vef-table/hooks/use-row-props.js +1 -39
- package/esm/vef-table/hooks/use-row-selection-config.js +1 -112
- package/esm/vef-table/hooks/use-selected-rows.js +1 -26
- package/esm/vef-table/hooks/use-table-columns.js +1 -56
- package/esm/vef-table/hooks/use-table-context.js +1 -21
- package/esm/vef-table/hooks/use-table-instance.js +1 -15
- package/esm/vef-table/hooks/use-table-summary.js +1 -42
- package/esm/vef-table/hooks/use-table-width.js +1 -13
- package/esm/vef-table/index.js +5 -227
- package/esm/vef-table/store.js +1 -17
- package/esm/vef-tabs/index.js +1 -25
- package/esm/vef-tag/index.js +1 -28
- package/esm/vef-temporal-picker/helper.js +1 -57
- package/esm/vef-temporal-picker/hooks/use-dayjs-value.js +1 -18
- package/esm/vef-temporal-picker/hooks/use-temporal-limit.js +1 -34
- package/esm/vef-temporal-picker/hooks/use-temporal-picker-instance.js +1 -19
- package/esm/vef-temporal-picker/index.js +1 -125
- package/esm/vef-temporal-range-picker/helper.js +1 -57
- package/esm/vef-temporal-range-picker/hooks/use-dayjs-values.js +1 -23
- package/esm/vef-temporal-range-picker/hooks/use-temporal-limit.js +1 -34
- package/esm/vef-temporal-range-picker/hooks/use-temporal-range-picker-instance.js +1 -19
- package/esm/vef-temporal-range-picker/index.js +1 -128
- package/esm/vef-temporal-range-picker/props.js +1 -4
- package/esm/vef-text/index.js +1 -80
- package/esm/vef-textarea/hooks/use-textarea-instance.js +1 -13
- package/esm/vef-textarea/index.js +1 -67
- package/esm/vef-title/index.js +6 -89
- package/esm/vef-tooltip/index.js +1 -35
- package/esm/vef-tree-select/hooks/use-change-handler.js +1 -33
- package/esm/vef-tree-select/hooks/use-data-options.js +1 -45
- package/esm/vef-tree-select/hooks/use-tree-select-instance.js +1 -20
- package/esm/vef-tree-select/index.js +1 -89
- package/esm/vef-virtual-grid/index.js +3 -107
- package/esm/vef-virtual-list/index.js +4 -215
- package/package.json +5 -5
- package/types/index.d.ts +0 -1
|
@@ -1,141 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
import
|
|
3
|
-
import { css } from '@emotion/react';
|
|
4
|
-
import { useThemeTokens } from '@vef-framework/hooks';
|
|
5
|
-
import { themeVariables, styles } from '@vef-framework/shared';
|
|
6
|
-
import VefText from '../../vef-text/index.js';
|
|
7
|
-
|
|
8
|
-
"use strict";
|
|
9
|
-
const containerStyle = css`
|
|
2
|
+
import{jsxs as i,jsx as c}from"@emotion/react/jsx-runtime";import{css as s}from"@emotion/react";import{useThemeTokens as e}from"@vef-framework/hooks";import{themeVariables as n,styles as h}from"@vef-framework/shared";import r from"../../vef-text/index.js";const p=s`
|
|
10
3
|
display: grid;
|
|
11
4
|
grid-template-columns: 320px 320px;
|
|
12
|
-
|
|
13
|
-
const itemStyle = css`
|
|
5
|
+
`,t=s`
|
|
14
6
|
display: flex;
|
|
15
7
|
align-items: center;
|
|
16
|
-
gap: ${
|
|
17
|
-
padding: ${
|
|
18
|
-
border-radius: ${
|
|
8
|
+
gap: ${n.padding};
|
|
9
|
+
padding: ${n.padding};
|
|
10
|
+
border-radius: ${n.borderRadiusLg};
|
|
19
11
|
cursor: pointer;
|
|
20
12
|
user-select: none;
|
|
21
|
-
transition: background-color ${
|
|
13
|
+
transition: background-color ${n.motionDurationMid} ${n.motionEaseInOut};
|
|
22
14
|
|
|
23
15
|
&:hover {
|
|
24
|
-
background-color: ${
|
|
16
|
+
background-color: ${n.colorFillContent};
|
|
25
17
|
}
|
|
26
|
-
|
|
27
|
-
const iconStyle = css`
|
|
18
|
+
`,o=s`
|
|
28
19
|
flex: none;
|
|
29
|
-
${
|
|
30
|
-
|
|
31
|
-
const metaStyle = css`
|
|
20
|
+
${h.flexCenter}
|
|
21
|
+
`,d=s`
|
|
32
22
|
flex: auto;
|
|
33
23
|
display: flex;
|
|
34
24
|
flex-direction: column;
|
|
35
|
-
gap: ${
|
|
36
|
-
color: ${
|
|
25
|
+
gap: ${n.paddingXxs};
|
|
26
|
+
color: ${n.colorText};
|
|
37
27
|
min-width: 0;
|
|
38
28
|
|
|
39
29
|
> span:last-of-type {
|
|
40
|
-
color: ${
|
|
41
|
-
font-size: ${
|
|
30
|
+
color: ${n.colorTextSecondary};
|
|
31
|
+
font-size: ${n.fontSizeSm};
|
|
42
32
|
}
|
|
43
|
-
`;
|
|
44
|
-
function IconSystem() {
|
|
45
|
-
const { controlHeightLG } = useThemeTokens();
|
|
46
|
-
return /* @__PURE__ */ jsxs(
|
|
47
|
-
"svg",
|
|
48
|
-
{
|
|
49
|
-
height: controlHeightLG,
|
|
50
|
-
viewBox: "0 0 1024 1024",
|
|
51
|
-
width: controlHeightLG,
|
|
52
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
53
|
-
children: [
|
|
54
|
-
/* @__PURE__ */ jsx("path", { d: "M768 1024H256C115.2 1024 0 908.8 0 768V256C0 115.2 115.2 0 256 0h512c140.8 0 256 115.2 256 256v512c0 140.8-115.2 256-256 256z", fill: "#10C7C1", "p-id": "1234" }),
|
|
55
|
-
/* @__PURE__ */ jsx("path", { d: "M757.333333 364.8L725.333333 394.666667c-32 32-85.333333 32-117.333333 0s-32-85.333333 0-119.466667l29.866667-29.866667c17.066667-17.066667 6.4-36.266667-25.6-32-32 4.266667-61.866667 19.2-85.333334 42.666667-36.266667 36.266667-51.2 89.6-40.533333 140.8l-256 258.133333c-32 32-32 85.333333 0 119.466667 32 32 85.333333 32 117.333333 0l256-258.133333c83.2 17.066667 164.266667-34.133333 181.333334-117.333334 0-2.133333 2.133333-6.4 2.133333-8.533333 6.4-32-12.8-42.666667-29.866667-25.6z m-448 369.066667c-10.666667 10.666667-27.733333 10.666667-38.4 0s-10.666667-27.733333 0-40.533334c10.666667-10.666667 29.866667-10.666667 38.4 2.133334 10.666667 10.666667 10.666667 27.733333 0 38.4z m-27.733333-364.8l96 96 38.4-40.533334-96-96-21.333333-40.533333-68.266667-49.066667L192 279.466667l49.066667 68.266666 40.533333 21.333334zM605.866667 576c-6.4-6.4-14.933333-6.4-19.2 0l-59.733334 59.733333c-6.4 6.4-6.4 14.933333 0 19.2l138.666667 140.8c21.333333 21.333333 57.6 21.333333 78.933333 0s21.333333-57.6 0-78.933333c0-2.133333-138.666667-140.8-138.666666-140.8z", fill: "#FFFFFF", "p-id": "1235" })
|
|
56
|
-
]
|
|
57
|
-
}
|
|
58
|
-
);
|
|
59
|
-
}
|
|
60
|
-
function IconMainData() {
|
|
61
|
-
const { controlHeightLG } = useThemeTokens();
|
|
62
|
-
return /* @__PURE__ */ jsxs(
|
|
63
|
-
"svg",
|
|
64
|
-
{
|
|
65
|
-
height: controlHeightLG,
|
|
66
|
-
viewBox: "0 0 1024 1024",
|
|
67
|
-
width: controlHeightLG,
|
|
68
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
69
|
-
children: [
|
|
70
|
-
/* @__PURE__ */ jsx("path", { d: "M768 1024H256C115.2 1024 0 908.8 0 768V256C0 115.2 115.2 0 256 0h512c140.8 0 256 115.2 256 256v512c0 140.8-115.2 256-256 256z", fill: "#9F53E6", "p-id": "1388" }),
|
|
71
|
-
/* @__PURE__ */ jsx("path", { d: "M567.466667 780.8c-4.266667 0-8.533333-2.133333-12.8-6.4l-102.4-162.133333-204.8-14.933334c-6.4 0-10.666667-6.4-12.8-12.8-2.133333-6.4 0-12.8 6.4-17.066666l452.266666-285.866667c4.266667-2.133333 8.533333-4.266667 12.8-2.133333 8.533333 2.133333 10.666667 10.666667 10.666667 17.066666l-132.266667 469.333334c-2.133333 6.4-6.4 10.666667-12.8 12.8-2.133333 2.133333-2.133333 2.133333-4.266666 2.133333z", fill: "#FFFFFF", "p-id": "1389" })
|
|
72
|
-
]
|
|
73
|
-
}
|
|
74
|
-
);
|
|
75
|
-
}
|
|
76
|
-
function IconProcess() {
|
|
77
|
-
const { controlHeightLG } = useThemeTokens();
|
|
78
|
-
return /* @__PURE__ */ jsxs(
|
|
79
|
-
"svg",
|
|
80
|
-
{
|
|
81
|
-
height: controlHeightLG,
|
|
82
|
-
viewBox: "0 0 1024 1024",
|
|
83
|
-
width: controlHeightLG,
|
|
84
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
85
|
-
children: [
|
|
86
|
-
/* @__PURE__ */ jsx("path", { d: "M768 1024H256C115.2 1024 0 908.8 0 768V256C0 115.2 115.2 0 256 0h512c140.8 0 256 115.2 256 256v512c0 140.8-115.2 256-256 256z", fill: "#0EB4F6", "p-id": "1696" }),
|
|
87
|
-
/* @__PURE__ */ jsx("path", { d: "M785.066667 627.2v70.4c0 27.733333-23.466667 51.2-51.2 51.2H682.666667c-27.733333 0-51.2-23.466667-51.2-51.2v-70.4c0-14.933333 6.4-27.733333 14.933333-36.266667 8.533333-8.533333 21.333333-14.933333 36.266667-14.933333 4.266667 0 8.533333-4.266667 8.533333-8.533333v-40.533334c0-8.533333-8.533333-17.066667-17.066667-17.066666h-136.533333c-4.266667 0-8.533333 4.266667-8.533333 8.533333v51.2c0 4.266667 4.266667 8.533333 8.533333 8.533333 27.733333 0 51.2 23.466667 51.2 51.2v70.4c0 27.733333-23.466667 51.2-51.2 51.2h-51.2c-27.733333 0-51.2-23.466667-51.2-51.2v-70.4c0-27.733333 23.466667-51.2 51.2-51.2 4.266667 0 8.533333-4.266667 8.533333-8.533333v-51.2c0-4.266667-4.266667-8.533333-8.533333-8.533333h-136.533333c-8.533333 0-17.066667 8.533333-17.066667 17.066666v40.533334c0 2.133333 0 4.266667 2.133333 6.4s4.266667 2.133333 6.4 2.133333c27.733333 0 51.2 23.466667 51.2 51.2v70.4c0 27.733333-23.466667 51.2-51.2 51.2h-51.2c-27.733333 0-51.2-23.466667-51.2-51.2v-70.4c0-14.933333 6.4-27.733333 14.933334-36.266667 8.533333-8.533333 21.333333-14.933333 36.266666-14.933333 4.266667 0 8.533333-4.266667 8.533334-8.533333v-40.533334c0-27.733333 23.466667-51.2 51.2-51.2h136.533333c4.266667 0 8.533333-4.266667 8.533333-8.533333v-51.2c0-4.266667-4.266667-8.533333-8.533333-8.533333h-25.6c-27.733333 0-51.2-23.466667-51.2-51.2v-102.4c0-27.733333 23.466667-51.2 51.2-51.2h102.4c27.733333 0 51.2 23.466667 51.2 51.2v102.4c0 27.733333-23.466667 51.2-51.2 51.2h-25.6c-4.266667 0-8.533333 4.266667-8.533333 8.533333v51.2c0 4.266667 4.266667 8.533333 8.533333 8.533333h136.533333c27.733333 0 51.2 23.466667 51.2 51.2v40.533334c0 4.266667 4.266667 8.533333 8.533334 8.533333 29.866667 0 51.2 23.466667 51.2 51.2z", fill: "#FFFFFF", "p-id": "1697" })
|
|
88
|
-
]
|
|
89
|
-
}
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
function IconBusiness() {
|
|
93
|
-
const { controlHeightLG } = useThemeTokens();
|
|
94
|
-
return /* @__PURE__ */ jsxs(
|
|
95
|
-
"svg",
|
|
96
|
-
{
|
|
97
|
-
height: controlHeightLG,
|
|
98
|
-
viewBox: "0 0 1024 1024",
|
|
99
|
-
width: controlHeightLG,
|
|
100
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
101
|
-
children: [
|
|
102
|
-
/* @__PURE__ */ jsx("path", { d: "M768 1024H256C115.2 1024 0 908.8 0 768V256C0 115.2 115.2 0 256 0h512c140.8 0 256 115.2 256 256v512c0 140.8-115.2 256-256 256z", fill: "#10C7C1", "p-id": "1850" }),
|
|
103
|
-
/* @__PURE__ */ jsx("path", { d: "M708.266667 258.133333H300.8c-17.066667 0-34.133333 14.933333-34.133333 32v441.6c0 19.2 14.933333 32 34.133333 32h407.466667c19.2 0 34.133333-14.933333 34.133333-32V290.133333c2.133333-17.066667-14.933333-32-34.133333-32zM377.6 512c-12.8 0-25.6-10.666667-25.6-23.466667s12.8-23.466667 25.6-23.466666 25.6 10.666667 25.6 23.466666c0 12.8-12.8 23.466667-25.6 23.466667z m0-115.2c-12.8 0-25.6-10.666667-25.6-23.466667s12.8-23.466667 25.6-23.466666 25.6 10.666667 25.6 23.466666c0 12.8-12.8 23.466667-25.6 23.466667z m256 115.2h-170.666667c-12.8 0-25.6-10.666667-25.6-23.466667s12.8-23.466667 25.6-23.466666h170.666667c12.8 0 25.6 10.666667 25.6 23.466666-2.133333 12.8-12.8 23.466667-25.6 23.466667z m0-115.2h-170.666667c-12.8 0-25.6-10.666667-25.6-23.466667s12.8-23.466667 25.6-23.466666h170.666667c12.8 0 25.6 10.666667 25.6 23.466666-2.133333 12.8-12.8 23.466667-25.6 23.466667z", fill: "#FFFFFF", "p-id": "1851" })
|
|
104
|
-
]
|
|
105
|
-
}
|
|
106
|
-
);
|
|
107
|
-
}
|
|
108
|
-
function VefMenuGroups() {
|
|
109
|
-
return /* @__PURE__ */ jsxs("div", { css: containerStyle, children: [
|
|
110
|
-
/* @__PURE__ */ jsxs("div", { css: itemStyle, children: [
|
|
111
|
-
/* @__PURE__ */ jsx("span", { css: iconStyle, children: /* @__PURE__ */ jsx(IconSystem, {}) }),
|
|
112
|
-
/* @__PURE__ */ jsxs("div", { css: metaStyle, children: [
|
|
113
|
-
/* @__PURE__ */ jsx(VefText, { children: "系统管理" }),
|
|
114
|
-
/* @__PURE__ */ jsx(VefText, { color: "secondary", children: "系统全局相关配置" })
|
|
115
|
-
] })
|
|
116
|
-
] }),
|
|
117
|
-
/* @__PURE__ */ jsxs("div", { css: itemStyle, children: [
|
|
118
|
-
/* @__PURE__ */ jsx("span", { css: iconStyle, children: /* @__PURE__ */ jsx(IconMainData, {}) }),
|
|
119
|
-
/* @__PURE__ */ jsxs("div", { css: metaStyle, children: [
|
|
120
|
-
/* @__PURE__ */ jsx(VefText, { children: "主数据管理" }),
|
|
121
|
-
/* @__PURE__ */ jsx(VefText, { ellipsis: true, color: "secondary", children: "医院、科室、医生、患者等主数据管理" })
|
|
122
|
-
] })
|
|
123
|
-
] }),
|
|
124
|
-
/* @__PURE__ */ jsxs("div", { css: itemStyle, children: [
|
|
125
|
-
/* @__PURE__ */ jsx("span", { css: iconStyle, children: /* @__PURE__ */ jsx(IconProcess, {}) }),
|
|
126
|
-
/* @__PURE__ */ jsxs("div", { css: metaStyle, children: [
|
|
127
|
-
/* @__PURE__ */ jsx(VefText, { children: "流程管理" }),
|
|
128
|
-
/* @__PURE__ */ jsx(VefText, { children: "系统整体涉及的所有流程管理" })
|
|
129
|
-
] })
|
|
130
|
-
] }),
|
|
131
|
-
/* @__PURE__ */ jsxs("div", { css: itemStyle, children: [
|
|
132
|
-
/* @__PURE__ */ jsx("span", { css: iconStyle, children: /* @__PURE__ */ jsx(IconBusiness, {}) }),
|
|
133
|
-
/* @__PURE__ */ jsxs("div", { css: metaStyle, children: [
|
|
134
|
-
/* @__PURE__ */ jsx(VefText, { children: "业务管理" }),
|
|
135
|
-
/* @__PURE__ */ jsx(VefText, { color: "secondary", children: "医疗业务相关管理" })
|
|
136
|
-
] })
|
|
137
|
-
] })
|
|
138
|
-
] });
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
export { VefMenuGroups as default };
|
|
33
|
+
`;function v(){const{controlHeightLG:l}=e();return i("svg",{height:l,viewBox:"0 0 1024 1024",width:l,xmlns:"http://www.w3.org/2000/svg",children:[c("path",{d:"M768 1024H256C115.2 1024 0 908.8 0 768V256C0 115.2 115.2 0 256 0h512c140.8 0 256 115.2 256 256v512c0 140.8-115.2 256-256 256z",fill:"#10C7C1","p-id":"1234"}),c("path",{d:"M757.333333 364.8L725.333333 394.666667c-32 32-85.333333 32-117.333333 0s-32-85.333333 0-119.466667l29.866667-29.866667c17.066667-17.066667 6.4-36.266667-25.6-32-32 4.266667-61.866667 19.2-85.333334 42.666667-36.266667 36.266667-51.2 89.6-40.533333 140.8l-256 258.133333c-32 32-32 85.333333 0 119.466667 32 32 85.333333 32 117.333333 0l256-258.133333c83.2 17.066667 164.266667-34.133333 181.333334-117.333334 0-2.133333 2.133333-6.4 2.133333-8.533333 6.4-32-12.8-42.666667-29.866667-25.6z m-448 369.066667c-10.666667 10.666667-27.733333 10.666667-38.4 0s-10.666667-27.733333 0-40.533334c10.666667-10.666667 29.866667-10.666667 38.4 2.133334 10.666667 10.666667 10.666667 27.733333 0 38.4z m-27.733333-364.8l96 96 38.4-40.533334-96-96-21.333333-40.533333-68.266667-49.066667L192 279.466667l49.066667 68.266666 40.533333 21.333334zM605.866667 576c-6.4-6.4-14.933333-6.4-19.2 0l-59.733334 59.733333c-6.4 6.4-6.4 14.933333 0 19.2l138.666667 140.8c21.333333 21.333333 57.6 21.333333 78.933333 0s21.333333-57.6 0-78.933333c0-2.133333-138.666667-140.8-138.666666-140.8z",fill:"#FFFFFF","p-id":"1235"})]})}function a(){const{controlHeightLG:l}=e();return i("svg",{height:l,viewBox:"0 0 1024 1024",width:l,xmlns:"http://www.w3.org/2000/svg",children:[c("path",{d:"M768 1024H256C115.2 1024 0 908.8 0 768V256C0 115.2 115.2 0 256 0h512c140.8 0 256 115.2 256 256v512c0 140.8-115.2 256-256 256z",fill:"#9F53E6","p-id":"1388"}),c("path",{d:"M567.466667 780.8c-4.266667 0-8.533333-2.133333-12.8-6.4l-102.4-162.133333-204.8-14.933334c-6.4 0-10.666667-6.4-12.8-12.8-2.133333-6.4 0-12.8 6.4-17.066666l452.266666-285.866667c4.266667-2.133333 8.533333-4.266667 12.8-2.133333 8.533333 2.133333 10.666667 10.666667 10.666667 17.066666l-132.266667 469.333334c-2.133333 6.4-6.4 10.666667-12.8 12.8-2.133333 2.133333-2.133333 2.133333-4.266666 2.133333z",fill:"#FFFFFF","p-id":"1389"})]})}function g(){const{controlHeightLG:l}=e();return i("svg",{height:l,viewBox:"0 0 1024 1024",width:l,xmlns:"http://www.w3.org/2000/svg",children:[c("path",{d:"M768 1024H256C115.2 1024 0 908.8 0 768V256C0 115.2 115.2 0 256 0h512c140.8 0 256 115.2 256 256v512c0 140.8-115.2 256-256 256z",fill:"#0EB4F6","p-id":"1696"}),c("path",{d:"M785.066667 627.2v70.4c0 27.733333-23.466667 51.2-51.2 51.2H682.666667c-27.733333 0-51.2-23.466667-51.2-51.2v-70.4c0-14.933333 6.4-27.733333 14.933333-36.266667 8.533333-8.533333 21.333333-14.933333 36.266667-14.933333 4.266667 0 8.533333-4.266667 8.533333-8.533333v-40.533334c0-8.533333-8.533333-17.066667-17.066667-17.066666h-136.533333c-4.266667 0-8.533333 4.266667-8.533333 8.533333v51.2c0 4.266667 4.266667 8.533333 8.533333 8.533333 27.733333 0 51.2 23.466667 51.2 51.2v70.4c0 27.733333-23.466667 51.2-51.2 51.2h-51.2c-27.733333 0-51.2-23.466667-51.2-51.2v-70.4c0-27.733333 23.466667-51.2 51.2-51.2 4.266667 0 8.533333-4.266667 8.533333-8.533333v-51.2c0-4.266667-4.266667-8.533333-8.533333-8.533333h-136.533333c-8.533333 0-17.066667 8.533333-17.066667 17.066666v40.533334c0 2.133333 0 4.266667 2.133333 6.4s4.266667 2.133333 6.4 2.133333c27.733333 0 51.2 23.466667 51.2 51.2v70.4c0 27.733333-23.466667 51.2-51.2 51.2h-51.2c-27.733333 0-51.2-23.466667-51.2-51.2v-70.4c0-14.933333 6.4-27.733333 14.933334-36.266667 8.533333-8.533333 21.333333-14.933333 36.266666-14.933333 4.266667 0 8.533333-4.266667 8.533334-8.533333v-40.533334c0-27.733333 23.466667-51.2 51.2-51.2h136.533333c4.266667 0 8.533333-4.266667 8.533333-8.533333v-51.2c0-4.266667-4.266667-8.533333-8.533333-8.533333h-25.6c-27.733333 0-51.2-23.466667-51.2-51.2v-102.4c0-27.733333 23.466667-51.2 51.2-51.2h102.4c27.733333 0 51.2 23.466667 51.2 51.2v102.4c0 27.733333-23.466667 51.2-51.2 51.2h-25.6c-4.266667 0-8.533333 4.266667-8.533333 8.533333v51.2c0 4.266667 4.266667 8.533333 8.533333 8.533333h136.533333c27.733333 0 51.2 23.466667 51.2 51.2v40.533334c0 4.266667 4.266667 8.533333 8.533334 8.533333 29.866667 0 51.2 23.466667 51.2 51.2z",fill:"#FFFFFF","p-id":"1697"})]})}function m(){const{controlHeightLG:l}=e();return i("svg",{height:l,viewBox:"0 0 1024 1024",width:l,xmlns:"http://www.w3.org/2000/svg",children:[c("path",{d:"M768 1024H256C115.2 1024 0 908.8 0 768V256C0 115.2 115.2 0 256 0h512c140.8 0 256 115.2 256 256v512c0 140.8-115.2 256-256 256z",fill:"#10C7C1","p-id":"1850"}),c("path",{d:"M708.266667 258.133333H300.8c-17.066667 0-34.133333 14.933333-34.133333 32v441.6c0 19.2 14.933333 32 34.133333 32h407.466667c19.2 0 34.133333-14.933333 34.133333-32V290.133333c2.133333-17.066667-14.933333-32-34.133333-32zM377.6 512c-12.8 0-25.6-10.666667-25.6-23.466667s12.8-23.466667 25.6-23.466666 25.6 10.666667 25.6 23.466666c0 12.8-12.8 23.466667-25.6 23.466667z m0-115.2c-12.8 0-25.6-10.666667-25.6-23.466667s12.8-23.466667 25.6-23.466666 25.6 10.666667 25.6 23.466666c0 12.8-12.8 23.466667-25.6 23.466667z m256 115.2h-170.666667c-12.8 0-25.6-10.666667-25.6-23.466667s12.8-23.466667 25.6-23.466666h170.666667c12.8 0 25.6 10.666667 25.6 23.466666-2.133333 12.8-12.8 23.466667-25.6 23.466667z m0-115.2h-170.666667c-12.8 0-25.6-10.666667-25.6-23.466667s12.8-23.466667 25.6-23.466666h170.666667c12.8 0 25.6 10.666667 25.6 23.466666-2.133333 12.8-12.8 23.466667-25.6 23.466667z",fill:"#FFFFFF","p-id":"1851"})]})}function f(){return i("div",{css:p,children:[i("div",{css:t,children:[c("span",{css:o,children:c(v,{})}),i("div",{css:d,children:[c(r,{children:"系统管理"}),c(r,{color:"secondary",children:"系统全局相关配置"})]})]}),i("div",{css:t,children:[c("span",{css:o,children:c(a,{})}),i("div",{css:d,children:[c(r,{children:"主数据管理"}),c(r,{ellipsis:!0,color:"secondary",children:"医院、科室、医生、患者等主数据管理"})]})]}),i("div",{css:t,children:[c("span",{css:o,children:c(g,{})}),i("div",{css:d,children:[c(r,{children:"流程管理"}),c(r,{children:"系统整体涉及的所有流程管理"})]})]}),i("div",{css:t,children:[c("span",{css:o,children:c(m,{})}),i("div",{css:d,children:[c(r,{children:"业务管理"}),c(r,{color:"secondary",children:"医疗业务相关管理"})]})]})]})}export{f as default};
|
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
import
|
|
3
|
-
import { BellIcon } from 'lucide-react';
|
|
4
|
-
import VefIcon from '../../vef-icon/index.js';
|
|
5
|
-
import { iconStyle } from '../common-styles.js';
|
|
6
|
-
|
|
7
|
-
"use strict";
|
|
8
|
-
function VefMessage() {
|
|
9
|
-
return /* @__PURE__ */ jsx("div", { css: iconStyle, children: /* @__PURE__ */ jsx(VefIcon, { size: "large", children: /* @__PURE__ */ jsx(BellIcon, {}) }) });
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export { VefMessage as default };
|
|
2
|
+
import{jsx as r}from"@emotion/react/jsx-runtime";import{BellIcon as i}from"lucide-react";import o from"../../vef-icon/index.js";import{iconStyle as t}from"../common-styles.js";function e(){return r("div",{css:t,children:r(o,{size:"large",children:r(i,{})})})}export{e as default};
|
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
import
|
|
3
|
-
import { SearchIcon } from 'lucide-react';
|
|
4
|
-
import VefIcon from '../../vef-icon/index.js';
|
|
5
|
-
import { iconStyle } from '../common-styles.js';
|
|
6
|
-
|
|
7
|
-
"use strict";
|
|
8
|
-
function VefSearch() {
|
|
9
|
-
return /* @__PURE__ */ jsx("div", { css: iconStyle, children: /* @__PURE__ */ jsx(VefIcon, { size: "large", children: /* @__PURE__ */ jsx(SearchIcon, {}) }) });
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export { VefSearch as default };
|
|
2
|
+
import{jsx as r}from"@emotion/react/jsx-runtime";import{SearchIcon as o}from"lucide-react";import i from"../../vef-icon/index.js";import{iconStyle as t}from"../common-styles.js";function e(){return r("div",{css:t,children:r(i,{size:"large",children:r(o,{})})})}export{e as default};
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import { themeVariables } from '@vef-framework/shared';
|
|
5
|
-
import { Layout } from 'antd';
|
|
6
|
-
import { memo } from 'react';
|
|
7
|
-
import VefMenu from '../../vef-menu/index.js';
|
|
8
|
-
import VefScrollArea from '../../vef-scroll-area/index.js';
|
|
9
|
-
import { useLayoutContextSelector } from '../hooks/use-layout-context.js';
|
|
10
|
-
import { useLayoutStore } from '../store.js';
|
|
11
|
-
import VefTitle from './title.js';
|
|
12
|
-
|
|
13
|
-
"use strict";
|
|
14
|
-
const { Sider } = Layout;
|
|
15
|
-
const siderStyle = css`
|
|
16
|
-
border-right: ${themeVariables.lineWidth} ${themeVariables.lineType} ${themeVariables.colorBorderSecondary};
|
|
2
|
+
import{jsxs as a,jsx as t}from"@emotion/react/jsx-runtime";import{css as u}from"@emotion/react";import{themeVariables as i}from"@vef-framework/shared";import{Layout as p}from"antd";import{memo as f}from"react";import c from"../../vef-menu/index.js";import h from"../../vef-scroll-area/index.js";import{useLayoutContextSelector as v}from"../hooks/use-layout-context.js";import{useLayoutStore as y}from"../store.js";import b from"./title.js";const{Sider:g}=p,x=u`
|
|
3
|
+
border-right: ${i.lineWidth} ${i.lineType} ${i.colorBorderSecondary};
|
|
17
4
|
|
|
18
5
|
> .vef-layout-sider-children {
|
|
19
6
|
--vef-layout-header-height: 60px;
|
|
@@ -50,8 +37,8 @@ const siderStyle = css`
|
|
|
50
37
|
inset-inline-start: 0;
|
|
51
38
|
pointer-events: none;
|
|
52
39
|
width: 0;
|
|
53
|
-
height: calc(${
|
|
54
|
-
border-inline-start: 4px ${
|
|
40
|
+
height: calc(${i.fontSize} * 0.8);
|
|
41
|
+
border-inline-start: 4px ${i.lineType} var(--vef-menu-item-selected-color);
|
|
55
42
|
border-radius: var(--vef-menu-item-border-radius);
|
|
56
43
|
}
|
|
57
44
|
}
|
|
@@ -60,40 +47,4 @@ const siderStyle = css`
|
|
|
60
47
|
}
|
|
61
48
|
}
|
|
62
49
|
}
|
|
63
|
-
`;
|
|
64
|
-
function VefSiderBase() {
|
|
65
|
-
const [menuItems, defaultOpenedMenuKeys, activeMenuKey, onActiveMenuKeyChange] = useLayoutContextSelector((ctx) => [ctx.menuItems, ctx.defaultOpenedMenuKeys, ctx.activeMenuKey, ctx.onActiveMenuKeyChange]);
|
|
66
|
-
const [siderCollapsed, setSiderCollapsed] = useLayoutStore((state) => [state.siderCollapsed, state.setSiderCollapsed]);
|
|
67
|
-
return /* @__PURE__ */ jsxs(
|
|
68
|
-
Sider,
|
|
69
|
-
{
|
|
70
|
-
collapsible: true,
|
|
71
|
-
breakpoint: "lg",
|
|
72
|
-
collapsed: siderCollapsed,
|
|
73
|
-
collapsedWidth: 80,
|
|
74
|
-
css: siderStyle,
|
|
75
|
-
theme: "light",
|
|
76
|
-
trigger: null,
|
|
77
|
-
width: 220,
|
|
78
|
-
onCollapse: setSiderCollapsed,
|
|
79
|
-
children: [
|
|
80
|
-
/* @__PURE__ */ jsx(VefTitle, {}),
|
|
81
|
-
/* @__PURE__ */ jsx("div", { className: "vef-layout-sider-menu", children: /* @__PURE__ */ jsx(VefScrollArea, { scrollbarSize: "small", children: /* @__PURE__ */ jsx(
|
|
82
|
-
VefMenu,
|
|
83
|
-
{
|
|
84
|
-
inlineExpansion: true,
|
|
85
|
-
defaultOpenedKeys: defaultOpenedMenuKeys,
|
|
86
|
-
inlineCollapsed: siderCollapsed,
|
|
87
|
-
items: menuItems ?? [],
|
|
88
|
-
selectedKeys: activeMenuKey ? [activeMenuKey] : [],
|
|
89
|
-
onSelect: onActiveMenuKeyChange
|
|
90
|
-
}
|
|
91
|
-
) }) })
|
|
92
|
-
]
|
|
93
|
-
}
|
|
94
|
-
);
|
|
95
|
-
}
|
|
96
|
-
const VefSider = memo(VefSiderBase);
|
|
97
|
-
VefSider.displayName = "VefSider";
|
|
98
|
-
|
|
99
|
-
export { VefSider as default };
|
|
50
|
+
`;function S(){const[l,s,o,d]=v(e=>[e.menuItems,e.defaultOpenedMenuKeys,e.activeMenuKey,e.onActiveMenuKeyChange]),[n,m]=y(e=>[e.siderCollapsed,e.setSiderCollapsed]);return a(g,{collapsible:!0,breakpoint:"lg",collapsed:n,collapsedWidth:80,css:x,theme:"light",trigger:null,width:220,onCollapse:m,children:[t(b,{}),t("div",{className:"vef-layout-sider-menu",children:t(h,{scrollbarSize:"small",children:t(c,{inlineExpansion:!0,defaultOpenedKeys:s,inlineCollapsed:n,items:l??[],selectedKeys:o?[o]:[],onSelect:d})})})]})}const r=f(S);r.displayName="VefSider";export{r as default};
|
|
@@ -1,30 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
import
|
|
3
|
-
import { css } from '@emotion/react';
|
|
4
|
-
import { themeVariables, styles } from '@vef-framework/shared';
|
|
5
|
-
import { AnimatePresence, motion } from 'motion/react';
|
|
6
|
-
import { memo } from 'react';
|
|
7
|
-
import { useLayoutContextSelector } from '../hooks/use-layout-context.js';
|
|
8
|
-
import defaultLogo from '../logo.svg.js';
|
|
9
|
-
import { useLayoutStore } from '../store.js';
|
|
10
|
-
|
|
11
|
-
"use strict";
|
|
12
|
-
const titleStyle = css`
|
|
2
|
+
import{jsxs as l,jsx as o}from"@emotion/react/jsx-runtime";import{css as s}from"@emotion/react";import{themeVariables as e,styles as d}from"@vef-framework/shared";import{AnimatePresence as m,motion as c}from"motion/react";import{memo as h}from"react";import{useLayoutContextSelector as f}from"../hooks/use-layout-context.js";import p from"../logo.svg.js";import{useLayoutStore as x}from"../store.js";const g=s`
|
|
13
3
|
flex: none;
|
|
14
4
|
height: var(--vef-layout-header-height);
|
|
15
|
-
border-bottom: ${
|
|
5
|
+
border-bottom: ${e.lineWidth} ${e.lineType} ${e.colorBorderSecondary};
|
|
16
6
|
display: flex;
|
|
17
7
|
align-items: center;
|
|
18
|
-
padding: 0 ${
|
|
8
|
+
padding: 0 ${e.paddingSm};
|
|
19
9
|
overflow: hidden;
|
|
20
10
|
user-select: none;
|
|
21
11
|
|
|
22
12
|
> div {
|
|
23
13
|
flex: none;
|
|
24
14
|
width: 55px;
|
|
25
|
-
height: calc(${
|
|
15
|
+
height: calc(${e.controlHeight} * 1.2);
|
|
26
16
|
font-size: 0;
|
|
27
|
-
${
|
|
17
|
+
${d.flexCenter}
|
|
28
18
|
|
|
29
19
|
> img {
|
|
30
20
|
height: 100%;
|
|
@@ -36,47 +26,12 @@ const titleStyle = css`
|
|
|
36
26
|
flex: auto;
|
|
37
27
|
margin: 0;
|
|
38
28
|
font-weight: bold;
|
|
39
|
-
font-size: ${
|
|
40
|
-
color: ${
|
|
29
|
+
font-size: ${e.fontSizeLg};
|
|
30
|
+
color: ${e.colorTextSlate};
|
|
41
31
|
max-width: 156px;
|
|
42
32
|
white-space: nowrap;
|
|
43
33
|
overflow: hidden;
|
|
44
34
|
text-align: center;
|
|
45
35
|
text-overflow: ellipsis;
|
|
46
36
|
}
|
|
47
|
-
|
|
48
|
-
const defaultTitle = "VEF中后台系统";
|
|
49
|
-
function VefTitleBase() {
|
|
50
|
-
const [logo, title] = useLayoutContextSelector((ctx) => [ctx.logo, ctx.title]);
|
|
51
|
-
const siderCollapsed = useLayoutStore((state) => state.siderCollapsed);
|
|
52
|
-
return /* @__PURE__ */ jsxs("div", { css: titleStyle, children: [
|
|
53
|
-
/* @__PURE__ */ jsx("div", { children: logo || /* @__PURE__ */ jsx("img", { alt: "VEF", src: defaultLogo }) }),
|
|
54
|
-
/* @__PURE__ */ jsx(AnimatePresence, { initial: false, children: !siderCollapsed && /* @__PURE__ */ jsx(
|
|
55
|
-
motion.h3,
|
|
56
|
-
{
|
|
57
|
-
layout: true,
|
|
58
|
-
animate: {
|
|
59
|
-
opacity: 1,
|
|
60
|
-
x: 0
|
|
61
|
-
},
|
|
62
|
-
exit: {
|
|
63
|
-
opacity: 0,
|
|
64
|
-
x: 32
|
|
65
|
-
},
|
|
66
|
-
initial: {
|
|
67
|
-
opacity: 0,
|
|
68
|
-
x: -32
|
|
69
|
-
},
|
|
70
|
-
transition: {
|
|
71
|
-
duration: 0.2,
|
|
72
|
-
ease: "easeIn"
|
|
73
|
-
},
|
|
74
|
-
children: title || defaultTitle
|
|
75
|
-
}
|
|
76
|
-
) })
|
|
77
|
-
] });
|
|
78
|
-
}
|
|
79
|
-
const VefTitle = memo(VefTitleBase);
|
|
80
|
-
VefTitle.displayName = "VefTitle";
|
|
81
|
-
|
|
82
|
-
export { VefTitle as default };
|
|
37
|
+
`,u="VEF中后台系统";function y(){const[r,n]=f(t=>[t.logo,t.title]),a=x(t=>t.siderCollapsed);return l("div",{css:g,children:[o("div",{children:r||o("img",{alt:"VEF",src:p})}),o(m,{initial:!1,children:!a&&o(c.h3,{layout:!0,animate:{opacity:1,x:0},exit:{opacity:0,x:32},initial:{opacity:0,x:-32},transition:{duration:.2,ease:"easeIn"},children:n||u})})]})}const i=h(y);i.displayName="VefTitle";export{i as default};
|
|
@@ -1,88 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
import
|
|
3
|
-
import { css } from '@emotion/react';
|
|
4
|
-
import { themeVariables, showConfirmation } from '@vef-framework/shared';
|
|
5
|
-
import { UserRoundIcon, LockKeyholeIcon, LogOutIcon } from 'lucide-react';
|
|
6
|
-
import { useCallback } from 'react';
|
|
7
|
-
import VefAvatar from '../../vef-avatar/index.js';
|
|
8
|
-
import VefDropdown from '../../vef-dropdown/index.js';
|
|
9
|
-
import VefIcon from '../../vef-icon/index.js';
|
|
10
|
-
import { useLayoutContextSelector } from '../hooks/use-layout-context.js';
|
|
11
|
-
import Memo from './icon-boy.js';
|
|
12
|
-
import Memo$1 from './icon-girl.js';
|
|
13
|
-
|
|
14
|
-
"use strict";
|
|
15
|
-
const wrapperStyle = css`
|
|
2
|
+
import{jsx as e,jsxs as t}from"@emotion/react/jsx-runtime";import{css as n}from"@emotion/react";import{themeVariables as i,showConfirmation as d}from"@vef-framework/shared";import{UserRoundIcon as f,LockKeyholeIcon as u,LogOutIcon as g}from"lucide-react";import{useCallback as h}from"react";import y from"../../vef-avatar/index.js";import x from"../../vef-dropdown/index.js";import s from"../../vef-icon/index.js";import{useLayoutContextSelector as b}from"../hooks/use-layout-context.js";import k from"./icon-boy.js";import $ from"./icon-girl.js";const C=n`
|
|
16
3
|
display: flex;
|
|
17
4
|
align-items: center;
|
|
18
|
-
column-gap: ${
|
|
19
|
-
padding: ${
|
|
20
|
-
|
|
21
|
-
const nameStyle = css`
|
|
5
|
+
column-gap: ${i.marginSm};
|
|
6
|
+
padding: ${i.paddingXs};
|
|
7
|
+
`,L=n`
|
|
22
8
|
display: flex;
|
|
23
9
|
flex-direction: column;
|
|
24
10
|
align-items: center;
|
|
25
|
-
row-gap: calc(${
|
|
11
|
+
row-gap: calc(${i.marginXxs} + 2px);
|
|
26
12
|
user-select: none;
|
|
27
13
|
line-height: 1;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
`;
|
|
33
|
-
const menuItems = [
|
|
34
|
-
{
|
|
35
|
-
type: "item",
|
|
36
|
-
key: "userInfo",
|
|
37
|
-
label: "个人信息",
|
|
38
|
-
icon: /* @__PURE__ */ jsx(VefIcon, { children: /* @__PURE__ */ jsx(UserRoundIcon, {}) })
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
type: "item",
|
|
42
|
-
key: "passwordModification",
|
|
43
|
-
label: "修改密码",
|
|
44
|
-
icon: /* @__PURE__ */ jsx(VefIcon, { children: /* @__PURE__ */ jsx(LockKeyholeIcon, {}) })
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
type: "item",
|
|
48
|
-
key: "logout",
|
|
49
|
-
label: "退出登录",
|
|
50
|
-
icon: /* @__PURE__ */ jsx(VefIcon, { children: /* @__PURE__ */ jsx(LogOutIcon, {}) })
|
|
51
|
-
}
|
|
52
|
-
];
|
|
53
|
-
const defaultBoyAvatar = /* @__PURE__ */ jsx(Memo, {});
|
|
54
|
-
const defaultGirlAvatar = /* @__PURE__ */ jsx(Memo$1, {});
|
|
55
|
-
function VefUserAvatar() {
|
|
56
|
-
const [onLogout, userName, userGender, userAvatar, userDescription] = useLayoutContextSelector((ctx) => [ctx.onLogout, ctx.userName, ctx.userGender, ctx.userAvatar, ctx.userDescription]);
|
|
57
|
-
const handleClick = useCallback((key) => {
|
|
58
|
-
if (key === "logout" && onLogout) {
|
|
59
|
-
showConfirmation("登出提示", "确定要退出登录吗?", onLogout);
|
|
60
|
-
}
|
|
61
|
-
}, [onLogout]);
|
|
62
|
-
return /* @__PURE__ */ jsx(
|
|
63
|
-
VefDropdown,
|
|
64
|
-
{
|
|
65
|
-
items: menuItems,
|
|
66
|
-
onClick: handleClick,
|
|
67
|
-
children: /* @__PURE__ */ jsxs("div", { css: wrapperStyle, children: [
|
|
68
|
-
/* @__PURE__ */ jsx(
|
|
69
|
-
VefAvatar,
|
|
70
|
-
{
|
|
71
|
-
size: "medium",
|
|
72
|
-
src: userAvatar || (userGender === "female" ? defaultGirlAvatar : defaultBoyAvatar)
|
|
73
|
-
}
|
|
74
|
-
),
|
|
75
|
-
/* @__PURE__ */ jsxs("div", { css: nameStyle, children: [
|
|
76
|
-
/* @__PURE__ */ jsx("span", { children: userName ?? "佚名" }),
|
|
77
|
-
userDescription && /* @__PURE__ */ jsxs("span", { css: descriptionStyle, children: [
|
|
78
|
-
"[",
|
|
79
|
-
userDescription,
|
|
80
|
-
"]"
|
|
81
|
-
] })
|
|
82
|
-
] })
|
|
83
|
-
] })
|
|
84
|
-
}
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export { VefUserAvatar as default };
|
|
14
|
+
`,S=n`
|
|
15
|
+
font-size: ${i.fontSizeSm};
|
|
16
|
+
color: ${i.colorTextDescription};
|
|
17
|
+
`,v=[{type:"item",key:"userInfo",label:"个人信息",icon:e(s,{children:e(f,{})})},{type:"item",key:"passwordModification",label:"修改密码",icon:e(s,{children:e(u,{})})},{type:"item",key:"logout",label:"退出登录",icon:e(s,{children:e(g,{})})}],w=e(k,{}),I=e($,{});function z(){const[r,c,l,a,m]=b(o=>[o.onLogout,o.userName,o.userGender,o.userAvatar,o.userDescription]),p=h(o=>{o==="logout"&&r&&d("登出提示","确定要退出登录吗?",r)},[r]);return e(x,{items:v,onClick:p,children:t("div",{css:C,children:[e(y,{size:"medium",src:a||(l==="female"?I:w)}),t("div",{css:L,children:[e("span",{children:c??"佚名"}),m&&t("span",{css:S,children:["[",m,"]"]})]})]})})}export{z as default};
|
|
@@ -1,11 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
"use strict";
|
|
5
|
-
const {
|
|
6
|
-
useContextSelector: useLayoutContextSelector,
|
|
7
|
-
useContext: useLayoutContext,
|
|
8
|
-
ContextProvider: LayoutContextProvider
|
|
9
|
-
} = createSelectableContext({});
|
|
10
|
-
|
|
11
|
-
export { LayoutContextProvider, useLayoutContext, useLayoutContextSelector };
|
|
2
|
+
import{createSelectableContext as t}from"@vef-framework/shared";const{useContextSelector:e,useContext:o,ContextProvider:r}=t({});export{r as LayoutContextProvider,o as useLayoutContext,e as useLayoutContextSelector};
|
package/esm/vef-layout/index.js
CHANGED
|
@@ -1,37 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
import
|
|
3
|
-
import { css } from '@emotion/react';
|
|
4
|
-
import { isShallowEqual } from '@vef-framework/shared';
|
|
5
|
-
import { Layout } from 'antd';
|
|
6
|
-
import { memo } from 'react';
|
|
7
|
-
import VefContent from './components/content.js';
|
|
8
|
-
import VefHeader from './components/header.js';
|
|
9
|
-
import VefSider from './components/sider.js';
|
|
10
|
-
import { LayoutContextProvider } from './hooks/use-layout-context.js';
|
|
11
|
-
import { LayoutStoreProvider } from './store.js';
|
|
12
|
-
|
|
13
|
-
"use strict";
|
|
14
|
-
const layoutStyle = css`
|
|
2
|
+
import{jsxs as t,jsx as r}from"@emotion/react/jsx-runtime";import{css as n}from"@emotion/react";import{isShallowEqual as a}from"@vef-framework/shared";import{Layout as e}from"antd";import{memo as l}from"react";import s from"./components/content.js";import c from"./components/header.js";import d from"./components/sider.js";import{LayoutContextProvider as h}from"./hooks/use-layout-context.js";import{LayoutStoreProvider as f}from"./store.js";const u=n`
|
|
15
3
|
height: 100%;
|
|
16
4
|
min-height: initial;
|
|
17
5
|
overflow: hidden;
|
|
18
|
-
`;
|
|
19
|
-
function VefLayoutBase({ children }) {
|
|
20
|
-
return /* @__PURE__ */ jsxs(Layout, { hasSider: true, css: layoutStyle, children: [
|
|
21
|
-
/* @__PURE__ */ jsx(VefSider, {}),
|
|
22
|
-
/* @__PURE__ */ jsxs(Layout, { hasSider: false, children: [
|
|
23
|
-
/* @__PURE__ */ jsx(VefHeader, {}),
|
|
24
|
-
/* @__PURE__ */ jsx(VefContent, { children })
|
|
25
|
-
] })
|
|
26
|
-
] });
|
|
27
|
-
}
|
|
28
|
-
function VefLayoutWrapper({ children, ...restProps }) {
|
|
29
|
-
return /* @__PURE__ */ jsx(LayoutStoreProvider, { initialState: null, children: /* @__PURE__ */ jsx(LayoutContextProvider, { value: restProps, children: /* @__PURE__ */ jsx(VefLayoutBase, { children }) }) });
|
|
30
|
-
}
|
|
31
|
-
const VefLayout = memo(
|
|
32
|
-
VefLayoutWrapper,
|
|
33
|
-
(prevProps, nextProps) => isShallowEqual(prevProps.activeMenuKey, nextProps.activeMenuKey)
|
|
34
|
-
);
|
|
35
|
-
VefLayout.displayName = "VefLayout";
|
|
36
|
-
|
|
37
|
-
export { VefLayout as default };
|
|
6
|
+
`;function p({children:i}){return t(e,{hasSider:!0,css:u,children:[r(d,{}),t(e,{hasSider:!1,children:[r(c,{}),r(s,{children:i})]})]})}function y({children:i,...o}){return r(f,{initialState:null,children:r(h,{value:o,children:r(p,{children:i})})})}const m=l(y,(i,o)=>a(i.activeMenuKey,o.activeMenuKey));m.displayName="VefLayout";export{m as default};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
export { defaultLogo as default };
|
|
1
|
+
var a="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-hidden%3D%22true%22%20role%3D%22img%22%20preserveAspectRatio%3D%22xMidYMid%20meet%22%20viewBox%3D%2296%2053%20150%20145.63955181855252%22%3E%3Cg%20transform%3D%22translate%2895%2C52.18022155761719%29%22%3E%3Cg%20fill%3D%22%2334435C%22%20hollow-target%3D%22text%22%3E%3Cg%20mask%3D%22url%28%23ab0ea033-fda4-47dc-88f0-22900a4a23a9%29%22%3E%3Cg%3E%3Csvg%20x%3D%220%22%20y%3D%220%22%20width%3D%22150%22%20height%3D%22145.63955181855252%22%20filtersec%3D%22colorsb9343370191%22%20class%3D%22image-svg-svg%20primary%22%20style%3D%22overflow%3A%20visible%3B%22%3E%3Csvg%20viewBox%3D%220%200%20334.1409912109375%20324.4289855957031%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill%3D%22none%22%20pointer-events%3D%22none%22%20d%3D%22M0%200h334.141v324.429H0z%22%3E%3C%2Fpath%3E%3Cpath%20class%3D%22st4%22%20d%3D%22M168.019%2013.483c-83.2%200-150.7%2067.5-150.7%20150.7%200%2083.2%2067.5%20150.7%20150.7%20150.7%2083.2%200%20150.7-67.5%20150.7-150.7%200-83.3-67.5-150.7-150.7-150.7zm0%20241c-49.9%200-90.4-40.5-90.4-90.4%200-49.9%2040.5-90.4%2090.4-90.4%2049.9%200%2090.4%2040.5%2090.4%2090.4%200%2050-40.5%2090.4-90.4%2090.4z%22%20fill%3D%22%23fcc29a%22%3E%3C%2Fpath%3E%3Cpath%20class%3D%22st5%22%20d%3D%22M258.419%20164.083c0%2049.9-40.5%2090.4-90.4%2090.4-49.9%200-90.4-40.5-90.4-90.4%200%2066.6%2054%20120.5%20120.5%20120.5s120.5-54%20120.5-120.5c0-83.2-67.5-150.7-150.7-150.7-83.2%200-150.7%2067.5-150.7%20150.7%200-66.6%2054-120.5%20120.5-120.5%2066.7%200%20120.7%2054%20120.7%20120.5%22%20fill%3D%22%233498db%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E%3C%2Fsvg%3E%3C%2Fg%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2843.244998931884766%2C52.94477844238281%29%22%3E%3Cg%20data-gra%3D%22path-name%22%3E%3Cg%20transform%3D%22scale%281%29%22%3E%3Cg%3E%3Cpath%20d%3D%22M31.8-21.32L31.8-21.32Q31.8-17.56%2030.83-14.54%2029.86-11.52%2028.13-9.17%2026.4-6.82%2024.01-5.13%2021.62-3.44%2018.77-2.35%2015.93-1.26%2012.72-0.74%209.51-0.21%206.12-0.21L6.12-0.21Q4.86-0.21%203.65-0.28%202.44-0.35%201.18-0.48L1.18-0.48%201.93-36.52Q4.89-37.46%208.02-37.85%2011.15-38.24%2014.23-38.24L14.23-38.24Q18.07-38.24%2021.3-37.09%2024.52-35.93%2026.86-33.76%2029.19-31.58%2030.49-28.44%2031.8-25.3%2031.8-21.32ZM20.79-19.23L20.79-19.6Q20.81-21.05%2020.48-22.4%2020.14-23.74%2019.38-24.77%2018.61-25.81%2017.43-26.44%2016.25-27.07%2014.61-27.12L14.61-27.12%2013.54-10.47Q15.15-10.72%2016.46-11.53%2017.78-12.35%2018.73-13.55%2019.69-14.74%2020.21-16.21%2020.73-17.67%2020.79-19.23L20.79-19.23ZM64.69-25.83L64.69-25.83Q64.69-23.23%2063.92-21.22%2063.14-19.2%2061.78-17.7%2060.42-16.19%2058.6-15.15%2056.77-14.1%2054.69-13.44%2052.61-12.78%2050.38-12.47%2048.15-12.17%2046-12.14L46-12.14%2046%200.38%2033.49%200.38Q33.49-5.77%2033.52-11.87%2033.54-17.97%2033.6-24.17L33.6-24.17Q33.65-27.45%2033.62-30.72%2033.6-34%2033.76-37.33L33.76-37.33Q37.19-38.35%2040.63-38.86%2044.07-39.37%2047.72-39.37L47.72-39.37Q49.79-39.37%2051.86-39.03%2053.93-38.7%2055.82-37.97%2057.71-37.25%2059.34-36.16%2060.96-35.07%2062.14-33.57%2063.33-32.07%2064.01-30.15%2064.69-28.23%2064.69-25.83ZM52.77-24.92L52.77-24.92Q52.77-26.67%2051.71-27.65%2050.65-28.63%2048.96-28.63L48.96-28.63Q48.39-28.63%2047.79-28.53%2047.19-28.44%2046.65-28.31L46.65-28.31%2046.33-20.46Q46.7-20.41%2047.05-20.41%2047.4-20.41%2047.78-20.41L47.78-20.41Q48.74-20.41%2049.64-20.73%2050.54-21.05%2051.24-21.66%2051.94-22.26%2052.35-23.08%2052.77-23.9%2052.77-24.92Z%22%20transform%3D%22translate%28-1.1800000667572021%2C%2039.369998931884766%29%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E";export{a as default};
|
package/esm/vef-layout/store.js
CHANGED
|
@@ -1,17 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
"use strict";
|
|
5
|
-
const {
|
|
6
|
-
StoreProvider: LayoutStoreProvider,
|
|
7
|
-
useStore: useLayoutStore,
|
|
8
|
-
useStoreApi: useLayoutStoreApi
|
|
9
|
-
} = createComponentStore(
|
|
10
|
-
"Layout",
|
|
11
|
-
() => (set) => ({
|
|
12
|
-
siderCollapsed: false,
|
|
13
|
-
setSiderCollapsed: (collapsed) => set({ siderCollapsed: collapsed })
|
|
14
|
-
})
|
|
15
|
-
);
|
|
16
|
-
|
|
17
|
-
export { LayoutStoreProvider, useLayoutStore, useLayoutStoreApi };
|
|
2
|
+
import{createComponentStore as t}from"@vef-framework/shared";const{StoreProvider:r,useStore:s,useStoreApi:a}=t("Layout",()=>e=>({siderCollapsed:!1,setSiderCollapsed:o=>e({siderCollapsed:o})}));export{r as LayoutStoreProvider,s as useLayoutStore,a as useLayoutStoreApi};
|
|
@@ -1,39 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
import
|
|
3
|
-
import { memo } from 'react';
|
|
4
|
-
import { LineChart, CartesianGrid, XAxis, YAxis, Tooltip, Legend, Line } from 'recharts';
|
|
5
|
-
import VefChartContainer from '../vef-chart-container/index.js';
|
|
6
|
-
import { VefChartLegendContent } from '../vef-chart-legend-content/index.js';
|
|
7
|
-
import VefChartTooltipContent from '../vef-chart-tooltip-content/index.js';
|
|
8
|
-
|
|
9
|
-
"use strict";
|
|
10
|
-
function VefLineChartBase({
|
|
11
|
-
config,
|
|
12
|
-
data,
|
|
13
|
-
dataKey,
|
|
14
|
-
valueFormatter
|
|
15
|
-
}) {
|
|
16
|
-
return /* @__PURE__ */ jsx(VefChartContainer, { config, children: /* @__PURE__ */ jsxs(LineChart, { data, children: [
|
|
17
|
-
/* @__PURE__ */ jsx(CartesianGrid, { vertical: false }),
|
|
18
|
-
/* @__PURE__ */ jsx(XAxis, { axisLine: false, dataKey, tickLine: false, tickMargin: 8 }),
|
|
19
|
-
/* @__PURE__ */ jsx(YAxis, { axisLine: false, tickLine: false, tickMargin: 8 }),
|
|
20
|
-
/* @__PURE__ */ jsx(Tooltip, { content: /* @__PURE__ */ jsx(VefChartTooltipContent, { valueFormatter }) }),
|
|
21
|
-
/* @__PURE__ */ jsx(Legend, { content: /* @__PURE__ */ jsx(VefChartLegendContent, {}) }),
|
|
22
|
-
Object.keys(config).map(
|
|
23
|
-
(key) => /* @__PURE__ */ jsx(
|
|
24
|
-
Line,
|
|
25
|
-
{
|
|
26
|
-
dataKey: key,
|
|
27
|
-
dot: false,
|
|
28
|
-
stroke: `var(--vef-color-${key})`,
|
|
29
|
-
strokeWidth: 2,
|
|
30
|
-
type: "monotone"
|
|
31
|
-
},
|
|
32
|
-
key
|
|
33
|
-
)
|
|
34
|
-
)
|
|
35
|
-
] }) });
|
|
36
|
-
}
|
|
37
|
-
const VefLineChart = memo(VefLineChartBase);
|
|
38
|
-
|
|
39
|
-
export { VefLineChart as default };
|
|
2
|
+
import{jsx as t,jsxs as n}from"@emotion/react/jsx-runtime";import{memo as m}from"react";import{LineChart as c,CartesianGrid as s,XAxis as d,YAxis as f,Tooltip as p,Legend as l,Line as L}from"recharts";import k from"../vef-chart-container/index.js";import{VefChartLegendContent as x}from"../vef-chart-legend-content/index.js";import g from"../vef-chart-tooltip-content/index.js";function u({config:i,data:o,dataKey:r,valueFormatter:a}){return t(k,{config:i,children:n(c,{data:o,children:[t(s,{vertical:!1}),t(d,{axisLine:!1,dataKey:r,tickLine:!1,tickMargin:8}),t(f,{axisLine:!1,tickLine:!1,tickMargin:8}),t(p,{content:t(g,{valueFormatter:a})}),t(l,{content:t(x,{})}),Object.keys(i).map(e=>t(L,{dataKey:e,dot:!1,stroke:`var(--vef-color-${e})`,strokeWidth:2,type:"monotone"},e))]})})}const y=m(u);export{y as default};
|