@baishuyun/ai-design 2.1.7 → 2.1.9
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 +46 -0
- package/dist/ai-design.css +4173 -0
- package/dist/ai-design.js +62800 -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 +101 -38
- 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.9",
|
|
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;
|
|
@@ -7,39 +7,85 @@ import { SearchIcon } from '../../bs-icons';
|
|
|
7
7
|
|
|
8
8
|
const ToggleIcon = ({ expanded }: { expanded: boolean }) => (
|
|
9
9
|
<svg
|
|
10
|
-
width="16"
|
|
10
|
+
width="16"
|
|
11
|
+
height="16"
|
|
12
|
+
viewBox="0 0 16 16"
|
|
13
|
+
fill="none"
|
|
11
14
|
className={cn('shrink-0', transCls)}
|
|
12
15
|
style={{ transform: expanded ? 'rotate(0deg)' : 'rotate(-90deg)' }}
|
|
13
16
|
>
|
|
14
|
-
<path
|
|
17
|
+
<path
|
|
18
|
+
d="M5 7L8 10L11 7"
|
|
19
|
+
stroke="#666666"
|
|
20
|
+
strokeWidth="1.2"
|
|
21
|
+
strokeLinecap="round"
|
|
22
|
+
strokeLinejoin="round"
|
|
23
|
+
/>
|
|
15
24
|
</svg>
|
|
16
25
|
);
|
|
17
26
|
|
|
18
27
|
const DropdownChevron = ({ open }: { open: boolean }) => (
|
|
19
28
|
<svg
|
|
20
|
-
width="16"
|
|
29
|
+
width="16"
|
|
30
|
+
height="16"
|
|
31
|
+
viewBox="0 0 16 16"
|
|
32
|
+
fill="none"
|
|
21
33
|
className={cn('shrink-0', transCls)}
|
|
22
34
|
style={{ transform: open ? 'rotate(180deg)' : 'rotate(0deg)' }}
|
|
23
35
|
>
|
|
24
|
-
<path
|
|
36
|
+
<path
|
|
37
|
+
d="M4 6L8 10L12 6"
|
|
38
|
+
stroke="#666666"
|
|
39
|
+
strokeWidth="1.2"
|
|
40
|
+
strokeLinecap="round"
|
|
41
|
+
strokeLinejoin="round"
|
|
42
|
+
/>
|
|
25
43
|
</svg>
|
|
26
44
|
);
|
|
27
45
|
|
|
28
46
|
// ── FieldType → Badge Mapping ─────────────────────────────────────
|
|
29
47
|
|
|
30
|
-
interface BadgeStyle {
|
|
48
|
+
interface BadgeStyle {
|
|
49
|
+
label: string;
|
|
50
|
+
bgColor: string;
|
|
51
|
+
textColor: string;
|
|
52
|
+
}
|
|
31
53
|
|
|
32
54
|
const FIELD_TYPE_BADGE_MAP: Partial<Record<FieldType, BadgeStyle>> = {};
|
|
33
55
|
|
|
34
56
|
const textTypes: FieldType[] = [
|
|
35
|
-
'text',
|
|
36
|
-
'
|
|
37
|
-
'
|
|
38
|
-
'
|
|
57
|
+
'text',
|
|
58
|
+
'textarea',
|
|
59
|
+
'password',
|
|
60
|
+
'radio',
|
|
61
|
+
'radiogroup',
|
|
62
|
+
'combo',
|
|
63
|
+
'combocheck',
|
|
64
|
+
'checkboxgroup',
|
|
65
|
+
'address',
|
|
66
|
+
'location',
|
|
67
|
+
'separator',
|
|
68
|
+
'user',
|
|
69
|
+
'usergroup',
|
|
70
|
+
'dept',
|
|
71
|
+
'deptgroup',
|
|
72
|
+
'sn',
|
|
73
|
+
'formula',
|
|
74
|
+
'flowState',
|
|
75
|
+
'flowstate',
|
|
76
|
+
'subform',
|
|
77
|
+
'unknown',
|
|
39
78
|
];
|
|
40
79
|
const numberTypes: FieldType[] = ['number'];
|
|
41
80
|
const datetimeTypes: FieldType[] = ['datetime'];
|
|
42
|
-
const fileTypes: FieldType[] = [
|
|
81
|
+
const fileTypes: FieldType[] = [
|
|
82
|
+
'upload',
|
|
83
|
+
'image',
|
|
84
|
+
'linkdata',
|
|
85
|
+
'linkquery',
|
|
86
|
+
'dataload',
|
|
87
|
+
'signature',
|
|
88
|
+
];
|
|
43
89
|
|
|
44
90
|
for (const t of textTypes) {
|
|
45
91
|
FIELD_TYPE_BADGE_MAP[t] = { label: '文本', bgColor: '#F0F6FF', textColor: '#0265FF' };
|
|
@@ -56,7 +102,6 @@ for (const t of fileTypes) {
|
|
|
56
102
|
|
|
57
103
|
FIELD_TYPE_BADGE_MAP['button'] = { label: '按钮', bgColor: '#DDF6DD', textColor: '#1EC31E' };
|
|
58
104
|
|
|
59
|
-
|
|
60
105
|
// ── Type Badge Component ──────────────────────────────────────────
|
|
61
106
|
|
|
62
107
|
function TypeBadge({ style }: { style: BadgeStyle }) {
|
|
@@ -83,14 +128,37 @@ interface FieldTreeNode {
|
|
|
83
128
|
widgetName?: string;
|
|
84
129
|
}
|
|
85
130
|
|
|
131
|
+
/**
|
|
132
|
+
* 字段选择器统一排除的字段类型:
|
|
133
|
+
* 这些类型没有可编辑的「值」,作为触发字段 / 编辑字段 / 提示词引用都没有意义。
|
|
134
|
+
* - dataload / linkquery:数据加载与联动查询,值由系统行为产生
|
|
135
|
+
* - linkdata:关联数据(展示用途,值形态复杂)
|
|
136
|
+
* - button:按钮
|
|
137
|
+
* - separator:分割线
|
|
138
|
+
* - subform:子表单本身(子字段通过树展开选择)
|
|
139
|
+
*/
|
|
140
|
+
export const FIELD_SELECT_TYPE_BLACKLIST: Array<FieldType> = [
|
|
141
|
+
'dataload',
|
|
142
|
+
'linkquery',
|
|
143
|
+
'linkdata',
|
|
144
|
+
'separator',
|
|
145
|
+
'subform',
|
|
146
|
+
];
|
|
147
|
+
|
|
86
148
|
// ── Tree Builder ──────────────────────────────────────────────────
|
|
87
149
|
|
|
88
150
|
function buildNodeKey(field: IField, index: number): string {
|
|
89
151
|
return field.widget?.widgetName || String(index);
|
|
90
152
|
}
|
|
91
153
|
|
|
92
|
-
function buildItemNodeKey(
|
|
93
|
-
|
|
154
|
+
function buildItemNodeKey(
|
|
155
|
+
parentKey: string,
|
|
156
|
+
item: { widget?: { widgetName?: string }; value?: unknown; text?: string },
|
|
157
|
+
index: number
|
|
158
|
+
): string {
|
|
159
|
+
return (
|
|
160
|
+
(item as { widget?: { widgetName?: string } }).widget?.widgetName || `${parentKey}-${index}`
|
|
161
|
+
);
|
|
94
162
|
}
|
|
95
163
|
|
|
96
164
|
function buildFieldTree(fields: IField[], searchQuery: string): FieldTreeNode[] {
|
|
@@ -100,14 +168,16 @@ function buildFieldTree(fields: IField[], searchQuery: string): FieldTreeNode[]
|
|
|
100
168
|
|
|
101
169
|
for (let i = 0; i < fields.length; i++) {
|
|
102
170
|
const field = fields[i];
|
|
171
|
+
// 排除无可编辑值的类型(dataload/linkquery/linkdata/button/separator/subform)
|
|
172
|
+
if (FIELD_SELECT_TYPE_BLACKLIST.includes(field.widget?.type as FieldType)) {
|
|
173
|
+
continue;
|
|
174
|
+
}
|
|
103
175
|
const label = field.label;
|
|
104
176
|
const parentWidgetName = field.widget?.widgetName;
|
|
105
177
|
|
|
106
178
|
// Only items with a 'widget' property (ISubformField) are expandable sub-fields
|
|
107
179
|
const items = field.widget?.items;
|
|
108
|
-
const subformItems = items?.filter(
|
|
109
|
-
(item): item is ISubformField => 'widget' in item
|
|
110
|
-
);
|
|
180
|
+
const subformItems = items?.filter((item): item is ISubformField => 'widget' in item);
|
|
111
181
|
const hasItems = subformItems && subformItems.length > 0;
|
|
112
182
|
const rootKey = parentWidgetName || buildNodeKey(field, i);
|
|
113
183
|
|
|
@@ -182,10 +252,7 @@ export const FieldSelectPopover = ({
|
|
|
182
252
|
return s;
|
|
183
253
|
});
|
|
184
254
|
|
|
185
|
-
const tree = useMemo(
|
|
186
|
-
() => buildFieldTree(fields, searchQuery),
|
|
187
|
-
[fields, searchQuery]
|
|
188
|
-
);
|
|
255
|
+
const tree = useMemo(() => buildFieldTree(fields, searchQuery), [fields, searchQuery]);
|
|
189
256
|
|
|
190
257
|
const toggleExpanded = useCallback((key: string) => {
|
|
191
258
|
setExpandedKeys((prev) => {
|
|
@@ -211,9 +278,8 @@ export const FieldSelectPopover = ({
|
|
|
211
278
|
const isExpanded = expandedKeys.has(node.key);
|
|
212
279
|
const isSelected = selectedKey != null && node.key === selectedKey;
|
|
213
280
|
const paddingLeft = node.depth * 22 + 10;
|
|
214
|
-
const badge =
|
|
215
|
-
? FIELD_TYPE_BADGE_MAP[node.fieldType]
|
|
216
|
-
: undefined;
|
|
281
|
+
const badge =
|
|
282
|
+
node.fieldType && showTypeBadge ? FIELD_TYPE_BADGE_MAP[node.fieldType] : undefined;
|
|
217
283
|
|
|
218
284
|
const handleRowClick = () => {
|
|
219
285
|
if (node.isExpandable) {
|
|
@@ -237,9 +303,7 @@ export const FieldSelectPopover = ({
|
|
|
237
303
|
'flex items-center justify-between w-full h-[34px] rounded-[4px] text-left',
|
|
238
304
|
'pr-[10px]',
|
|
239
305
|
transCls,
|
|
240
|
-
isSelected
|
|
241
|
-
? 'bg-[#F0F6FF] text-[#0265FF]'
|
|
242
|
-
: 'text-[#030303] hover:bg-[#EFF0F6]'
|
|
306
|
+
isSelected ? 'bg-[#F0F6FF] text-[#0265FF]' : 'text-[#030303] hover:bg-[#EFF0F6]'
|
|
243
307
|
)}
|
|
244
308
|
style={{ paddingLeft: `${paddingLeft}px`, paddingTop: 7, paddingBottom: 7 }}
|
|
245
309
|
>
|
|
@@ -253,9 +317,7 @@ export const FieldSelectPopover = ({
|
|
|
253
317
|
<span className="w-[16px] h-[16px] shrink-0" />
|
|
254
318
|
) : null}
|
|
255
319
|
|
|
256
|
-
<span className="text-[14px] truncate leading-[normal]">
|
|
257
|
-
{node.label}
|
|
258
|
-
</span>
|
|
320
|
+
<span className="text-[14px] truncate leading-[normal]">{node.label}</span>
|
|
259
321
|
</div>
|
|
260
322
|
|
|
261
323
|
{badge && <TypeBadge style={badge} />}
|
|
@@ -263,9 +325,7 @@ export const FieldSelectPopover = ({
|
|
|
263
325
|
|
|
264
326
|
{/* Children when expanded */}
|
|
265
327
|
{node.isExpandable && isExpanded && (
|
|
266
|
-
<div>
|
|
267
|
-
{node.children.map((child) => renderNodeRow(child))}
|
|
268
|
-
</div>
|
|
328
|
+
<div>{node.children.map((child) => renderNodeRow(child))}</div>
|
|
269
329
|
)}
|
|
270
330
|
</div>
|
|
271
331
|
);
|
|
@@ -371,10 +431,7 @@ export const FieldSelect = ({
|
|
|
371
431
|
const triggerBtnRef = useRef<HTMLButtonElement | null>(null);
|
|
372
432
|
|
|
373
433
|
const selectedKey = controlledValue !== undefined ? controlledValue : internalSelectedKey;
|
|
374
|
-
const displayLabel = useMemo(
|
|
375
|
-
() => getLabelByKey(fields, selectedKey),
|
|
376
|
-
[fields, selectedKey]
|
|
377
|
-
);
|
|
434
|
+
const displayLabel = useMemo(() => getLabelByKey(fields, selectedKey), [fields, selectedKey]);
|
|
378
435
|
|
|
379
436
|
const handleSelect = useCallback(
|
|
380
437
|
(field: IField, nodeKey: string) => {
|
|
@@ -401,11 +458,17 @@ export const FieldSelect = ({
|
|
|
401
458
|
const setTriggerRef = useCallback((node: HTMLButtonElement | null) => {
|
|
402
459
|
triggerBtnRef.current = node;
|
|
403
460
|
if (node) setTriggerWidth(node.offsetWidth);
|
|
404
|
-
if (!node) {
|
|
461
|
+
if (!node) {
|
|
462
|
+
setPortalContainer(null);
|
|
463
|
+
return;
|
|
464
|
+
}
|
|
405
465
|
const rootNode = node.getRootNode();
|
|
406
466
|
if (rootNode instanceof ShadowRoot) {
|
|
407
467
|
const existing = rootNode.querySelector<HTMLElement>('[data-bs-field-select-portal]');
|
|
408
|
-
if (existing) {
|
|
468
|
+
if (existing) {
|
|
469
|
+
setPortalContainer(existing);
|
|
470
|
+
return;
|
|
471
|
+
}
|
|
409
472
|
const container = document.createElement('div');
|
|
410
473
|
container.setAttribute('data-bs-field-select-portal', 'true');
|
|
411
474
|
rootNode.appendChild(container);
|
|
@@ -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
|
}
|