@baishuyun/ai-design 2.1.7 → 2.1.8
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/CHANGELOG.md +40 -0
- package/dist/ai-design.css +4173 -0
- package/dist/ai-design.js +62784 -0
- package/dist/ai-design.js.map +1 -0
- package/dist/ai-design.umd.cjs +620 -0
- package/dist/ai-design.umd.cjs.map +1 -0
- package/dist/src/components/abs-fullscreen-gradient-bg.d.ts +10 -0
- package/dist/src/components/abs-fullscreen-gradient-bg.d.ts.map +1 -0
- package/dist/src/components/agent-drawer.d.ts +24 -0
- package/dist/src/components/agent-drawer.d.ts.map +1 -0
- package/dist/src/components/agent-helper/agent-category-select-menu/index.d.ts +8 -0
- package/dist/src/components/agent-helper/agent-category-select-menu/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/agent-entry-card/index.d.ts +9 -0
- package/dist/src/components/agent-helper/agent-entry-card/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/agent-helper-card/index.d.ts +16 -0
- package/dist/src/components/agent-helper/agent-helper-card/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/agent-helper-card-list/index.d.ts +16 -0
- package/dist/src/components/agent-helper/agent-helper-card-list/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/agent-helper-main-layout/index.d.ts +30 -0
- package/dist/src/components/agent-helper/agent-helper-main-layout/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/agent-sort-select/index.d.ts +8 -0
- package/dist/src/components/agent-helper/agent-sort-select/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/agent-tag/index.d.ts +7 -0
- package/dist/src/components/agent-helper/agent-tag/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/app-select/index.d.ts +45 -0
- package/dist/src/components/agent-helper/app-select/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/condition-group/index.d.ts +15 -0
- package/dist/src/components/agent-helper/condition-group/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/condition-input/index.d.ts +33 -0
- package/dist/src/components/agent-helper/condition-input/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/condition-item/index.d.ts +16 -0
- package/dist/src/components/agent-helper/condition-item/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/condition-quantifier-select/index.d.ts +10 -0
- package/dist/src/components/agent-helper/condition-quantifier-select/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/condition-trigger-description/index.d.ts +12 -0
- package/dist/src/components/agent-helper/condition-trigger-description/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/date-picker/calendar-panel.d.ts +19 -0
- package/dist/src/components/agent-helper/date-picker/calendar-panel.d.ts.map +1 -0
- package/dist/src/components/agent-helper/date-picker/date-input.d.ts +4 -0
- package/dist/src/components/agent-helper/date-picker/date-input.d.ts.map +1 -0
- package/dist/src/components/agent-helper/date-picker/date-picker.d.ts +4 -0
- package/dist/src/components/agent-helper/date-picker/date-picker.d.ts.map +1 -0
- package/dist/src/components/agent-helper/date-picker/footer-panel.d.ts +10 -0
- package/dist/src/components/agent-helper/date-picker/footer-panel.d.ts.map +1 -0
- package/dist/src/components/agent-helper/date-picker/index.d.ts +4 -0
- package/dist/src/components/agent-helper/date-picker/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/date-picker/month-panel.d.ts +16 -0
- package/dist/src/components/agent-helper/date-picker/month-panel.d.ts.map +1 -0
- package/dist/src/components/agent-helper/date-picker/time-panel.d.ts +20 -0
- package/dist/src/components/agent-helper/date-picker/time-panel.d.ts.map +1 -0
- package/dist/src/components/agent-helper/date-picker/types.d.ts +28 -0
- package/dist/src/components/agent-helper/date-picker/types.d.ts.map +1 -0
- package/dist/src/components/agent-helper/date-picker/utils.d.ts +14 -0
- package/dist/src/components/agent-helper/date-picker/utils.d.ts.map +1 -0
- package/dist/src/components/agent-helper/date-picker/year-panel.d.ts +14 -0
- package/dist/src/components/agent-helper/date-picker/year-panel.d.ts.map +1 -0
- package/dist/src/components/agent-helper/exec-log-filter/index.d.ts +24 -0
- package/dist/src/components/agent-helper/exec-log-filter/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/field-edit-preference-select/index.d.ts +11 -0
- package/dist/src/components/agent-helper/field-edit-preference-select/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/field-select/index.d.ts +35 -0
- package/dist/src/components/agent-helper/field-select/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/field-value-input/china-address-data.d.ts +2 -0
- package/dist/src/components/agent-helper/field-value-input/china-address-data.d.ts.map +1 -0
- package/dist/src/components/agent-helper/field-value-input/dept-select.d.ts +8 -0
- package/dist/src/components/agent-helper/field-value-input/dept-select.d.ts.map +1 -0
- package/dist/src/components/agent-helper/field-value-input/display.d.ts +19 -0
- package/dist/src/components/agent-helper/field-value-input/display.d.ts.map +1 -0
- package/dist/src/components/agent-helper/field-value-input/icons.d.ts +8 -0
- package/dist/src/components/agent-helper/field-value-input/icons.d.ts.map +1 -0
- package/dist/src/components/agent-helper/field-value-input/index.d.ts +24 -0
- package/dist/src/components/agent-helper/field-value-input/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/field-value-input/inputs.d.ts +10 -0
- package/dist/src/components/agent-helper/field-value-input/inputs.d.ts.map +1 -0
- package/dist/src/components/agent-helper/field-value-input/picker-inputs.d.ts +21 -0
- package/dist/src/components/agent-helper/field-value-input/picker-inputs.d.ts.map +1 -0
- package/dist/src/components/agent-helper/flow-node-action-trigger-select/index.d.ts +12 -0
- package/dist/src/components/agent-helper/flow-node-action-trigger-select/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/form-action-trigger-select/index.d.ts +12 -0
- package/dist/src/components/agent-helper/form-action-trigger-select/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/form-divider/index.d.ts +7 -0
- package/dist/src/components/agent-helper/form-divider/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/form-select/index.d.ts +40 -0
- package/dist/src/components/agent-helper/form-select/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/monthdays-select/index.d.ts +15 -0
- package/dist/src/components/agent-helper/monthdays-select/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/offset-preference-select/index.d.ts +10 -0
- package/dist/src/components/agent-helper/offset-preference-select/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/offset-type-select/index.d.ts +17 -0
- package/dist/src/components/agent-helper/offset-type-select/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/offset-unit-select/index.d.ts +15 -0
- package/dist/src/components/agent-helper/offset-unit-select/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/placeholder-card/index.d.ts +9 -0
- package/dist/src/components/agent-helper/placeholder-card/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/prompt-input/index.d.ts +12 -0
- package/dist/src/components/agent-helper/prompt-input/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/relational-operator-select/index.d.ts +19 -0
- package/dist/src/components/agent-helper/relational-operator-select/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/repeat-by-type-select/index.d.ts +15 -0
- package/dist/src/components/agent-helper/repeat-by-type-select/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/repeat-preference-select/index.d.ts +9 -0
- package/dist/src/components/agent-helper/repeat-preference-select/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/repeat-preference-type-select/index.d.ts +15 -0
- package/dist/src/components/agent-helper/repeat-preference-type-select/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/search-input/index.d.ts +8 -0
- package/dist/src/components/agent-helper/search-input/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/table/index.d.ts +12 -0
- package/dist/src/components/agent-helper/table/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/team-wide-form-select/data-adapter.d.ts +9 -0
- package/dist/src/components/agent-helper/team-wide-form-select/data-adapter.d.ts.map +1 -0
- package/dist/src/components/agent-helper/team-wide-form-select/index.d.ts +45 -0
- package/dist/src/components/agent-helper/team-wide-form-select/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/team-wide-form-select/tree-panel.d.ts +17 -0
- package/dist/src/components/agent-helper/team-wide-form-select/tree-panel.d.ts.map +1 -0
- package/dist/src/components/agent-helper/team-wide-form-select/types.d.ts +27 -0
- package/dist/src/components/agent-helper/team-wide-form-select/types.d.ts.map +1 -0
- package/dist/src/components/agent-helper/team-wide-form-select/use-form-tree.d.ts +22 -0
- package/dist/src/components/agent-helper/team-wide-form-select/use-form-tree.d.ts.map +1 -0
- package/dist/src/components/agent-helper/trigger-select/index.d.ts +18 -0
- package/dist/src/components/agent-helper/trigger-select/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/trigger-time-preference-select/index.d.ts +14 -0
- package/dist/src/components/agent-helper/trigger-time-preference-select/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/trigger-time-source-type-select/index.d.ts +15 -0
- package/dist/src/components/agent-helper/trigger-time-source-type-select/index.d.ts.map +1 -0
- package/dist/src/components/agent-helper/weekdays-select/index.d.ts +15 -0
- package/dist/src/components/agent-helper/weekdays-select/index.d.ts.map +1 -0
- package/dist/src/components/agent-scroll-selector.d.ts +12 -0
- package/dist/src/components/agent-scroll-selector.d.ts.map +1 -0
- package/dist/src/components/agent-select.d.ts +19 -0
- package/dist/src/components/agent-select.d.ts.map +1 -0
- package/dist/src/components/attachment-part-group.d.ts +16 -0
- package/dist/src/components/attachment-part-group.d.ts.map +1 -0
- package/dist/src/components/attachment-part.d.ts +35 -0
- package/dist/src/components/attachment-part.d.ts.map +1 -0
- package/dist/src/components/attachments-previewer.d.ts +18 -0
- package/dist/src/components/attachments-previewer.d.ts.map +1 -0
- package/dist/src/components/base-button.d.ts +8 -0
- package/dist/src/components/base-button.d.ts.map +1 -0
- package/dist/src/components/border-animation.d.ts +23 -0
- package/dist/src/components/border-animation.d.ts.map +1 -0
- package/dist/src/components/border-color-animation.d.ts +11 -0
- package/dist/src/components/border-color-animation.d.ts.map +1 -0
- package/dist/src/components/bot-avatar-name.d.ts +6 -0
- package/dist/src/components/bot-avatar-name.d.ts.map +1 -0
- package/dist/src/components/bot-icon.d.ts +5 -0
- package/dist/src/components/bot-icon.d.ts.map +1 -0
- package/dist/src/components/bs-entry-select/app-group-folder.d.ts +6 -0
- package/dist/src/components/bs-entry-select/app-group-folder.d.ts.map +1 -0
- package/dist/src/components/bs-entry-select/bs-entry-select.d.ts +4 -0
- package/dist/src/components/bs-entry-select/bs-entry-select.d.ts.map +1 -0
- package/dist/src/components/bs-entry-select/build-tree.d.ts +14 -0
- package/dist/src/components/bs-entry-select/build-tree.d.ts.map +1 -0
- package/dist/src/components/bs-entry-select/entry-item.d.ts +8 -0
- package/dist/src/components/bs-entry-select/entry-item.d.ts.map +1 -0
- package/dist/src/components/bs-entry-select/entry-popover.d.ts +18 -0
- package/dist/src/components/bs-entry-select/entry-popover.d.ts.map +1 -0
- package/dist/src/components/bs-entry-select/index.d.ts +4 -0
- package/dist/src/components/bs-entry-select/index.d.ts.map +1 -0
- package/dist/src/components/bs-entry-select/other-app-section.d.ts +11 -0
- package/dist/src/components/bs-entry-select/other-app-section.d.ts.map +1 -0
- package/dist/src/components/bs-entry-select/scroll-slider.d.ts +17 -0
- package/dist/src/components/bs-entry-select/scroll-slider.d.ts.map +1 -0
- package/dist/src/components/bs-entry-select/search-input.d.ts +4 -0
- package/dist/src/components/bs-entry-select/search-input.d.ts.map +1 -0
- package/dist/src/components/bs-entry-select/tree-item-node.d.ts +9 -0
- package/dist/src/components/bs-entry-select/tree-item-node.d.ts.map +1 -0
- package/dist/src/components/bs-entry-select/types.d.ts +52 -0
- package/dist/src/components/bs-entry-select/types.d.ts.map +1 -0
- package/dist/src/components/bs-icons.d.ts +112 -0
- package/dist/src/components/bs-icons.d.ts.map +1 -0
- package/dist/src/components/card-field.d.ts +11 -0
- package/dist/src/components/card-field.d.ts.map +1 -0
- package/dist/src/components/card.d.ts +19 -0
- package/dist/src/components/card.d.ts.map +1 -0
- package/dist/src/components/chat-area-header.d.ts +13 -0
- package/dist/src/components/chat-area-header.d.ts.map +1 -0
- package/dist/src/components/check-card.d.ts +7 -0
- package/dist/src/components/check-card.d.ts.map +1 -0
- package/dist/src/components/circle-checker.d.ts +11 -0
- package/dist/src/components/circle-checker.d.ts.map +1 -0
- package/dist/src/components/collapsible-txt-msg.d.ts +15 -0
- package/dist/src/components/collapsible-txt-msg.d.ts.map +1 -0
- package/dist/src/components/collapsible.d.ts +6 -0
- package/dist/src/components/collapsible.d.ts.map +1 -0
- package/dist/src/components/confirm-dialog.d.ts +26 -0
- package/dist/src/components/confirm-dialog.d.ts.map +1 -0
- package/dist/src/components/date-range-picker.d.ts +8 -0
- package/dist/src/components/date-range-picker.d.ts.map +1 -0
- package/dist/src/components/fake-bot-msg.d.ts +10 -0
- package/dist/src/components/fake-bot-msg.d.ts.map +1 -0
- package/dist/src/components/field-checker-list-msg.d.ts +20 -0
- package/dist/src/components/field-checker-list-msg.d.ts.map +1 -0
- package/dist/src/components/field-checker.d.ts +19 -0
- package/dist/src/components/field-checker.d.ts.map +1 -0
- package/dist/src/components/field-icon.d.ts +5 -0
- package/dist/src/components/field-icon.d.ts.map +1 -0
- package/dist/src/components/field-value-checker.d.ts +14 -0
- package/dist/src/components/field-value-checker.d.ts.map +1 -0
- package/dist/src/components/fields-design-info-table.d.ts +7 -0
- package/dist/src/components/fields-design-info-table.d.ts.map +1 -0
- package/dist/src/components/fields-generating-indicator.d.ts +6 -0
- package/dist/src/components/fields-generating-indicator.d.ts.map +1 -0
- package/dist/src/components/fields-portal.d.ts +8 -0
- package/dist/src/components/fields-portal.d.ts.map +1 -0
- package/dist/src/components/fields-previewer.d.ts +19 -0
- package/dist/src/components/fields-previewer.d.ts.map +1 -0
- package/dist/src/components/font-icon.d.ts +12 -0
- package/dist/src/components/font-icon.d.ts.map +1 -0
- package/dist/src/components/form-info-editor.d.ts +35 -0
- package/dist/src/components/form-info-editor.d.ts.map +1 -0
- package/dist/src/components/formula-tag.d.ts +8 -0
- package/dist/src/components/formula-tag.d.ts.map +1 -0
- package/dist/src/components/generate-animation.d.ts +5 -0
- package/dist/src/components/generate-animation.d.ts.map +1 -0
- package/dist/src/components/icon-btn.d.ts +9 -0
- package/dist/src/components/icon-btn.d.ts.map +1 -0
- package/dist/src/components/icon-card.d.ts +13 -0
- package/dist/src/components/icon-card.d.ts.map +1 -0
- package/dist/src/components/icons/calendar-icon.d.ts +4 -0
- package/dist/src/components/icons/calendar-icon.d.ts.map +1 -0
- package/dist/src/components/icons/clear-all-icon.d.ts +4 -0
- package/dist/src/components/icons/clear-all-icon.d.ts.map +1 -0
- package/dist/src/components/icons/empty-agent-icon.d.ts +2 -0
- package/dist/src/components/icons/empty-agent-icon.d.ts.map +1 -0
- package/dist/src/components/icons/empty-table-icon.d.ts +2 -0
- package/dist/src/components/icons/empty-table-icon.d.ts.map +1 -0
- package/dist/src/components/icons/grids-icon.d.ts +2 -0
- package/dist/src/components/icons/grids-icon.d.ts.map +1 -0
- package/dist/src/components/img-part.d.ts +10 -0
- package/dist/src/components/img-part.d.ts.map +1 -0
- package/dist/src/components/legacy-slot.d.ts +11 -0
- package/dist/src/components/legacy-slot.d.ts.map +1 -0
- package/dist/src/components/line-checker.d.ts +21 -0
- package/dist/src/components/line-checker.d.ts.map +1 -0
- package/dist/src/components/linear-gradient-border-btn.d.ts +10 -0
- package/dist/src/components/linear-gradient-border-btn.d.ts.map +1 -0
- package/dist/src/components/linear-gradient-color-bg-animation.d.ts +8 -0
- package/dist/src/components/linear-gradient-color-bg-animation.d.ts.map +1 -0
- package/dist/src/components/memoized-markdown.d.ts +13 -0
- package/dist/src/components/memoized-markdown.d.ts.map +1 -0
- package/dist/src/components/message-content.d.ts +8 -0
- package/dist/src/components/message-content.d.ts.map +1 -0
- package/dist/src/components/number-part.d.ts +9 -0
- package/dist/src/components/number-part.d.ts.map +1 -0
- package/dist/src/components/office-container.d.ts +22 -0
- package/dist/src/components/office-container.d.ts.map +1 -0
- package/dist/src/components/option-item.d.ts +9 -0
- package/dist/src/components/option-item.d.ts.map +1 -0
- package/dist/src/components/output-config-editor.d.ts +10 -0
- package/dist/src/components/output-config-editor.d.ts.map +1 -0
- package/dist/src/components/previewer-header.d.ts +21 -0
- package/dist/src/components/previewer-header.d.ts.map +1 -0
- package/dist/src/components/primary-confirm-btn.d.ts +12 -0
- package/dist/src/components/primary-confirm-btn.d.ts.map +1 -0
- package/dist/src/components/primary-entry-btn.d.ts +9 -0
- package/dist/src/components/primary-entry-btn.d.ts.map +1 -0
- package/dist/src/components/radio-card.d.ts +7 -0
- package/dist/src/components/radio-card.d.ts.map +1 -0
- package/dist/src/components/scroll-to-bottom-btn.d.ts +7 -0
- package/dist/src/components/scroll-to-bottom-btn.d.ts.map +1 -0
- package/dist/src/components/shadow-content.d.ts +9 -0
- package/dist/src/components/shadow-content.d.ts.map +1 -0
- package/dist/src/components/shadow-portal.d.ts +9 -0
- package/dist/src/components/shadow-portal.d.ts.map +1 -0
- package/dist/src/components/split-line.d.ts +5 -0
- package/dist/src/components/split-line.d.ts.map +1 -0
- package/dist/src/components/square-checker.d.ts +15 -0
- package/dist/src/components/square-checker.d.ts.map +1 -0
- package/dist/src/components/subform-fields-value-checker.d.ts +20 -0
- package/dist/src/components/subform-fields-value-checker.d.ts.map +1 -0
- package/dist/src/components/tab-radio-group.d.ts +20 -0
- package/dist/src/components/tab-radio-group.d.ts.map +1 -0
- package/dist/src/components/tooltip.d.ts +6 -0
- package/dist/src/components/tooltip.d.ts.map +1 -0
- package/dist/src/components/ui/button.d.ts +12 -0
- package/dist/src/components/ui/button.d.ts.map +1 -0
- package/dist/src/components/ui/calendar.d.ts +5 -0
- package/dist/src/components/ui/calendar.d.ts.map +1 -0
- package/dist/src/components/ui/dialog.d.ts +24 -0
- package/dist/src/components/ui/dialog.d.ts.map +1 -0
- package/dist/src/components/ui/drawer.d.ts +24 -0
- package/dist/src/components/ui/drawer.d.ts.map +1 -0
- package/dist/src/components/ui/enhanced-drawer.d.ts +42 -0
- package/dist/src/components/ui/enhanced-drawer.d.ts.map +1 -0
- package/dist/src/components/ui/form.d.ts +27 -0
- package/dist/src/components/ui/form.d.ts.map +1 -0
- package/dist/src/components/ui/icons.d.ts +176 -0
- package/dist/src/components/ui/icons.d.ts.map +1 -0
- package/dist/src/components/ui/input.d.ts +4 -0
- package/dist/src/components/ui/input.d.ts.map +1 -0
- package/dist/src/components/ui/label.d.ts +9 -0
- package/dist/src/components/ui/label.d.ts.map +1 -0
- package/dist/src/components/ui/popover.d.ts +10 -0
- package/dist/src/components/ui/popover.d.ts.map +1 -0
- package/dist/src/components/ui/select.d.ts +16 -0
- package/dist/src/components/ui/select.d.ts.map +1 -0
- package/dist/src/components/ui/spinner.d.ts +3 -0
- package/dist/src/components/ui/spinner.d.ts.map +1 -0
- package/dist/src/components/ui/switch.d.ts +7 -0
- package/dist/src/components/ui/switch.d.ts.map +1 -0
- package/dist/src/components/ui/tabs.d.ts +8 -0
- package/dist/src/components/ui/tabs.d.ts.map +1 -0
- package/dist/src/components/ui/textarea.d.ts +4 -0
- package/dist/src/components/ui/textarea.d.ts.map +1 -0
- package/dist/src/components/ui/tooltip.d.ts +13 -0
- package/dist/src/components/ui/tooltip.d.ts.map +1 -0
- package/dist/src/components/user-txt-msg-bubble.d.ts +13 -0
- package/dist/src/components/user-txt-msg-bubble.d.ts.map +1 -0
- package/dist/src/components/warning-msg.d.ts +6 -0
- package/dist/src/components/warning-msg.d.ts.map +1 -0
- package/dist/src/const/shadow.d.ts +3 -0
- package/dist/src/const/shadow.d.ts.map +1 -0
- package/dist/src/const/ui.d.ts +11 -0
- package/dist/src/const/ui.d.ts.map +1 -0
- package/dist/src/hooks/use-column-appear.d.ts +22 -0
- package/dist/src/hooks/use-column-appear.d.ts.map +1 -0
- package/dist/src/hooks/use-portal-container.d.ts +6 -0
- package/dist/src/hooks/use-portal-container.d.ts.map +1 -0
- package/dist/src/hooks/use-resizable-width.d.ts +28 -0
- package/dist/src/hooks/use-resizable-width.d.ts.map +1 -0
- package/dist/src/hooks/use-select-popover-position.d.ts +16 -0
- package/dist/src/hooks/use-select-popover-position.d.ts.map +1 -0
- package/dist/src/hooks/use-shadow-boundary.d.ts +9 -0
- package/dist/src/hooks/use-shadow-boundary.d.ts.map +1 -0
- package/dist/src/hooks/use-shadow.d.ts +26 -0
- package/dist/src/hooks/use-shadow.d.ts.map +1 -0
- package/dist/src/index.d.ts +165 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/lib/utils.d.ts +7 -0
- package/dist/src/lib/utils.d.ts.map +1 -0
- package/dist/src/stories/AbsFullscreenGradientBg.stories.d.ts +17 -0
- package/dist/src/stories/AbsFullscreenGradientBg.stories.d.ts.map +1 -0
- package/dist/src/stories/AgentCategorySelectMenu.stories.d.ts +19 -0
- package/dist/src/stories/AgentCategorySelectMenu.stories.d.ts.map +1 -0
- package/dist/src/stories/AgentEntryCard.stories.d.ts +25 -0
- package/dist/src/stories/AgentEntryCard.stories.d.ts.map +1 -0
- package/dist/src/stories/AgentHelperCard.stories.d.ts +31 -0
- package/dist/src/stories/AgentHelperCard.stories.d.ts.map +1 -0
- package/dist/src/stories/AgentHelperCardList.stories.d.ts +21 -0
- package/dist/src/stories/AgentHelperCardList.stories.d.ts.map +1 -0
- package/dist/src/stories/AgentHelperMainLayout.stories.d.ts +9 -0
- package/dist/src/stories/AgentHelperMainLayout.stories.d.ts.map +1 -0
- package/dist/src/stories/AgentScrollSelector.stories.d.ts +11 -0
- package/dist/src/stories/AgentScrollSelector.stories.d.ts.map +1 -0
- package/dist/src/stories/AgentSelect.stories.d.ts +14 -0
- package/dist/src/stories/AgentSelect.stories.d.ts.map +1 -0
- package/dist/src/stories/AgentTag.stories.d.ts +19 -0
- package/dist/src/stories/AgentTag.stories.d.ts.map +1 -0
- package/dist/src/stories/AppSelect.stories.d.ts +22 -0
- package/dist/src/stories/AppSelect.stories.d.ts.map +1 -0
- package/dist/src/stories/AttachmentPart.stories.d.ts +23 -0
- package/dist/src/stories/AttachmentPart.stories.d.ts.map +1 -0
- package/dist/src/stories/AttachmentPartGroup.stories.d.ts +21 -0
- package/dist/src/stories/AttachmentPartGroup.stories.d.ts.map +1 -0
- package/dist/src/stories/AttachmentsPreviewer.stories.d.ts +20 -0
- package/dist/src/stories/AttachmentsPreviewer.stories.d.ts.map +1 -0
- package/dist/src/stories/BaseButton.stories.d.ts +18 -0
- package/dist/src/stories/BaseButton.stories.d.ts.map +1 -0
- package/dist/src/stories/BorderAnimation.stories.d.ts +21 -0
- package/dist/src/stories/BorderAnimation.stories.d.ts.map +1 -0
- package/dist/src/stories/BorderColorAnimation.stories.d.ts +26 -0
- package/dist/src/stories/BorderColorAnimation.stories.d.ts.map +1 -0
- package/dist/src/stories/BotAvatarAndName.stories.d.ts +18 -0
- package/dist/src/stories/BotAvatarAndName.stories.d.ts.map +1 -0
- package/dist/src/stories/BotIcon.stories.d.ts +17 -0
- package/dist/src/stories/BotIcon.stories.d.ts.map +1 -0
- package/dist/src/stories/BsConditionInput.stories.d.ts +13 -0
- package/dist/src/stories/BsConditionInput.stories.d.ts.map +1 -0
- package/dist/src/stories/BsEntrySelect.stories.d.ts +20 -0
- package/dist/src/stories/BsEntrySelect.stories.d.ts.map +1 -0
- package/dist/src/stories/BsTooltip.stories.d.ts +7 -0
- package/dist/src/stories/BsTooltip.stories.d.ts.map +1 -0
- package/dist/src/stories/Card.stories.d.ts +14 -0
- package/dist/src/stories/Card.stories.d.ts.map +1 -0
- package/dist/src/stories/CardField.stories.d.ts +13 -0
- package/dist/src/stories/CardField.stories.d.ts.map +1 -0
- package/dist/src/stories/ChatAreaHeader.stories.d.ts +14 -0
- package/dist/src/stories/ChatAreaHeader.stories.d.ts.map +1 -0
- package/dist/src/stories/CheckCard.stories.d.ts +20 -0
- package/dist/src/stories/CheckCard.stories.d.ts.map +1 -0
- package/dist/src/stories/CircleChecker.stories.d.ts +21 -0
- package/dist/src/stories/CircleChecker.stories.d.ts.map +1 -0
- package/dist/src/stories/CollapsibleTextMsg.stories.d.ts +16 -0
- package/dist/src/stories/CollapsibleTextMsg.stories.d.ts.map +1 -0
- package/dist/src/stories/ConditionGroup.stories.d.ts +11 -0
- package/dist/src/stories/ConditionGroup.stories.d.ts.map +1 -0
- package/dist/src/stories/ConditionInput.stories.d.ts +15 -0
- package/dist/src/stories/ConditionInput.stories.d.ts.map +1 -0
- package/dist/src/stories/ConditionItem.stories.d.ts +12 -0
- package/dist/src/stories/ConditionItem.stories.d.ts.map +1 -0
- package/dist/src/stories/ConditonQuantifierSelect.stories.d.ts +20 -0
- package/dist/src/stories/ConditonQuantifierSelect.stories.d.ts.map +1 -0
- package/dist/src/stories/ConditonTriggerDescription.stories.d.ts +20 -0
- package/dist/src/stories/ConditonTriggerDescription.stories.d.ts.map +1 -0
- package/dist/src/stories/ConfirmDialog.stories.d.ts +61 -0
- package/dist/src/stories/ConfirmDialog.stories.d.ts.map +1 -0
- package/dist/src/stories/DataTable.stories.d.ts +47 -0
- package/dist/src/stories/DataTable.stories.d.ts.map +1 -0
- package/dist/src/stories/DatePicker.stories.d.ts +28 -0
- package/dist/src/stories/DatePicker.stories.d.ts.map +1 -0
- package/dist/src/stories/ExecLogFilter.stories.d.ts +13 -0
- package/dist/src/stories/ExecLogFilter.stories.d.ts.map +1 -0
- package/dist/src/stories/FakeBotMsg.stories.d.ts +22 -0
- package/dist/src/stories/FakeBotMsg.stories.d.ts.map +1 -0
- package/dist/src/stories/FieldEditPreferenceSelect.stories.d.ts +15 -0
- package/dist/src/stories/FieldEditPreferenceSelect.stories.d.ts.map +1 -0
- package/dist/src/stories/FieldSelect.stories.d.ts +14 -0
- package/dist/src/stories/FieldSelect.stories.d.ts.map +1 -0
- package/dist/src/stories/FieldValueInput.stories.d.ts +47 -0
- package/dist/src/stories/FieldValueInput.stories.d.ts.map +1 -0
- package/dist/src/stories/FlowNodeActionTriggerSelect.stories.d.ts +18 -0
- package/dist/src/stories/FlowNodeActionTriggerSelect.stories.d.ts.map +1 -0
- package/dist/src/stories/Form.stories.d.ts +18 -0
- package/dist/src/stories/Form.stories.d.ts.map +1 -0
- package/dist/src/stories/FormActionTriggerSelect.stories.d.ts +18 -0
- package/dist/src/stories/FormActionTriggerSelect.stories.d.ts.map +1 -0
- package/dist/src/stories/FormDivider.stories.d.ts +16 -0
- package/dist/src/stories/FormDivider.stories.d.ts.map +1 -0
- package/dist/src/stories/FormInfoEditor.stories.d.ts +15 -0
- package/dist/src/stories/FormInfoEditor.stories.d.ts.map +1 -0
- package/dist/src/stories/FormSelect.stories.d.ts +22 -0
- package/dist/src/stories/FormSelect.stories.d.ts.map +1 -0
- package/dist/src/stories/FormulaTag.stories.d.ts +37 -0
- package/dist/src/stories/FormulaTag.stories.d.ts.map +1 -0
- package/dist/src/stories/GenerateAnimation.stories.d.ts +17 -0
- package/dist/src/stories/GenerateAnimation.stories.d.ts.map +1 -0
- package/dist/src/stories/IconBtn.stories.d.ts +15 -0
- package/dist/src/stories/IconBtn.stories.d.ts.map +1 -0
- package/dist/src/stories/IconCard.stories.d.ts +15 -0
- package/dist/src/stories/IconCard.stories.d.ts.map +1 -0
- package/dist/src/stories/IconLib.d.ts +12 -0
- package/dist/src/stories/IconLib.d.ts.map +1 -0
- package/dist/src/stories/IconfontPicker.stories.d.ts +13 -0
- package/dist/src/stories/IconfontPicker.stories.d.ts.map +1 -0
- package/dist/src/stories/Icons.stories.d.ts +24 -0
- package/dist/src/stories/Icons.stories.d.ts.map +1 -0
- package/dist/src/stories/ImgMsgPart.stories.d.ts +20 -0
- package/dist/src/stories/ImgMsgPart.stories.d.ts.map +1 -0
- package/dist/src/stories/Input.stories.d.ts +23 -0
- package/dist/src/stories/Input.stories.d.ts.map +1 -0
- package/dist/src/stories/Label.stories.d.ts +18 -0
- package/dist/src/stories/Label.stories.d.ts.map +1 -0
- package/dist/src/stories/LegacySlot.stories.d.ts +16 -0
- package/dist/src/stories/LegacySlot.stories.d.ts.map +1 -0
- package/dist/src/stories/LineChecker.stories.d.ts +23 -0
- package/dist/src/stories/LineChecker.stories.d.ts.map +1 -0
- package/dist/src/stories/LinearGradientBorderBtn.stories.d.ts +22 -0
- package/dist/src/stories/LinearGradientBorderBtn.stories.d.ts.map +1 -0
- package/dist/src/stories/LinearGradientColorBgAnimation.stories.d.ts +23 -0
- package/dist/src/stories/LinearGradientColorBgAnimation.stories.d.ts.map +1 -0
- package/dist/src/stories/MemoizedMarkdown.stories.d.ts +38 -0
- package/dist/src/stories/MemoizedMarkdown.stories.d.ts.map +1 -0
- package/dist/src/stories/MessageContent.stories.d.ts +16 -0
- package/dist/src/stories/MessageContent.stories.d.ts.map +1 -0
- package/dist/src/stories/MonthdaysSelect.stories.d.ts +14 -0
- package/dist/src/stories/MonthdaysSelect.stories.d.ts.map +1 -0
- package/dist/src/stories/NumbersMsgPart.stories.d.ts +19 -0
- package/dist/src/stories/NumbersMsgPart.stories.d.ts.map +1 -0
- package/dist/src/stories/OfficeContainer.stories.d.ts +14 -0
- package/dist/src/stories/OfficeContainer.stories.d.ts.map +1 -0
- package/dist/src/stories/OffsetPreferenceSelect.stories.d.ts +11 -0
- package/dist/src/stories/OffsetPreferenceSelect.stories.d.ts.map +1 -0
- package/dist/src/stories/OffsetTypeSelect.stories.d.ts +12 -0
- package/dist/src/stories/OffsetTypeSelect.stories.d.ts.map +1 -0
- package/dist/src/stories/OffsetUnitSelect.stories.d.ts +11 -0
- package/dist/src/stories/OffsetUnitSelect.stories.d.ts.map +1 -0
- package/dist/src/stories/OptionItem.stories.d.ts +20 -0
- package/dist/src/stories/OptionItem.stories.d.ts.map +1 -0
- package/dist/src/stories/OutputConfigEditor.stories.d.ts +9 -0
- package/dist/src/stories/OutputConfigEditor.stories.d.ts.map +1 -0
- package/dist/src/stories/PlaceholderCard.stories.d.ts +21 -0
- package/dist/src/stories/PlaceholderCard.stories.d.ts.map +1 -0
- package/dist/src/stories/PreviewerHeader.stories.d.ts +12 -0
- package/dist/src/stories/PreviewerHeader.stories.d.ts.map +1 -0
- package/dist/src/stories/PrimaryConfirmBtn.stories.d.ts +19 -0
- package/dist/src/stories/PrimaryConfirmBtn.stories.d.ts.map +1 -0
- package/dist/src/stories/PrimaryEntryBtn.stories.d.ts +26 -0
- package/dist/src/stories/PrimaryEntryBtn.stories.d.ts.map +1 -0
- package/dist/src/stories/PromptInput.stories.d.ts +14 -0
- package/dist/src/stories/PromptInput.stories.d.ts.map +1 -0
- package/dist/src/stories/RadioCard.stories.d.ts +19 -0
- package/dist/src/stories/RadioCard.stories.d.ts.map +1 -0
- package/dist/src/stories/RelationalOperatorSelect.stories.d.ts +24 -0
- package/dist/src/stories/RelationalOperatorSelect.stories.d.ts.map +1 -0
- package/dist/src/stories/RepeatByTypeSelect.stories.d.ts +11 -0
- package/dist/src/stories/RepeatByTypeSelect.stories.d.ts.map +1 -0
- package/dist/src/stories/RepeatPreferenceSelect.stories.d.ts +13 -0
- package/dist/src/stories/RepeatPreferenceSelect.stories.d.ts.map +1 -0
- package/dist/src/stories/RepeatPreferenceTypeSelect.stories.d.ts +11 -0
- package/dist/src/stories/RepeatPreferenceTypeSelect.stories.d.ts.map +1 -0
- package/dist/src/stories/ScrollToBottom.stories.d.ts +15 -0
- package/dist/src/stories/ScrollToBottom.stories.d.ts.map +1 -0
- package/dist/src/stories/SearchInput.stories.d.ts +21 -0
- package/dist/src/stories/SearchInput.stories.d.ts.map +1 -0
- package/dist/src/stories/Select.stories.d.ts +19 -0
- package/dist/src/stories/Select.stories.d.ts.map +1 -0
- package/dist/src/stories/SplitLine.stories.d.ts +9 -0
- package/dist/src/stories/SplitLine.stories.d.ts.map +1 -0
- package/dist/src/stories/SquareChecker.stories.d.ts +26 -0
- package/dist/src/stories/SquareChecker.stories.d.ts.map +1 -0
- package/dist/src/stories/TabRadioGroup.stories.d.ts +18 -0
- package/dist/src/stories/TabRadioGroup.stories.d.ts.map +1 -0
- package/dist/src/stories/TeamWideFormSelect.stories.d.ts +13 -0
- package/dist/src/stories/TeamWideFormSelect.stories.d.ts.map +1 -0
- package/dist/src/stories/Textarea.stories.d.ts +19 -0
- package/dist/src/stories/Textarea.stories.d.ts.map +1 -0
- package/dist/src/stories/TriggerSelect.stories.d.ts +16 -0
- package/dist/src/stories/TriggerSelect.stories.d.ts.map +1 -0
- package/dist/src/stories/TriggerTimePreferenceSelect.stories.d.ts +10 -0
- package/dist/src/stories/TriggerTimePreferenceSelect.stories.d.ts.map +1 -0
- package/dist/src/stories/TriggerTimeSourceTypeSelect.stories.d.ts +12 -0
- package/dist/src/stories/TriggerTimeSourceTypeSelect.stories.d.ts.map +1 -0
- package/dist/src/stories/UserTextMsgBubble.stories.d.ts +18 -0
- package/dist/src/stories/UserTextMsgBubble.stories.d.ts.map +1 -0
- package/dist/src/stories/WarningMessage.stories.d.ts +16 -0
- package/dist/src/stories/WarningMessage.stories.d.ts.map +1 -0
- package/dist/src/stories/WeekdaysSelect.stories.d.ts +12 -0
- package/dist/src/stories/WeekdaysSelect.stories.d.ts.map +1 -0
- package/dist/src/stories/collapsible.stories.d.ts +8 -0
- package/dist/src/stories/collapsible.stories.d.ts.map +1 -0
- package/dist/src/stories/drawer.stories.d.ts +18 -0
- package/dist/src/stories/drawer.stories.d.ts.map +1 -0
- package/dist/src/stories/field-checker-list-msg.stories.d.ts +11 -0
- package/dist/src/stories/field-checker-list-msg.stories.d.ts.map +1 -0
- package/dist/src/stories/field-checker.stories.d.ts +13 -0
- package/dist/src/stories/field-checker.stories.d.ts.map +1 -0
- package/dist/src/stories/field-icon.stories.d.ts +15 -0
- package/dist/src/stories/field-icon.stories.d.ts.map +1 -0
- package/dist/src/stories/field-value-checker.stories.d.ts +13 -0
- package/dist/src/stories/field-value-checker.stories.d.ts.map +1 -0
- package/dist/src/stories/fields-design-info-table.stories.d.ts +14 -0
- package/dist/src/stories/fields-design-info-table.stories.d.ts.map +1 -0
- package/dist/src/stories/fields-generating.stories.d.ts +20 -0
- package/dist/src/stories/fields-generating.stories.d.ts.map +1 -0
- package/dist/src/stories/fields-previewer.stories.d.ts +19 -0
- package/dist/src/stories/fields-previewer.stories.d.ts.map +1 -0
- package/dist/src/stories/subform-fields-value-checker.stories.d.ts +9 -0
- package/dist/src/stories/subform-fields-value-checker.stories.d.ts.map +1 -0
- package/dist/src/types.d.ts +8 -0
- package/dist/src/types.d.ts.map +1 -0
- package/package.json +5 -5
- package/scripts/check-markdown-autolink.mjs +63 -0
- package/src/components/agent-helper/condition-input/index.tsx +20 -4
- package/src/components/agent-helper/field-select/index.tsx +22 -0
- package/src/components/agent-helper/field-value-input/index.tsx +3 -1
- package/src/components/agent-helper/field-value-input/picker-inputs.tsx +111 -0
- package/src/components/agent-helper/form-select/index.tsx +2 -0
- package/src/components/agent-helper/trigger-select/index.tsx +12 -9
- package/src/components/bs-entry-select/build-tree.ts +7 -0
- package/src/components/ui/drawer.tsx +2 -13
- package/src/stories/TriggerSelect.stories.tsx +1 -1
- package/style.css +30 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { WeekdaysSelect } from '../components/agent-helper/weekdays-select';
|
|
3
|
+
declare const meta: Meta<typeof WeekdaysSelect>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithInitialValue: Story;
|
|
8
|
+
export declare const AllSelected: Story;
|
|
9
|
+
export declare const Disabled: Story;
|
|
10
|
+
export declare const CustomPlaceholder: Story;
|
|
11
|
+
export declare const Interactive: Story;
|
|
12
|
+
//# sourceMappingURL=WeekdaysSelect.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WeekdaysSelect.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/WeekdaysSelect.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAmB,MAAM,4CAA4C,CAAC;AAG7F,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,cAAc,CAYrC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,gBAAgB,EAAE,KAI9B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAIzB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAI/B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAgBzB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Collapsible } from '../components/collapsible';
|
|
3
|
+
declare const meta: Meta<typeof Collapsible>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Collapsible>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const DefaultOpen: Story;
|
|
8
|
+
//# sourceMappingURL=collapsible.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collapsible.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/collapsible.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,WAAW,EAA0C,MAAM,2BAA2B,CAAC;AAEhG,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAOlC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAC;AAE1C,eAAO,MAAM,OAAO,EAAE,KAcrB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAczB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Drawer } from '../components/ui/drawer';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Drawer;
|
|
6
|
+
tags: string[];
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
export declare const WithScrollableContent: Story;
|
|
15
|
+
export declare const WithoutFooter: Story;
|
|
16
|
+
export declare const CustomHeight: Story;
|
|
17
|
+
export declare const FormContent: Story;
|
|
18
|
+
//# sourceMappingURL=drawer.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/drawer.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EACL,MAAM,EASP,MAAM,yBAAyB,CAAC;AAGjC,QAAA,MAAM,IAAI;;;;;;;CAOqB,CAAC;AAEhC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AA0BnC,eAAO,MAAM,OAAO,EAAE,KAkBrB,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,KAoBnC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAe3B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KA+B1B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAoDzB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { FieldCheckerListMsg } from '../components/field-checker-list-msg';
|
|
3
|
+
declare const meta: Meta<typeof FieldCheckerListMsg>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof FieldCheckerListMsg>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const StreamingState: Story;
|
|
8
|
+
export declare const ConfirmedState: Story;
|
|
9
|
+
export declare const FieldValueCheckerListMsgDefault: Story;
|
|
10
|
+
export declare const FieldValueCheckerListMsgStreaming: Story;
|
|
11
|
+
//# sourceMappingURL=field-checker-list-msg.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-checker-list-msg.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/field-checker-list-msg.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAA4B,MAAM,sCAAsC,CAAC;AAuBrG,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,mBAAmB,CAc1C,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAElD,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAK5B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAM5B,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,KAa7C,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,KAa/C,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { FieldChecker } from '../components/field-checker';
|
|
3
|
+
declare const meta: Meta<typeof FieldChecker>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof FieldChecker>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithOptions: Story;
|
|
8
|
+
export declare const WithValue: Story;
|
|
9
|
+
export declare const Subform: Story;
|
|
10
|
+
export declare const Disabled: Story;
|
|
11
|
+
export declare const Confirmed: Story;
|
|
12
|
+
export declare const Streaming: Story;
|
|
13
|
+
//# sourceMappingURL=field-checker.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-checker.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/field-checker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAc3D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAcnC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3C,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAgBzB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAwBrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { FieldIcon } from '../components/field-icon';
|
|
3
|
+
declare const meta: Meta<typeof FieldIcon>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof FieldIcon>;
|
|
6
|
+
export declare const Text: Story;
|
|
7
|
+
export declare const Number: Story;
|
|
8
|
+
export declare const Datetime: Story;
|
|
9
|
+
export declare const Subform: Story;
|
|
10
|
+
export declare const Formula: Story;
|
|
11
|
+
export declare const Location: Story;
|
|
12
|
+
export declare const Upload: Story;
|
|
13
|
+
export declare const Unknown: Story;
|
|
14
|
+
export declare const AllIcons: Story;
|
|
15
|
+
//# sourceMappingURL=field-icon.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-icon.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/field-icon.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAOhC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAExC,eAAO,MAAM,IAAI,EAAE,KAElB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAEpB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAEpB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAqBtB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { FieldValueChecker } from '../components/field-value-checker';
|
|
3
|
+
declare const meta: Meta<typeof FieldValueChecker>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof FieldValueChecker>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const NumberField: Story;
|
|
8
|
+
export declare const Address: Story;
|
|
9
|
+
export declare const LocationField: Story;
|
|
10
|
+
export declare const SubForm: Story;
|
|
11
|
+
export declare const ReadOnly: Story;
|
|
12
|
+
export declare const Streaming: Story;
|
|
13
|
+
//# sourceMappingURL=field-value-checker.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-value-checker.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/field-value-checker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AActE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,iBAAiB,CAcxC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEhD,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAMzB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAWrB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAW3B,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAuBrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { FieldsDesignInfoTable } from '../components/fields-design-info-table';
|
|
3
|
+
declare const meta: Meta<typeof FieldsDesignInfoTable>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
/** 基础表格 - 无子表单 */
|
|
7
|
+
export declare const Basic: Story;
|
|
8
|
+
/** 包含子表单 - 可展开/收起 */
|
|
9
|
+
export declare const WithSubForm: Story;
|
|
10
|
+
/** 空数据 */
|
|
11
|
+
export declare const Empty: Story;
|
|
12
|
+
/** 多个子表单 */
|
|
13
|
+
export declare const MultipleSubForms: Story;
|
|
14
|
+
//# sourceMappingURL=fields-design-info-table.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields-design-info-table.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/fields-design-info-table.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAE/E,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,qBAAqB,CAcC,CAAC;AAE/C,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAwFnC,kBAAkB;AAClB,eAAO,MAAM,KAAK,EAAE,KAInB,CAAC;AAEF,qBAAqB;AACrB,eAAO,MAAM,WAAW,EAAE,KAIzB,CAAC;AAEF,UAAU;AACV,eAAO,MAAM,KAAK,EAAE,KAInB,CAAC;AAEF,YAAY;AACZ,eAAO,MAAM,gBAAgB,EAAE,KAuE9B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ children, loading, }: {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
}) => import("react").JSX.Element;
|
|
8
|
+
tags: string[];
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: string;
|
|
11
|
+
};
|
|
12
|
+
args: {};
|
|
13
|
+
};
|
|
14
|
+
export default meta;
|
|
15
|
+
type Story = StoryObj<typeof meta>;
|
|
16
|
+
export declare const Base: Story;
|
|
17
|
+
export declare const CustomText: Story;
|
|
18
|
+
export declare const LongText: Story;
|
|
19
|
+
export declare const ShortText: Story;
|
|
20
|
+
//# sourceMappingURL=fields-generating.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields-generating.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/fields-generating.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAI5D,QAAA,MAAM,IAAI;;;gBAqC4c,CAAC;eAA4B,CAAC;;;;;;;CA3Blc,CAAC;AAEnD,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,IAAI,EAAE,KAElB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAIxB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAIvB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import('react').ForwardRefExoticComponent<import('../components/fields-previewer').FieldsPreviewerProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
5
|
+
tags: string[];
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
args: {};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Base: Story;
|
|
14
|
+
export declare const WithSideSpace: Story;
|
|
15
|
+
export declare const streaming: Story;
|
|
16
|
+
export declare const Empty: Story;
|
|
17
|
+
export declare const Fullscreen: Story;
|
|
18
|
+
export declare const DataVariant: Story;
|
|
19
|
+
//# sourceMappingURL=fields-previewer.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields-previewer.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/fields-previewer.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAI5D,QAAA,MAAM,IAAI;;;;;;;;CAU8B,CAAC;AAEzC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,IAAI,EAAE,KAMlB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAO3B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KASvB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAQnB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KASxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAQzB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { SubformFieldsValueChecker } from '../components/subform-fields-value-checker';
|
|
3
|
+
declare const meta: Meta<typeof SubformFieldsValueChecker>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof SubformFieldsValueChecker>;
|
|
6
|
+
export declare const SingleRow: Story;
|
|
7
|
+
export declare const MultipleRows: Story;
|
|
8
|
+
export declare const Readonly: Story;
|
|
9
|
+
//# sourceMappingURL=subform-fields-value-checker.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subform-fields-value-checker.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/subform-fields-value-checker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AAEvF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,yBAAyB,CAchD,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAExD,eAAO,MAAM,SAAS,EAAE,KAoBvB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KA8B1B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAoBtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,kBAAkB,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,IAAI,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baishuyun/ai-design",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.8",
|
|
4
4
|
"description": "AI 功能 UI 组件库 - 所有 AI 功能的 UI 表现唯一真相来源",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"tailwind-merge": "^3.4.0",
|
|
63
63
|
"vaul": "^1.1.2",
|
|
64
64
|
"zod": "^4.1.13",
|
|
65
|
-
"@baishuyun/ai-feat-utils": "2.0.
|
|
66
|
-
"@baishuyun/types": "3.0.
|
|
65
|
+
"@baishuyun/ai-feat-utils": "2.0.56",
|
|
66
|
+
"@baishuyun/types": "3.0.49"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"react": "^19.0.0",
|
|
@@ -89,14 +89,14 @@
|
|
|
89
89
|
"vite": "^5.1.4",
|
|
90
90
|
"vite-plugin-dts": "^4.5.4",
|
|
91
91
|
"@baishuyun/tailwind-config": "3.0.9",
|
|
92
|
-
"@baishuyun/types": "3.0.
|
|
92
|
+
"@baishuyun/types": "3.0.49",
|
|
93
93
|
"@baishuyun/typescript-config": "2.0.9"
|
|
94
94
|
},
|
|
95
95
|
"keywords": [],
|
|
96
96
|
"author": "",
|
|
97
97
|
"license": "ISC",
|
|
98
98
|
"scripts": {
|
|
99
|
-
"build": "vite build && tailwindcss -i src/style.css -o dist/tailwind.css && node scripts/post-build.cjs",
|
|
99
|
+
"build": "vite build && tailwindcss -i src/style.css -o dist/tailwind.css && node scripts/post-build.cjs && node ../../scripts/check-browser-regex.mjs dist && node scripts/check-markdown-autolink.mjs",
|
|
100
100
|
"dev": "vite build --watch",
|
|
101
101
|
"dev:build": "vite build --emptyOutDir false",
|
|
102
102
|
"storybook": "storybook dev -p 6007",
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* 依赖补丁回归测试:确认移除 lookbehind 后 GFM 自动链接行为未改变。
|
|
4
|
+
*
|
|
5
|
+
* 直接使用与 MemoizedMarkdown 相同的 remark-gfm + react-markdown 组合,
|
|
6
|
+
* 避免在 Node 中加载包含 codemirror 等浏览器依赖的完整 dist。
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import assert from 'node:assert/strict';
|
|
10
|
+
import { createElement } from 'react';
|
|
11
|
+
import { renderToStaticMarkup } from 'react-dom/server';
|
|
12
|
+
import ReactMarkdown from 'react-markdown';
|
|
13
|
+
import remarkGfm from 'remark-gfm';
|
|
14
|
+
|
|
15
|
+
/** @param {string} content */
|
|
16
|
+
function render(content) {
|
|
17
|
+
return renderToStaticMarkup(
|
|
18
|
+
createElement(ReactMarkdown, { remarkPlugins: [remarkGfm], children: content }),
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const cases = [
|
|
23
|
+
{
|
|
24
|
+
name: '普通邮箱',
|
|
25
|
+
content: 'a@b.com',
|
|
26
|
+
expected: ['href="mailto:a@b.com"'],
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'https 链接',
|
|
30
|
+
content: 'https://example.com/path',
|
|
31
|
+
expected: ['href="https://example.com/path"'],
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'www 链接',
|
|
35
|
+
content: 'www.example.com',
|
|
36
|
+
expected: ['href="http://www.example.com"'],
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: '标点相邻邮箱',
|
|
40
|
+
content: '(a@b.com)',
|
|
41
|
+
expected: ['href="mailto:a@b.com"'],
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: '连续多个邮箱',
|
|
45
|
+
content: 'a@b.com c@d.com',
|
|
46
|
+
expected: ['href="mailto:a@b.com"', 'href="mailto:c@d.com"'],
|
|
47
|
+
},
|
|
48
|
+
];
|
|
49
|
+
|
|
50
|
+
for (const testCase of cases) {
|
|
51
|
+
const html = render(testCase.content);
|
|
52
|
+
for (const expected of testCase.expected) {
|
|
53
|
+
assert.ok(html.includes(expected), `${testCase.name}:期望包含 ${expected},实际输出 ${html}`);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const notLinked = render('foo/a@b.com');
|
|
58
|
+
assert.ok(
|
|
59
|
+
!notLinked.includes('mailto:'),
|
|
60
|
+
`邮箱前一个字符为斜杠时不应自动链接,实际输出 ${notLinked}`,
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
console.log(`Markdown 自动链接烟雾测试通过:${cases.length + 1} 个用例。`);
|
|
@@ -30,11 +30,22 @@ function createEmptyItem(): IConditionItem {
|
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
// 条件编辑器排除的字段类型:无可比较的值(额外排除 linkdata —— 关联数据值形态复杂,
|
|
34
|
+
// 流程节点等虚拟字段走 extraFields 注入,不受此黑名单影响)
|
|
35
|
+
const FilterFieldTypeBlacklist: Array<FieldType> = [
|
|
36
|
+
'button',
|
|
37
|
+
'separator',
|
|
38
|
+
'subform',
|
|
39
|
+
'dataload',
|
|
40
|
+
'linkquery',
|
|
41
|
+
'linkdata',
|
|
42
|
+
];
|
|
34
43
|
|
|
35
44
|
export interface ConditionInputProps {
|
|
36
45
|
targetName: string;
|
|
37
46
|
fields: IField[];
|
|
47
|
+
/** 追加的虚拟字段(如流程节点),渲染在真实字段之后,不受 blacklist 过滤 */
|
|
48
|
+
extraFields?: IField[];
|
|
38
49
|
value?: ICondition;
|
|
39
50
|
defaultValue?: ICondition;
|
|
40
51
|
onChange?: (condition: ICondition) => void;
|
|
@@ -46,6 +57,7 @@ export interface ConditionInputProps {
|
|
|
46
57
|
export const ConditionInput = ({
|
|
47
58
|
targetName,
|
|
48
59
|
fields: allFields,
|
|
60
|
+
extraFields,
|
|
49
61
|
value: controlledValue,
|
|
50
62
|
defaultValue,
|
|
51
63
|
onChange,
|
|
@@ -61,9 +73,12 @@ export const ConditionInput = ({
|
|
|
61
73
|
}
|
|
62
74
|
).current;
|
|
63
75
|
|
|
64
|
-
const fields =
|
|
65
|
-
|
|
66
|
-
|
|
76
|
+
const fields = [
|
|
77
|
+
...allFields.filter(
|
|
78
|
+
(f) => !FilterFieldTypeBlacklist.includes(f.widget?.type as FieldType)
|
|
79
|
+
),
|
|
80
|
+
...(extraFields ?? []),
|
|
81
|
+
];
|
|
67
82
|
|
|
68
83
|
const [internalValue, setInternalValue] = useState<ICondition>(defaultCondition);
|
|
69
84
|
const isControlled = controlledValue !== undefined;
|
|
@@ -179,6 +194,7 @@ function defaultBsConditionString(targetName: string): string {
|
|
|
179
194
|
export interface BsConditionInputProps {
|
|
180
195
|
targetName: string;
|
|
181
196
|
fields: IField[];
|
|
197
|
+
extraFields?: IField[];
|
|
182
198
|
value?: string;
|
|
183
199
|
defaultValue?: string;
|
|
184
200
|
onChange?: (condition: string) => void;
|
|
@@ -83,6 +83,24 @@ interface FieldTreeNode {
|
|
|
83
83
|
widgetName?: string;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
+
/**
|
|
87
|
+
* 字段选择器统一排除的字段类型:
|
|
88
|
+
* 这些类型没有可编辑的「值」,作为触发字段 / 编辑字段 / 提示词引用都没有意义。
|
|
89
|
+
* - dataload / linkquery:数据加载与联动查询,值由系统行为产生
|
|
90
|
+
* - linkdata:关联数据(展示用途,值形态复杂)
|
|
91
|
+
* - button:按钮
|
|
92
|
+
* - separator:分割线
|
|
93
|
+
* - subform:子表单本身(子字段通过树展开选择)
|
|
94
|
+
*/
|
|
95
|
+
export const FIELD_SELECT_TYPE_BLACKLIST: Array<FieldType> = [
|
|
96
|
+
'dataload',
|
|
97
|
+
'linkquery',
|
|
98
|
+
'linkdata',
|
|
99
|
+
'button',
|
|
100
|
+
'separator',
|
|
101
|
+
'subform',
|
|
102
|
+
];
|
|
103
|
+
|
|
86
104
|
// ── Tree Builder ──────────────────────────────────────────────────
|
|
87
105
|
|
|
88
106
|
function buildNodeKey(field: IField, index: number): string {
|
|
@@ -100,6 +118,10 @@ function buildFieldTree(fields: IField[], searchQuery: string): FieldTreeNode[]
|
|
|
100
118
|
|
|
101
119
|
for (let i = 0; i < fields.length; i++) {
|
|
102
120
|
const field = fields[i];
|
|
121
|
+
// 排除无可编辑值的类型(dataload/linkquery/linkdata/button/separator/subform)
|
|
122
|
+
if (FIELD_SELECT_TYPE_BLACKLIST.includes(field.widget?.type as FieldType)) {
|
|
123
|
+
continue;
|
|
124
|
+
}
|
|
103
125
|
const label = field.label;
|
|
104
126
|
const parentWidgetName = field.widget?.widgetName;
|
|
105
127
|
|
|
@@ -4,7 +4,7 @@ import { cn } from '../../../lib/utils';
|
|
|
4
4
|
// ── Sub-component imports ───────────────────────────────────────────
|
|
5
5
|
|
|
6
6
|
import { TextInput, NumberInput, TextareaInput, PasswordInput, DateTimeInput, UploadInput, RangeNumberInput, RangeDateTimeInput } from './inputs';
|
|
7
|
-
import { ComboInput, CheckboxGroupInput, RadioGroupInput, AsyncPicker, CascadingAddressInput, TextMultiSelect } from './picker-inputs';
|
|
7
|
+
import { ComboInput, CheckboxGroupInput, RadioGroupInput, AsyncPicker, CascadingAddressInput, TextMultiSelect, FlowNodeInput } from './picker-inputs';
|
|
8
8
|
import { DeptSelect } from './dept-select';
|
|
9
9
|
import { SeparatorDisplay, ButtonDisplay, SubformPlaceholder } from './display';
|
|
10
10
|
|
|
@@ -137,6 +137,8 @@ export const FieldValueInput = (props: FieldValueInputProps) => {
|
|
|
137
137
|
return <ButtonDisplay field={field} />;
|
|
138
138
|
case 'subform':
|
|
139
139
|
return <SubformPlaceholder field={field} showLabel={props.showLabel} showDescription={props.showDescription} />;
|
|
140
|
+
case 'flowNode':
|
|
141
|
+
return <FlowNodeInput {...props} />;
|
|
140
142
|
default:
|
|
141
143
|
return <TextInput {...props} />;
|
|
142
144
|
}
|
|
@@ -6,6 +6,7 @@ import type {
|
|
|
6
6
|
ILinkDataOption,
|
|
7
7
|
IAddressOption,
|
|
8
8
|
ILocationOption,
|
|
9
|
+
IFlowNodeOption,
|
|
9
10
|
} from '@baishuyun/types';
|
|
10
11
|
import { Popover, PopoverTrigger, PopoverContent } from '../../ui/popover';
|
|
11
12
|
import { FieldWrapper, type FieldValueInputProps } from './index';
|
|
@@ -1144,3 +1145,113 @@ export function LocationInput({ field, value, onChange, disabled, service, showL
|
|
|
1144
1145
|
</FieldWrapper>
|
|
1145
1146
|
);
|
|
1146
1147
|
}
|
|
1148
|
+
|
|
1149
|
+
|
|
1150
|
+
// ── FlowNodeInput (flowNode 虚拟字段:流程节点下拉) ──────────────────
|
|
1151
|
+
|
|
1152
|
+
export function FlowNodeInput({ field, value, onChange, disabled, service, showLabel, showDescription }: FieldValueInputProps) {
|
|
1153
|
+
const [open, setOpen] = useState(false);
|
|
1154
|
+
const [items, setItems] = useState<IFlowNodeOption[]>([]);
|
|
1155
|
+
const [loading, setLoading] = useState(false);
|
|
1156
|
+
const [loadError, setLoadError] = useState(false);
|
|
1157
|
+
const { portalContainer, setTriggerRef } = usePortalContainer('data-bs-field-value-input-portal');
|
|
1158
|
+
|
|
1159
|
+
const fetchNodes = useCallback(() => {
|
|
1160
|
+
if (!service?.fetchFlowNodes) {
|
|
1161
|
+
setLoadError(true);
|
|
1162
|
+
return;
|
|
1163
|
+
}
|
|
1164
|
+
setLoading(true);
|
|
1165
|
+
setLoadError(false);
|
|
1166
|
+
service
|
|
1167
|
+
.fetchFlowNodes()
|
|
1168
|
+
.then((data) => {
|
|
1169
|
+
setItems(data);
|
|
1170
|
+
setLoading(false);
|
|
1171
|
+
})
|
|
1172
|
+
.catch(() => {
|
|
1173
|
+
setLoading(false);
|
|
1174
|
+
setLoadError(true);
|
|
1175
|
+
});
|
|
1176
|
+
}, [service]);
|
|
1177
|
+
|
|
1178
|
+
// 有值(编辑回显)时立即加载一次节点列表,用于把 value 翻译成节点名
|
|
1179
|
+
useEffect(() => {
|
|
1180
|
+
if (value) fetchNodes();
|
|
1181
|
+
}, [value, fetchNodes]);
|
|
1182
|
+
|
|
1183
|
+
// 无值时展开下拉再加载
|
|
1184
|
+
useEffect(() => {
|
|
1185
|
+
if (!open || items.length) return;
|
|
1186
|
+
fetchNodes();
|
|
1187
|
+
}, [open, items.length, fetchNodes]);
|
|
1188
|
+
|
|
1189
|
+
const selectedLabel =
|
|
1190
|
+
items.find((it) => it.value === value)?.label ??
|
|
1191
|
+
(typeof value === 'string' && value ? value : '');
|
|
1192
|
+
|
|
1193
|
+
const handleSelect = useCallback(
|
|
1194
|
+
(v: string) => {
|
|
1195
|
+
onChange?.(v);
|
|
1196
|
+
setOpen(false);
|
|
1197
|
+
},
|
|
1198
|
+
[onChange],
|
|
1199
|
+
);
|
|
1200
|
+
|
|
1201
|
+
return (
|
|
1202
|
+
<FieldWrapper field={field} showLabel={showLabel} showDescription={showDescription}>
|
|
1203
|
+
<Popover open={open} onOpenChange={setOpen}>
|
|
1204
|
+
<PopoverTrigger asChild>
|
|
1205
|
+
<button
|
|
1206
|
+
ref={setTriggerRef}
|
|
1207
|
+
type="button"
|
|
1208
|
+
disabled={disabled}
|
|
1209
|
+
className={cn(
|
|
1210
|
+
'flex items-center justify-between gap-[10px]',
|
|
1211
|
+
inputBaseCls,
|
|
1212
|
+
'text-left cursor-pointer',
|
|
1213
|
+
open ? 'border-[#0265FF]' : 'border-[#E0E0E0] hover:border-[#0265FF]',
|
|
1214
|
+
)}
|
|
1215
|
+
>
|
|
1216
|
+
<span className={cn('truncate', !selectedLabel && 'text-[#999999]')}>
|
|
1217
|
+
{selectedLabel || `请选择${field.label || '流程节点'}`}
|
|
1218
|
+
</span>
|
|
1219
|
+
<DropdownChevron open={open} />
|
|
1220
|
+
</button>
|
|
1221
|
+
</PopoverTrigger>
|
|
1222
|
+
<PopoverContent
|
|
1223
|
+
align="start"
|
|
1224
|
+
sideOffset={4}
|
|
1225
|
+
portalContainer={portalContainer}
|
|
1226
|
+
className="!border-0 rounded-[10px] shadow-[0px_0px_5px_rgba(0,0,0,0.04)] p-[4px]"
|
|
1227
|
+
style={{ width: 'var(--radix-popover-trigger-width)' }}
|
|
1228
|
+
>
|
|
1229
|
+
<div className="flex min-h-0 flex-col overflow-y-auto" style={{ maxHeight: 300 }}>
|
|
1230
|
+
{loading ? (
|
|
1231
|
+
<div className="px-[10px] py-[8px] text-[13px] text-[#999999]">加载中…</div>
|
|
1232
|
+
) : loadError ? (
|
|
1233
|
+
<div className="px-[10px] py-[8px] text-[13px] text-[#999999]">暂无法获取流程节点</div>
|
|
1234
|
+
) : items.length === 0 ? (
|
|
1235
|
+
<div className="px-[10px] py-[8px] text-[13px] text-[#999999]">暂无流程节点</div>
|
|
1236
|
+
) : (
|
|
1237
|
+
items.map((item) => (
|
|
1238
|
+
<button
|
|
1239
|
+
key={item.value}
|
|
1240
|
+
type="button"
|
|
1241
|
+
className={cn(
|
|
1242
|
+
'flex items-center gap-[8px] w-full px-[10px] py-[7px] text-left text-[14px] text-[#030303]',
|
|
1243
|
+
'hover:bg-[#EFF0F6] cursor-pointer',
|
|
1244
|
+
value === item.value && 'bg-[#EFF0F6]',
|
|
1245
|
+
)}
|
|
1246
|
+
onClick={() => handleSelect(item.value)}
|
|
1247
|
+
>
|
|
1248
|
+
<span className="truncate">{item.label}</span>
|
|
1249
|
+
</button>
|
|
1250
|
+
))
|
|
1251
|
+
)}
|
|
1252
|
+
</div>
|
|
1253
|
+
</PopoverContent>
|
|
1254
|
+
</Popover>
|
|
1255
|
+
</FieldWrapper>
|
|
1256
|
+
);
|
|
1257
|
+
}
|
|
@@ -11,15 +11,18 @@ export type TriggerCardConfig = Pick<
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const TriggerConfigList: Array<TriggerCardConfig> = [
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
14
|
+
// 「通用型」不再作为可新建的触发方式:通用助手不会自动触发,
|
|
15
|
+
// 与「智能体助手」的自动执行定位不符,配置界面直接隐藏该卡片。
|
|
16
|
+
// 旧数据里已有的 universal 助手仍可正常编辑/触发日志查看。
|
|
17
|
+
// {
|
|
18
|
+
// triggerType: 'universal',
|
|
19
|
+
// title: '通用型',
|
|
20
|
+
// description: '开箱即用,无需触发即可直接使用',
|
|
21
|
+
// icon: <CommonTypeIcon fill="#4ACCC1" />,
|
|
22
|
+
// minIcon: <CommonTypeIcon fill="#4ACCC1" size={12} />,
|
|
23
|
+
// iconBgColor: 'rgba(74, 204, 193, 0.1)',
|
|
24
|
+
// badge: '通用',
|
|
25
|
+
// },
|
|
23
26
|
{
|
|
24
27
|
triggerType: 'form_field',
|
|
25
28
|
title: '表单字段触发',
|
|
@@ -119,6 +119,13 @@ const flattenFormEntries = (entries: IEntryDetail[]): FormSelectItem[] => {
|
|
|
119
119
|
type: entry.type,
|
|
120
120
|
parent: entry.parent || undefined,
|
|
121
121
|
itemType: entry.type === 'group' ? 'group' : 'form',
|
|
122
|
+
form:
|
|
123
|
+
entry.hasFlow === undefined && entry.hasCoop === undefined
|
|
124
|
+
? undefined
|
|
125
|
+
: {
|
|
126
|
+
// 宿主口径:hasCoop 为「协作表单/普通表单」,hasCoop=false 且 hasFlow=true 才是流程表单
|
|
127
|
+
isFlowForm: entry.hasFlow === true && entry.hasCoop === false,
|
|
128
|
+
},
|
|
122
129
|
});
|
|
123
130
|
if (entry.child?.length) {
|
|
124
131
|
for (const child of flattenFormEntries(entry.child)) {
|
|
@@ -169,19 +169,8 @@ function DrawerBody({ className, children, style, ...props }: React.ComponentPro
|
|
|
169
169
|
return () => el.removeEventListener("wheel", handleWheel);
|
|
170
170
|
}, []);
|
|
171
171
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
const body = bodyRef.current;
|
|
175
|
-
if (!content || !body) return;
|
|
176
|
-
|
|
177
|
-
const observer = new ResizeObserver(() => {
|
|
178
|
-
body.scrollTo({ top: body.scrollHeight, behavior: "smooth" });
|
|
179
|
-
});
|
|
180
|
-
|
|
181
|
-
observer.observe(content);
|
|
182
|
-
return () => observer.disconnect();
|
|
183
|
-
}, []);
|
|
184
|
-
|
|
172
|
+
// 内容高度变化(如切换触发方式导致表单字段增减)不再强制滚到底部,
|
|
173
|
+
// 保持用户当前阅读位置;需要贴底的场景自行调用 scrollTo。
|
|
185
174
|
return (
|
|
186
175
|
<div
|
|
187
176
|
ref={bodyRef}
|