@baishuyun/chat-sdk 0.1.1 → 0.1.3
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 +12 -0
- package/dist/chat-sdk.js +7602 -7600
- package/dist/chat-sdk.js.map +1 -1
- package/dist/chat-sdk.umd.cjs +118 -118
- package/dist/chat-sdk.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/bs-ui/confirm-dialog.tsx +5 -0
- package/src/plugins/form-builder-plugin/utils/index.ts +6 -1
- package/dist/chat.d.ts +0 -5
- package/dist/chat.d.ts.map +0 -1
- package/dist/components/biz-comp/FakeBotMsg.d.ts +0 -8
- package/dist/components/biz-comp/FakeBotMsg.d.ts.map +0 -1
- package/dist/components/biz-comp/FieldChecker.d.ts +0 -19
- package/dist/components/biz-comp/FieldChecker.d.ts.map +0 -1
- package/dist/components/biz-comp/FieldCheckerListMsg.d.ts +0 -19
- package/dist/components/biz-comp/FieldCheckerListMsg.d.ts.map +0 -1
- package/dist/components/biz-comp/FieldValueChecker.d.ts +0 -16
- package/dist/components/biz-comp/FieldValueChecker.d.ts.map +0 -1
- package/dist/components/biz-comp/SubformFieldsValueChecker.d.ts +0 -22
- package/dist/components/biz-comp/SubformFieldsValueChecker.d.ts.map +0 -1
- package/dist/components/biz-comp/chat-client.d.ts +0 -13
- package/dist/components/biz-comp/chat-client.d.ts.map +0 -1
- package/dist/components/biz-comp/chat-frame.d.ts +0 -6
- package/dist/components/biz-comp/chat-frame.d.ts.map +0 -1
- package/dist/components/biz-comp/conversation.d.ts +0 -10
- package/dist/components/biz-comp/conversation.d.ts.map +0 -1
- package/dist/components/biz-comp/dash-widget-icon.d.ts +0 -7
- package/dist/components/biz-comp/dash-widget-icon.d.ts.map +0 -1
- package/dist/components/biz-comp/dock-btn.d.ts +0 -2
- package/dist/components/biz-comp/dock-btn.d.ts.map +0 -1
- package/dist/components/biz-comp/error-boundary.d.ts +0 -15
- package/dist/components/biz-comp/error-boundary.d.ts.map +0 -1
- package/dist/components/biz-comp/error-msg.d.ts +0 -4
- package/dist/components/biz-comp/error-msg.d.ts.map +0 -1
- package/dist/components/biz-comp/field-icon.d.ts +0 -5
- package/dist/components/biz-comp/field-icon.d.ts.map +0 -1
- package/dist/components/biz-comp/highlight-msg.d.ts +0 -4
- package/dist/components/biz-comp/highlight-msg.d.ts.map +0 -1
- package/dist/components/biz-comp/markdown-part.d.ts +0 -7
- package/dist/components/biz-comp/markdown-part.d.ts.map +0 -1
- package/dist/components/biz-comp/markdown.d.ts +0 -5
- package/dist/components/biz-comp/markdown.d.ts.map +0 -1
- package/dist/components/biz-comp/message-content.d.ts +0 -6
- package/dist/components/biz-comp/message-content.d.ts.map +0 -1
- package/dist/components/biz-comp/messages.d.ts +0 -3
- package/dist/components/biz-comp/messages.d.ts.map +0 -1
- package/dist/components/biz-comp/multi-modal-input/attachment-btn.d.ts +0 -9
- package/dist/components/biz-comp/multi-modal-input/attachment-btn.d.ts.map +0 -1
- package/dist/components/biz-comp/multi-modal-input/clear-btn.d.ts +0 -8
- package/dist/components/biz-comp/multi-modal-input/clear-btn.d.ts.map +0 -1
- package/dist/components/biz-comp/multi-modal-input/index.d.ts +0 -21
- package/dist/components/biz-comp/multi-modal-input/index.d.ts.map +0 -1
- package/dist/components/biz-comp/multi-modal-input/preview-attachment.d.ts +0 -12
- package/dist/components/biz-comp/multi-modal-input/preview-attachment.d.ts.map +0 -1
- package/dist/components/biz-comp/multi-modal-input/prompt-input.d.ts +0 -36
- package/dist/components/biz-comp/multi-modal-input/prompt-input.d.ts.map +0 -1
- package/dist/components/biz-comp/opening-lines.d.ts +0 -3
- package/dist/components/biz-comp/opening-lines.d.ts.map +0 -1
- package/dist/components/biz-comp/preview-message-wrapper.d.ts +0 -12
- package/dist/components/biz-comp/preview-message-wrapper.d.ts.map +0 -1
- package/dist/components/biz-comp/preview-message.d.ts +0 -13
- package/dist/components/biz-comp/preview-message.d.ts.map +0 -1
- package/dist/components/biz-comp/response.d.ts +0 -6
- package/dist/components/biz-comp/response.d.ts.map +0 -1
- package/dist/components/biz-comp/suggestions.d.ts +0 -8
- package/dist/components/biz-comp/suggestions.d.ts.map +0 -1
- package/dist/components/bs-ui/abs-fullscreen-gradient-bg.d.ts +0 -10
- package/dist/components/bs-ui/abs-fullscreen-gradient-bg.d.ts.map +0 -1
- package/dist/components/bs-ui/attachment-part-group.d.ts +0 -16
- package/dist/components/bs-ui/attachment-part-group.d.ts.map +0 -1
- package/dist/components/bs-ui/attachment-part.d.ts +0 -19
- package/dist/components/bs-ui/attachment-part.d.ts.map +0 -1
- package/dist/components/bs-ui/attachments-previewer.d.ts +0 -18
- package/dist/components/bs-ui/attachments-previewer.d.ts.map +0 -1
- package/dist/components/bs-ui/base-button.d.ts +0 -8
- package/dist/components/bs-ui/base-button.d.ts.map +0 -1
- package/dist/components/bs-ui/border-animation.d.ts +0 -23
- package/dist/components/bs-ui/border-animation.d.ts.map +0 -1
- package/dist/components/bs-ui/border-color-animation.d.ts +0 -11
- package/dist/components/bs-ui/border-color-animation.d.ts.map +0 -1
- package/dist/components/bs-ui/bot-avatar-name.d.ts +0 -6
- package/dist/components/bs-ui/bot-avatar-name.d.ts.map +0 -1
- package/dist/components/bs-ui/bot-icon.d.ts +0 -5
- package/dist/components/bs-ui/bot-icon.d.ts.map +0 -1
- package/dist/components/bs-ui/bs-icons.d.ts +0 -65
- package/dist/components/bs-ui/bs-icons.d.ts.map +0 -1
- package/dist/components/bs-ui/card-field.d.ts +0 -11
- package/dist/components/bs-ui/card-field.d.ts.map +0 -1
- package/dist/components/bs-ui/card.d.ts +0 -11
- package/dist/components/bs-ui/card.d.ts.map +0 -1
- package/dist/components/bs-ui/chat-area-header.d.ts +0 -13
- package/dist/components/bs-ui/chat-area-header.d.ts.map +0 -1
- package/dist/components/bs-ui/circle-checker.d.ts +0 -10
- package/dist/components/bs-ui/circle-checker.d.ts.map +0 -1
- package/dist/components/bs-ui/collapsible-txt-msg.d.ts +0 -11
- package/dist/components/bs-ui/collapsible-txt-msg.d.ts.map +0 -1
- package/dist/components/bs-ui/confirm-dialog.d.ts +0 -26
- package/dist/components/bs-ui/confirm-dialog.d.ts.map +0 -1
- package/dist/components/bs-ui/fields-design-info-table.d.ts +0 -7
- package/dist/components/bs-ui/fields-design-info-table.d.ts.map +0 -1
- package/dist/components/bs-ui/fields-generating-indicator.d.ts +0 -6
- package/dist/components/bs-ui/fields-generating-indicator.d.ts.map +0 -1
- package/dist/components/bs-ui/fields-portal.d.ts +0 -8
- package/dist/components/bs-ui/fields-portal.d.ts.map +0 -1
- package/dist/components/bs-ui/fields-previewer.d.ts +0 -18
- package/dist/components/bs-ui/fields-previewer.d.ts.map +0 -1
- package/dist/components/bs-ui/font-icon.d.ts +0 -6
- package/dist/components/bs-ui/font-icon.d.ts.map +0 -1
- package/dist/components/bs-ui/form-info-editor.d.ts +0 -37
- package/dist/components/bs-ui/form-info-editor.d.ts.map +0 -1
- package/dist/components/bs-ui/formula-tag.d.ts +0 -8
- package/dist/components/bs-ui/formula-tag.d.ts.map +0 -1
- package/dist/components/bs-ui/generate-animation.d.ts +0 -5
- package/dist/components/bs-ui/generate-animation.d.ts.map +0 -1
- package/dist/components/bs-ui/icon-btn.d.ts +0 -9
- package/dist/components/bs-ui/icon-btn.d.ts.map +0 -1
- package/dist/components/bs-ui/img-part.d.ts +0 -10
- package/dist/components/bs-ui/img-part.d.ts.map +0 -1
- package/dist/components/bs-ui/line-checker.d.ts +0 -19
- package/dist/components/bs-ui/line-checker.d.ts.map +0 -1
- package/dist/components/bs-ui/linear-gradient-border-btn.d.ts +0 -10
- package/dist/components/bs-ui/linear-gradient-border-btn.d.ts.map +0 -1
- package/dist/components/bs-ui/linear-gradient-color-bg-animation.d.ts +0 -8
- package/dist/components/bs-ui/linear-gradient-color-bg-animation.d.ts.map +0 -1
- package/dist/components/bs-ui/number-part.d.ts +0 -9
- package/dist/components/bs-ui/number-part.d.ts.map +0 -1
- package/dist/components/bs-ui/option-item.d.ts +0 -9
- package/dist/components/bs-ui/option-item.d.ts.map +0 -1
- package/dist/components/bs-ui/previewer-header.d.ts +0 -20
- package/dist/components/bs-ui/previewer-header.d.ts.map +0 -1
- package/dist/components/bs-ui/primary-confirm-btn.d.ts +0 -10
- package/dist/components/bs-ui/primary-confirm-btn.d.ts.map +0 -1
- package/dist/components/bs-ui/primary-entry-btn.d.ts +0 -9
- package/dist/components/bs-ui/primary-entry-btn.d.ts.map +0 -1
- package/dist/components/bs-ui/scroll-to-bottom-btn.d.ts +0 -6
- package/dist/components/bs-ui/scroll-to-bottom-btn.d.ts.map +0 -1
- package/dist/components/bs-ui/split-line.d.ts +0 -5
- package/dist/components/bs-ui/split-line.d.ts.map +0 -1
- package/dist/components/bs-ui/square-checker.d.ts +0 -15
- package/dist/components/bs-ui/square-checker.d.ts.map +0 -1
- package/dist/components/bs-ui/tab-radio-group.d.ts +0 -19
- package/dist/components/bs-ui/tab-radio-group.d.ts.map +0 -1
- package/dist/components/bs-ui/tooltip.d.ts +0 -6
- package/dist/components/bs-ui/tooltip.d.ts.map +0 -1
- package/dist/components/bs-ui/user-txt-msg-bubble.d.ts +0 -6
- package/dist/components/bs-ui/user-txt-msg-bubble.d.ts.map +0 -1
- package/dist/components/bs-ui/warning-msg.d.ts +0 -6
- package/dist/components/bs-ui/warning-msg.d.ts.map +0 -1
- package/dist/components/ui/badge.d.ts +0 -10
- package/dist/components/ui/badge.d.ts.map +0 -1
- package/dist/components/ui/button.d.ts +0 -12
- package/dist/components/ui/button.d.ts.map +0 -1
- package/dist/components/ui/card.d.ts +0 -9
- package/dist/components/ui/card.d.ts.map +0 -1
- package/dist/components/ui/checkbox.d.ts +0 -5
- package/dist/components/ui/checkbox.d.ts.map +0 -1
- package/dist/components/ui/collapsible.d.ts +0 -6
- package/dist/components/ui/collapsible.d.ts.map +0 -1
- package/dist/components/ui/dialog.d.ts +0 -24
- package/dist/components/ui/dialog.d.ts.map +0 -1
- package/dist/components/ui/dropdown-menu.d.ts +0 -28
- package/dist/components/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/components/ui/icons.d.ts +0 -176
- package/dist/components/ui/icons.d.ts.map +0 -1
- package/dist/components/ui/input-group.d.ts +0 -17
- package/dist/components/ui/input-group.d.ts.map +0 -1
- package/dist/components/ui/input.d.ts +0 -4
- package/dist/components/ui/input.d.ts.map +0 -1
- package/dist/components/ui/label.d.ts +0 -6
- package/dist/components/ui/label.d.ts.map +0 -1
- package/dist/components/ui/one-time-click-btn.d.ts +0 -4
- package/dist/components/ui/one-time-click-btn.d.ts.map +0 -1
- package/dist/components/ui/select.d.ts +0 -14
- package/dist/components/ui/select.d.ts.map +0 -1
- package/dist/components/ui/spinner.d.ts +0 -3
- package/dist/components/ui/spinner.d.ts.map +0 -1
- package/dist/components/ui/tabs.d.ts +0 -8
- package/dist/components/ui/tabs.d.ts.map +0 -1
- package/dist/components/ui/textarea.d.ts +0 -4
- package/dist/components/ui/textarea.d.ts.map +0 -1
- package/dist/components/ui/tooltip.d.ts +0 -13
- package/dist/components/ui/tooltip.d.ts.map +0 -1
- package/dist/components/web-comp/fields-previewer-web-component.d.ts +0 -60
- package/dist/components/web-comp/fields-previewer-web-component.d.ts.map +0 -1
- package/dist/const/index.d.ts +0 -5
- package/dist/const/index.d.ts.map +0 -1
- package/dist/const/ui.d.ts +0 -7
- package/dist/const/ui.d.ts.map +0 -1
- package/dist/hooks/use-chat-preference.d.ts +0 -3
- package/dist/hooks/use-chat-preference.d.ts.map +0 -1
- package/dist/hooks/use-draggable.d.ts +0 -24
- package/dist/hooks/use-draggable.d.ts.map +0 -1
- package/dist/hooks/use-evt-bus.d.ts +0 -2
- package/dist/hooks/use-evt-bus.d.ts.map +0 -1
- package/dist/hooks/use-evt.d.ts +0 -3
- package/dist/hooks/use-evt.d.ts.map +0 -1
- package/dist/hooks/use-frame-mode.d.ts +0 -20
- package/dist/hooks/use-frame-mode.d.ts.map +0 -1
- package/dist/hooks/use-merged-chat.d.ts +0 -7
- package/dist/hooks/use-merged-chat.d.ts.map +0 -1
- package/dist/hooks/use-msg-status-broadcast.d.ts +0 -3
- package/dist/hooks/use-msg-status-broadcast.d.ts.map +0 -1
- package/dist/hooks/use-plugin-component.d.ts +0 -5
- package/dist/hooks/use-plugin-component.d.ts.map +0 -1
- package/dist/hooks/use-plugin-ctx.d.ts +0 -3
- package/dist/hooks/use-plugin-ctx.d.ts.map +0 -1
- package/dist/hooks/use-plugin-custom-components.d.ts +0 -5
- package/dist/hooks/use-plugin-custom-components.d.ts.map +0 -1
- package/dist/hooks/use-plugin-life-cycle-chain-runner.d.ts +0 -5
- package/dist/hooks/use-plugin-life-cycle-chain-runner.d.ts.map +0 -1
- package/dist/hooks/use-plugin-list.d.ts +0 -2
- package/dist/hooks/use-plugin-list.d.ts.map +0 -1
- package/dist/hooks/use-plugin.d.ts +0 -2
- package/dist/hooks/use-plugin.d.ts.map +0 -1
- package/dist/hooks/use-scroll-to-bottom.d.ts +0 -9
- package/dist/hooks/use-scroll-to-bottom.d.ts.map +0 -1
- package/dist/hooks/use-shadow.d.ts +0 -25
- package/dist/hooks/use-shadow.d.ts.map +0 -1
- package/dist/hooks/use-toast.d.ts +0 -3
- package/dist/hooks/use-toast.d.ts.map +0 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.d.ts.map +0 -1
- package/dist/lib/clone.d.ts +0 -32
- package/dist/lib/clone.d.ts.map +0 -1
- package/dist/lib/event-emitter.d.ts +0 -39
- package/dist/lib/event-emitter.d.ts.map +0 -1
- package/dist/lib/parse-design-doc.d.ts +0 -16
- package/dist/lib/parse-design-doc.d.ts.map +0 -1
- package/dist/lib/readonly.d.ts +0 -14
- package/dist/lib/readonly.d.ts.map +0 -1
- package/dist/lib/utils.d.ts +0 -55
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/plugins/form-builder-base-plugin/const.d.ts +0 -3
- package/dist/plugins/form-builder-base-plugin/const.d.ts.map +0 -1
- package/dist/plugins/form-builder-base-plugin/index.d.ts +0 -7
- package/dist/plugins/form-builder-base-plugin/index.d.ts.map +0 -1
- package/dist/plugins/form-builder-base-plugin/types.d.ts +0 -12
- package/dist/plugins/form-builder-base-plugin/types.d.ts.map +0 -1
- package/dist/plugins/form-builder-plugin/components/create-form-confirm.d.ts +0 -7
- package/dist/plugins/form-builder-plugin/components/create-form-confirm.d.ts.map +0 -1
- package/dist/plugins/form-builder-plugin/components/design-doc-part.d.ts +0 -4
- package/dist/plugins/form-builder-plugin/components/design-doc-part.d.ts.map +0 -1
- package/dist/plugins/form-builder-plugin/components/design-info.d.ts +0 -6
- package/dist/plugins/form-builder-plugin/components/design-info.d.ts.map +0 -1
- package/dist/plugins/form-builder-plugin/components/entry-btn.d.ts +0 -3
- package/dist/plugins/form-builder-plugin/components/entry-btn.d.ts.map +0 -1
- package/dist/plugins/form-builder-plugin/components/fields-part.d.ts +0 -4
- package/dist/plugins/form-builder-plugin/components/fields-part.d.ts.map +0 -1
- package/dist/plugins/form-builder-plugin/components/follow-up.d.ts +0 -3
- package/dist/plugins/form-builder-plugin/components/follow-up.d.ts.map +0 -1
- package/dist/plugins/form-builder-plugin/components/msg-part.d.ts +0 -3
- package/dist/plugins/form-builder-plugin/components/msg-part.d.ts.map +0 -1
- package/dist/plugins/form-builder-plugin/components/opening-lines.d.ts +0 -3
- package/dist/plugins/form-builder-plugin/components/opening-lines.d.ts.map +0 -1
- package/dist/plugins/form-builder-plugin/components/suggestion-part.d.ts +0 -5
- package/dist/plugins/form-builder-plugin/components/suggestion-part.d.ts.map +0 -1
- package/dist/plugins/form-builder-plugin/const/index.d.ts +0 -12
- package/dist/plugins/form-builder-plugin/const/index.d.ts.map +0 -1
- package/dist/plugins/form-builder-plugin/hooks/index.d.ts +0 -4
- package/dist/plugins/form-builder-plugin/hooks/index.d.ts.map +0 -1
- package/dist/plugins/form-builder-plugin/hooks/use-fields-confirmed.d.ts +0 -2
- package/dist/plugins/form-builder-plugin/hooks/use-fields-confirmed.d.ts.map +0 -1
- package/dist/plugins/form-builder-plugin/index.d.ts +0 -30
- package/dist/plugins/form-builder-plugin/index.d.ts.map +0 -1
- package/dist/plugins/form-builder-plugin/types.d.ts +0 -28
- package/dist/plugins/form-builder-plugin/types.d.ts.map +0 -1
- package/dist/plugins/form-builder-plugin/utils/get-render-strategy.d.ts +0 -3
- package/dist/plugins/form-builder-plugin/utils/get-render-strategy.d.ts.map +0 -1
- package/dist/plugins/form-builder-plugin/utils/index.d.ts +0 -57
- package/dist/plugins/form-builder-plugin/utils/index.d.ts.map +0 -1
- package/dist/plugins/form-filling-plugin/batch-filling-data-manager.d.ts +0 -26
- package/dist/plugins/form-filling-plugin/batch-filling-data-manager.d.ts.map +0 -1
- package/dist/plugins/form-filling-plugin/components/FormFillingOpeningLines.d.ts +0 -3
- package/dist/plugins/form-filling-plugin/components/FormFillingOpeningLines.d.ts.map +0 -1
- package/dist/plugins/form-filling-plugin/components/avatar.d.ts +0 -5
- package/dist/plugins/form-filling-plugin/components/avatar.d.ts.map +0 -1
- package/dist/plugins/form-filling-plugin/components/batch-fill-part.d.ts +0 -4
- package/dist/plugins/form-filling-plugin/components/batch-fill-part.d.ts.map +0 -1
- package/dist/plugins/form-filling-plugin/components/batch-generator-action.d.ts +0 -14
- package/dist/plugins/form-filling-plugin/components/batch-generator-action.d.ts.map +0 -1
- package/dist/plugins/form-filling-plugin/components/entry-btn.d.ts +0 -3
- package/dist/plugins/form-filling-plugin/components/entry-btn.d.ts.map +0 -1
- package/dist/plugins/form-filling-plugin/components/first-batch-generating-animation.d.ts +0 -2
- package/dist/plugins/form-filling-plugin/components/first-batch-generating-animation.d.ts.map +0 -1
- package/dist/plugins/form-filling-plugin/components/generated-data-counter.d.ts +0 -5
- package/dist/plugins/form-filling-plugin/components/generated-data-counter.d.ts.map +0 -1
- package/dist/plugins/form-filling-plugin/components/mode-select.d.ts +0 -2
- package/dist/plugins/form-filling-plugin/components/mode-select.d.ts.map +0 -1
- package/dist/plugins/form-filling-plugin/components/msg-part.d.ts +0 -3
- package/dist/plugins/form-filling-plugin/components/msg-part.d.ts.map +0 -1
- package/dist/plugins/form-filling-plugin/components/non-first-batch-generating-animation.d.ts +0 -2
- package/dist/plugins/form-filling-plugin/components/non-first-batch-generating-animation.d.ts.map +0 -1
- package/dist/plugins/form-filling-plugin/components/single-fill-part.d.ts +0 -4
- package/dist/plugins/form-filling-plugin/components/single-fill-part.d.ts.map +0 -1
- package/dist/plugins/form-filling-plugin/const.d.ts +0 -615
- package/dist/plugins/form-filling-plugin/const.d.ts.map +0 -1
- package/dist/plugins/form-filling-plugin/hooks/use-conversation-id-in-ctx.d.ts +0 -3
- package/dist/plugins/form-filling-plugin/hooks/use-conversation-id-in-ctx.d.ts.map +0 -1
- package/dist/plugins/form-filling-plugin/hooks/use-fields-data.d.ts +0 -4
- package/dist/plugins/form-filling-plugin/hooks/use-fields-data.d.ts.map +0 -1
- package/dist/plugins/form-filling-plugin/index.d.ts +0 -22
- package/dist/plugins/form-filling-plugin/index.d.ts.map +0 -1
- package/dist/plugins/form-filling-plugin/types.d.ts +0 -22
- package/dist/plugins/form-filling-plugin/types.d.ts.map +0 -1
- package/dist/plugins/form-filling-plugin/utils.d.ts +0 -6
- package/dist/plugins/form-filling-plugin/utils.d.ts.map +0 -1
- package/dist/plugins/report-query-plugin/components/avatar.d.ts +0 -5
- package/dist/plugins/report-query-plugin/components/avatar.d.ts.map +0 -1
- package/dist/plugins/report-query-plugin/components/query-entry-btn.d.ts +0 -3
- package/dist/plugins/report-query-plugin/components/query-entry-btn.d.ts.map +0 -1
- package/dist/plugins/report-query-plugin/components/query-msg-part.d.ts +0 -3
- package/dist/plugins/report-query-plugin/components/query-msg-part.d.ts.map +0 -1
- package/dist/plugins/report-query-plugin/components/query-opening-lines.d.ts +0 -2
- package/dist/plugins/report-query-plugin/components/query-opening-lines.d.ts.map +0 -1
- package/dist/plugins/report-query-plugin/components/result-cards/CreatedSourceMsg.d.ts +0 -7
- package/dist/plugins/report-query-plugin/components/result-cards/CreatedSourceMsg.d.ts.map +0 -1
- package/dist/plugins/report-query-plugin/components/result-cards/DataTableCard.d.ts +0 -5
- package/dist/plugins/report-query-plugin/components/result-cards/DataTableCard.d.ts.map +0 -1
- package/dist/plugins/report-query-plugin/components/result-cards/DataTableFields.d.ts +0 -18
- package/dist/plugins/report-query-plugin/components/result-cards/DataTableFields.d.ts.map +0 -1
- package/dist/plugins/report-query-plugin/components/result-cards/FilterCondition.d.ts +0 -4
- package/dist/plugins/report-query-plugin/components/result-cards/FilterCondition.d.ts.map +0 -1
- package/dist/plugins/report-query-plugin/components/result-cards/FormulaField.d.ts +0 -8
- package/dist/plugins/report-query-plugin/components/result-cards/FormulaField.d.ts.map +0 -1
- package/dist/plugins/report-query-plugin/const.d.ts +0 -5
- package/dist/plugins/report-query-plugin/const.d.ts.map +0 -1
- package/dist/plugins/report-query-plugin/index.d.ts +0 -19
- package/dist/plugins/report-query-plugin/index.d.ts.map +0 -1
- package/dist/plugins/report-query-plugin/types.d.ts +0 -18
- package/dist/plugins/report-query-plugin/types.d.ts.map +0 -1
- package/dist/plugins/report-query-plugin/utils/build-dash-component.d.ts +0 -17
- package/dist/plugins/report-query-plugin/utils/build-dash-component.d.ts.map +0 -1
- package/dist/plugins/report-query-plugin/utils/create-default-dash-styles.d.ts +0 -30
- package/dist/plugins/report-query-plugin/utils/create-default-dash-styles.d.ts.map +0 -1
- package/dist/plugins/report-query-plugin/utils/create-default-widget-attr-list.d.ts +0 -60
- package/dist/plugins/report-query-plugin/utils/create-default-widget-attr-list.d.ts.map +0 -1
- package/dist/plugins/report-query-plugin/utils/field-enhance.d.ts +0 -31
- package/dist/plugins/report-query-plugin/utils/field-enhance.d.ts.map +0 -1
- package/dist/plugins/report-query-plugin/utils/get-field-group.d.ts +0 -208
- package/dist/plugins/report-query-plugin/utils/get-field-group.d.ts.map +0 -1
- package/dist/plugins/report-query-plugin/utils/get-field-icon.d.ts +0 -4
- package/dist/plugins/report-query-plugin/utils/get-field-icon.d.ts.map +0 -1
- package/dist/plugins/report-query-plugin/utils/get-group-rule.d.ts +0 -4
- package/dist/plugins/report-query-plugin/utils/get-group-rule.d.ts.map +0 -1
- package/dist/plugins/report-query-plugin/utils/index.d.ts +0 -5
- package/dist/plugins/report-query-plugin/utils/index.d.ts.map +0 -1
- package/dist/sdk.impl.d.ts +0 -42
- package/dist/sdk.impl.d.ts.map +0 -1
- package/dist/store/context.d.ts +0 -12
- package/dist/store/context.d.ts.map +0 -1
- package/dist/store/index.d.ts +0 -14
- package/dist/store/index.d.ts.map +0 -1
- package/dist/stories/AbsFullscreenGradientBg.stories.d.ts +0 -17
- package/dist/stories/AbsFullscreenGradientBg.stories.d.ts.map +0 -1
- package/dist/stories/AttachmentPart.stories.d.ts +0 -23
- package/dist/stories/AttachmentPart.stories.d.ts.map +0 -1
- package/dist/stories/AttachmentPartGroup.stories.d.ts +0 -21
- package/dist/stories/AttachmentPartGroup.stories.d.ts.map +0 -1
- package/dist/stories/AttachmentsPreviewer.stories.d.ts +0 -20
- package/dist/stories/AttachmentsPreviewer.stories.d.ts.map +0 -1
- package/dist/stories/BaseButton.stories.d.ts +0 -18
- package/dist/stories/BaseButton.stories.d.ts.map +0 -1
- package/dist/stories/BorderAnimation.stories.d.ts +0 -21
- package/dist/stories/BorderAnimation.stories.d.ts.map +0 -1
- package/dist/stories/BorderColorAnimation.stories.d.ts +0 -26
- package/dist/stories/BorderColorAnimation.stories.d.ts.map +0 -1
- package/dist/stories/BotAvatarAndName.stories.d.ts +0 -18
- package/dist/stories/BotAvatarAndName.stories.d.ts.map +0 -1
- package/dist/stories/BotIcon.stories.d.ts +0 -17
- package/dist/stories/BotIcon.stories.d.ts.map +0 -1
- package/dist/stories/BsTooltip.stories.d.ts +0 -7
- package/dist/stories/BsTooltip.stories.d.ts.map +0 -1
- package/dist/stories/Card.stories.d.ts +0 -14
- package/dist/stories/Card.stories.d.ts.map +0 -1
- package/dist/stories/CardField.stories.d.ts +0 -13
- package/dist/stories/CardField.stories.d.ts.map +0 -1
- package/dist/stories/ChatAreaHeader.stories.d.ts +0 -14
- package/dist/stories/ChatAreaHeader.stories.d.ts.map +0 -1
- package/dist/stories/CircleChecker.stories.d.ts +0 -21
- package/dist/stories/CircleChecker.stories.d.ts.map +0 -1
- package/dist/stories/CollapsibleTextMsg.stories.d.ts +0 -16
- package/dist/stories/CollapsibleTextMsg.stories.d.ts.map +0 -1
- package/dist/stories/ConfirmDialog.stories.d.ts +0 -61
- package/dist/stories/ConfirmDialog.stories.d.ts.map +0 -1
- package/dist/stories/DashWidgetIcon.stories.d.ts +0 -13
- package/dist/stories/DashWidgetIcon.stories.d.ts.map +0 -1
- package/dist/stories/FormInfoEditor.stories.d.ts +0 -15
- package/dist/stories/FormInfoEditor.stories.d.ts.map +0 -1
- package/dist/stories/FormulaField.stories.d.ts +0 -24
- package/dist/stories/FormulaField.stories.d.ts.map +0 -1
- package/dist/stories/FormulaTag.stories.d.ts +0 -37
- package/dist/stories/FormulaTag.stories.d.ts.map +0 -1
- package/dist/stories/GenerateAnimation.stories.d.ts +0 -17
- package/dist/stories/GenerateAnimation.stories.d.ts.map +0 -1
- package/dist/stories/IconBtn.stories.d.ts +0 -15
- package/dist/stories/IconBtn.stories.d.ts.map +0 -1
- package/dist/stories/IconLib.d.ts +0 -12
- package/dist/stories/IconLib.d.ts.map +0 -1
- package/dist/stories/Icons.stories.d.ts +0 -24
- package/dist/stories/Icons.stories.d.ts.map +0 -1
- package/dist/stories/ImgMsgPart.stories.d.ts +0 -20
- package/dist/stories/ImgMsgPart.stories.d.ts.map +0 -1
- package/dist/stories/LineChecker.stories.d.ts +0 -23
- package/dist/stories/LineChecker.stories.d.ts.map +0 -1
- package/dist/stories/LinearGradientBorderBtn.stories.d.ts +0 -22
- package/dist/stories/LinearGradientBorderBtn.stories.d.ts.map +0 -1
- package/dist/stories/LinearGradientColorBgAnimation.stories.d.ts +0 -23
- package/dist/stories/LinearGradientColorBgAnimation.stories.d.ts.map +0 -1
- package/dist/stories/NumbersMsgPart.stories.d.ts +0 -19
- package/dist/stories/NumbersMsgPart.stories.d.ts.map +0 -1
- package/dist/stories/OptionItem.stories.d.ts +0 -20
- package/dist/stories/OptionItem.stories.d.ts.map +0 -1
- package/dist/stories/PreviewerHeader.stories.d.ts +0 -12
- package/dist/stories/PreviewerHeader.stories.d.ts.map +0 -1
- package/dist/stories/PrimaryConfirmBtn.stories.d.ts +0 -19
- package/dist/stories/PrimaryConfirmBtn.stories.d.ts.map +0 -1
- package/dist/stories/PrimaryEntryBtn.stories.d.ts +0 -26
- package/dist/stories/PrimaryEntryBtn.stories.d.ts.map +0 -1
- package/dist/stories/ScrollToBottom.stories.d.ts +0 -15
- package/dist/stories/ScrollToBottom.stories.d.ts.map +0 -1
- package/dist/stories/SplitLine.stories.d.ts +0 -9
- package/dist/stories/SplitLine.stories.d.ts.map +0 -1
- package/dist/stories/SquareChecker.stories.d.ts +0 -26
- package/dist/stories/SquareChecker.stories.d.ts.map +0 -1
- package/dist/stories/TabRadioGroup.stories.d.ts +0 -18
- package/dist/stories/TabRadioGroup.stories.d.ts.map +0 -1
- package/dist/stories/UserTextMsgBubble.stories.d.ts +0 -14
- package/dist/stories/UserTextMsgBubble.stories.d.ts.map +0 -1
- package/dist/stories/WarningMessage.stories.d.ts +0 -16
- package/dist/stories/WarningMessage.stories.d.ts.map +0 -1
- package/dist/stories/fields-design-info-table.stories.d.ts +0 -14
- package/dist/stories/fields-design-info-table.stories.d.ts.map +0 -1
- package/dist/stories/fields-generating.stories.d.ts +0 -20
- package/dist/stories/fields-generating.stories.d.ts.map +0 -1
- package/dist/stories/fields-previewer.stories.d.ts +0 -19
- package/dist/stories/fields-previewer.stories.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/plugins/form-filling-plugin/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAuB,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AA2B1D,eAAO,MAAM,eAAe,GAAI,OAAO,MAAM,GAAG,MAAM,EAAE,KAAG,MAW1D,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,OAAO,OAAO,EAAE,MAAM,SAAS,KAAG,MAAM,GAAG,OAsB1E,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,eAAe,KAAK,CAAC,KAAK,CAAC,UAQ/D,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../../src/plugins/report-query-plugin/components/avatar.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,GAAI,cAEzB;IACD,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,4CAGA,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query-entry-btn.d.ts","sourceRoot":"","sources":["../../../../src/plugins/report-query-plugin/components/query-entry-btn.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,eAAO,MAAM,aAAa,GAAI,oBAAoB,gBAAgB,4CAYjE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query-msg-part.d.ts","sourceRoot":"","sources":["../../../../src/plugins/report-query-plugin/components/query-msg-part.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAUpD,eAAO,MAAM,YAAY,GAAI,mBAAmB,gBAAgB,mDAoD/D,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query-opening-lines.d.ts","sourceRoot":"","sources":["../../../../src/plugins/report-query-plugin/components/query-opening-lines.tsx"],"names":[],"mappings":"AA6BA,eAAO,MAAM,iBAAiB,+CA8B7B,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { QuerySourceType } from '@baishuyun/types';
|
|
2
|
-
export declare const CreatedSourceMsg: ({ type, title, done }: {
|
|
3
|
-
type: QuerySourceType;
|
|
4
|
-
title: string;
|
|
5
|
-
done?: boolean;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
-
//# sourceMappingURL=CreatedSourceMsg.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreatedSourceMsg.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/report-query-plugin/components/result-cards/CreatedSourceMsg.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAKnD,eAAO,MAAM,gBAAgB,GAAI,uBAAuB;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,mDA2B/G,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableCard.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/report-query-plugin/components/result-cards/DataTableCard.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAYhD,eAAO,MAAM,aAAa,GACxB,OAAO,YAAY,GAAG;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,4CA8DF,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { IQueryResultMetric } from '@baishuyun/types/src/chat/plugin/query';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
export declare const DataSourceField: ({ name, children }: {
|
|
4
|
-
name?: string;
|
|
5
|
-
children?: string;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare const DimensionField: ({ children, isCol }: {
|
|
8
|
-
children?: string;
|
|
9
|
-
isCol?: boolean;
|
|
10
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export declare const ConditionField: ({ children }: {
|
|
12
|
-
children?: ReactNode;
|
|
13
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export declare const MetricField: ({ metric, className, }: {
|
|
15
|
-
metric: IQueryResultMetric;
|
|
16
|
-
className?: string;
|
|
17
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
//# sourceMappingURL=DataTableFields.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableFields.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/report-query-plugin/components/result-cards/DataTableFields.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAG5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,eAAO,MAAM,eAAe,GAAI,oBAAoB;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,4CASvF,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,qBAAqB;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,4CAEzF,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,cAAc;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,4CAEpE,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,wBAGzB;IACD,MAAM,EAAE,kBAAkB,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,4CAYA,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FilterCondition.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/report-query-plugin/components/result-cards/FilterCondition.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,YAAY,EAEb,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AA6VvC,eAAO,MAAM,eAAe,GAAI,gBAAgB,YAAY,KAAG,SAiB9D,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FormulaOp, IQueryResultFormula } from '@baishuyun/types';
|
|
2
|
-
export interface FormulaFieldProps {
|
|
3
|
-
field: IQueryResultFormula;
|
|
4
|
-
className?: string;
|
|
5
|
-
opType?: FormulaOp;
|
|
6
|
-
}
|
|
7
|
-
export declare const FormulaField: ({ field, className, opType }: FormulaFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
//# sourceMappingURL=FormulaField.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormulaField.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/report-query-plugin/components/result-cards/FormulaField.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvE,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,mBAAmB,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,GAAI,8BAA8B,iBAAiB,4CAY3E,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { QuerySourceType } from '@baishuyun/types';
|
|
2
|
-
import { ICreatedSourceConfig } from './types';
|
|
3
|
-
export declare const PLUGIN_NAME = "ReportQueryPlugin";
|
|
4
|
-
export declare const CreatedSourceConfigMap: Record<QuerySourceType, ICreatedSourceConfig>;
|
|
5
|
-
//# sourceMappingURL=const.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../src/plugins/report-query-plugin/const.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAG/C,eAAO,MAAM,WAAW,sBAAsB,CAAC;AAE/C,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,eAAe,EAAE,oBAAoB,CAgBhF,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ChatAreaPlugin, IChatSDK, IDashForm, PluginCustomComponent, PluginHooks, PluginRegistryEntry } from '@baishuyun/types';
|
|
2
|
-
import { IReportQueryContext } from './types';
|
|
3
|
-
export declare class ReportQueryPlugin extends ChatAreaPlugin<IReportQueryContext> {
|
|
4
|
-
private _inst;
|
|
5
|
-
init?: ((sdk: IChatSDK) => void) | undefined;
|
|
6
|
-
pluginName: string;
|
|
7
|
-
customComponents?: Partial<PluginCustomComponent> | undefined;
|
|
8
|
-
lifecycleHooks?: PluginHooks | undefined;
|
|
9
|
-
getPreviewerProps: (entryId: string) => import('@baishuyun/types').IQueryResultPreviewerProps | null;
|
|
10
|
-
getCreateParams: (entryId: string) => import('@baishuyun/types').IQueryResultCreateParams | null;
|
|
11
|
-
setAppId: (appId: string) => void;
|
|
12
|
-
setForms: (forms: Array<IDashForm>) => void;
|
|
13
|
-
private clearHistoryConversation;
|
|
14
|
-
private setLoadingMsg;
|
|
15
|
-
constructor(ctx: IReportQueryContext);
|
|
16
|
-
clearCtx: () => void;
|
|
17
|
-
}
|
|
18
|
-
export declare const ReportQueryPluginEntry: PluginRegistryEntry<IReportQueryContext>;
|
|
19
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/report-query-plugin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,QAAQ,EACR,SAAS,EACT,qBAAqB,EACrB,WAAW,EACX,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAS9C,qBAAa,iBAAkB,SAAQ,cAAc,CAAC,mBAAmB,CAAC;IACxE,OAAO,CAAC,KAAK,CAAyB;IAE/B,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,QAAQ,KAAK,IAAI,CAAC,GAAG,SAAS,CAEjD;IAEK,UAAU,EAAE,MAAM,CAAe;IAEjC,gBAAgB,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,GAAG,SAAS,CAKlE;IAEK,cAAc,CAAC,EAAE,WAAW,GAAG,SAAS,CA6B7C;IAEK,iBAAiB,GAAI,SAAS,MAAM,kEAMzC;IAEK,eAAe,GAAI,SAAS,MAAM,gEAMvC;IAEK,QAAQ,GAAI,OAAO,MAAM,UAQ9B;IAEK,QAAQ,GAAI,OAAO,KAAK,CAAC,SAAS,CAAC,UAiBxC;IAEF,OAAO,CAAC,wBAAwB,CAgB9B;IAEF,OAAO,CAAC,aAAa,CAEnB;gBAEiB,GAAG,EAAE,mBAAmB;IAKpC,QAAQ,aAEb;CACH;AAED,eAAO,MAAM,sBAAsB,EAAE,mBAAmB,CAAC,mBAAmB,CAK3E,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { IDashForm, IQueryResult } from '@baishuyun/types';
|
|
2
|
-
export interface AppInfo {
|
|
3
|
-
appId: string;
|
|
4
|
-
formMap?: Map<string, IDashForm>;
|
|
5
|
-
}
|
|
6
|
-
export interface FormInfo {
|
|
7
|
-
name: string;
|
|
8
|
-
}
|
|
9
|
-
export interface IReportQueryContext {
|
|
10
|
-
appInfo?: AppInfo;
|
|
11
|
-
queryResult?: IQueryResult;
|
|
12
|
-
}
|
|
13
|
-
export interface ICreatedSourceConfig {
|
|
14
|
-
label: string;
|
|
15
|
-
color: string;
|
|
16
|
-
iconComponent: React.ComponentType;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/plugins/report-query-plugin/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAE3D,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,WAAW,CAAC,EAAE,YAAY,CAAC;CAC5B;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;CACpC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { IQueryResult, IDashComponent, IDashComponentField } from '@baishuyun/types';
|
|
2
|
-
/** 生成唯一的 widget ID */
|
|
3
|
-
export declare const generateWidgetId: () => string;
|
|
4
|
-
export interface BuildDashComponentOptions {
|
|
5
|
-
result: IQueryResult;
|
|
6
|
-
formId: string;
|
|
7
|
-
widgetId: string;
|
|
8
|
-
fields: IDashComponentField[];
|
|
9
|
-
/** 额外的属性覆盖,会合并到最终的 component 上 */
|
|
10
|
-
overrides?: Partial<IDashComponent>;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* 构建 IDashComponent 的公共逻辑,
|
|
14
|
-
* 供 queryResult2previewerProps 和 queryResult2createParams 复用。
|
|
15
|
-
*/
|
|
16
|
-
export declare const buildDashComponent: ({ result, formId, widgetId, fields, overrides, }: BuildDashComponentOptions) => IDashComponent;
|
|
17
|
-
//# sourceMappingURL=build-dash-component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build-dash-component.d.ts","sourceRoot":"","sources":["../../../../src/plugins/report-query-plugin/utils/build-dash-component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,cAAc,EACd,mBAAmB,EAEpB,MAAM,kBAAkB,CAAC;AAI1B,sBAAsB;AACtB,eAAO,MAAM,gBAAgB,QAAO,MAEnC,CAAC;AAEF,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,YAAY,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,mBAAmB,EAAE,CAAC;IAC9B,kCAAkC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;CACrC;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAAI,kDAMhC,yBAAyB,KAAG,cAwF9B,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export declare const createDefaultDashStyles: () => {
|
|
2
|
-
theme: {
|
|
3
|
-
name: string;
|
|
4
|
-
highLightColor: string;
|
|
5
|
-
palette: string;
|
|
6
|
-
gradation: string;
|
|
7
|
-
};
|
|
8
|
-
background: {
|
|
9
|
-
type: string;
|
|
10
|
-
color: string;
|
|
11
|
-
};
|
|
12
|
-
widget: {
|
|
13
|
-
theme: {
|
|
14
|
-
color: string;
|
|
15
|
-
icon: number;
|
|
16
|
-
cardName: string;
|
|
17
|
-
};
|
|
18
|
-
background: {
|
|
19
|
-
type: string;
|
|
20
|
-
color: string;
|
|
21
|
-
};
|
|
22
|
-
fontSetting: {
|
|
23
|
-
titleColor: string;
|
|
24
|
-
headColor: string;
|
|
25
|
-
textColor: string;
|
|
26
|
-
textAlign: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=create-default-dash-styles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-default-dash-styles.d.ts","sourceRoot":"","sources":["../../../../src/plugins/report-query-plugin/utils/create-default-dash-styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BlC,CAAC"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/** 创建默认样式配置 */
|
|
2
|
-
/** 创建默认的 attrList 配置 */
|
|
3
|
-
export declare const createDefaultWidgetAttrList: () => {
|
|
4
|
-
title: {
|
|
5
|
-
show: boolean;
|
|
6
|
-
text: string;
|
|
7
|
-
textStyle: {
|
|
8
|
-
color: string;
|
|
9
|
-
fontStyle: string;
|
|
10
|
-
fontSize: number;
|
|
11
|
-
fontWeight: string;
|
|
12
|
-
};
|
|
13
|
-
left: string;
|
|
14
|
-
borderColor: string;
|
|
15
|
-
borderWidth: number;
|
|
16
|
-
padding: number;
|
|
17
|
-
onBorderColor: boolean;
|
|
18
|
-
borderRadius: number;
|
|
19
|
-
backgroundColor: string;
|
|
20
|
-
};
|
|
21
|
-
orient: string;
|
|
22
|
-
legend: {
|
|
23
|
-
textStyle: {
|
|
24
|
-
fontStyle: string;
|
|
25
|
-
fontSize: number;
|
|
26
|
-
fontWeight: string;
|
|
27
|
-
};
|
|
28
|
-
itemWidth: number;
|
|
29
|
-
itemHeight: number;
|
|
30
|
-
position: string;
|
|
31
|
-
type: string;
|
|
32
|
-
padding: number;
|
|
33
|
-
};
|
|
34
|
-
itemStyle: {
|
|
35
|
-
opacity: number;
|
|
36
|
-
borderWidth: number;
|
|
37
|
-
};
|
|
38
|
-
tooltip: {
|
|
39
|
-
show: boolean;
|
|
40
|
-
triggerOn: string;
|
|
41
|
-
position: string;
|
|
42
|
-
seriesName: string;
|
|
43
|
-
formatter: string;
|
|
44
|
-
opacity: number;
|
|
45
|
-
textStyle: {
|
|
46
|
-
color: string;
|
|
47
|
-
fontStyle: string;
|
|
48
|
-
fontSize: number;
|
|
49
|
-
fontWeight: string;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
label: {
|
|
53
|
-
fontStyle: string;
|
|
54
|
-
fontWeight: string;
|
|
55
|
-
fontSize: number;
|
|
56
|
-
position: string;
|
|
57
|
-
formatter: string;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
//# sourceMappingURL=create-default-widget-attr-list.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-default-widget-attr-list.d.ts","sourceRoot":"","sources":["../../../../src/plugins/report-query-plugin/utils/create-default-widget-attr-list.ts"],"names":[],"mappings":"AAAA,eAAe;AACf,wBAAwB;AACxB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwDtC,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { FieldType, IDashComponentField, IDashComponentFilterCond, IDashWidgetType, IFilterField, IQueryResultField, IQueryResultMetric, IQueryResultXField } from '@baishuyun/types';
|
|
2
|
-
export declare const XFieldEnhance: (field: IQueryResultXField, widgetType: IDashWidgetType, index: number) => {
|
|
3
|
-
id: number;
|
|
4
|
-
icon: string;
|
|
5
|
-
group: string;
|
|
6
|
-
groupRule: import('./get-group-rule').GroupRule;
|
|
7
|
-
text: string;
|
|
8
|
-
form: string;
|
|
9
|
-
format: string;
|
|
10
|
-
name: string;
|
|
11
|
-
tag: string;
|
|
12
|
-
type: string;
|
|
13
|
-
title: string;
|
|
14
|
-
};
|
|
15
|
-
export declare const MetricEnhance: (field: IQueryResultMetric, widgetType: IDashWidgetType, index: number) => {
|
|
16
|
-
id: number;
|
|
17
|
-
text: string;
|
|
18
|
-
icon: string;
|
|
19
|
-
group: string;
|
|
20
|
-
name: string;
|
|
21
|
-
regex: string;
|
|
22
|
-
type: FieldType;
|
|
23
|
-
title: string;
|
|
24
|
-
op: import('@baishuyun/types').FormulaOp;
|
|
25
|
-
};
|
|
26
|
-
/** 将 IQueryResultField 转换为 IDashComponentField */
|
|
27
|
-
export declare const convertField: (field: IQueryResultField, formId: string, index: number) => IDashComponentField;
|
|
28
|
-
export declare const createLabelField: (formId: string) => IDashComponentField;
|
|
29
|
-
/** 将 IFilterField 转换为 IDashComponentFilterCond */
|
|
30
|
-
export declare const convertFilterField: (filter: IFilterField, formId: string) => IDashComponentFilterCond;
|
|
31
|
-
//# sourceMappingURL=field-enhance.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"field-enhance.d.ts","sourceRoot":"","sources":["../../../../src/plugins/report-query-plugin/utils/field-enhance.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,mBAAmB,EACnB,wBAAwB,EACxB,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,kBAAkB,CAAC;AAK1B,eAAO,MAAM,aAAa,GACxB,OAAO,kBAAkB,EACzB,YAAY,eAAe,EAC3B,OAAO,MAAM;;;;;;;;;;;;CAUd,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,OAAO,kBAAkB,EACzB,YAAY,eAAe,EAC3B,OAAO,MAAM;;;;;;;;;;CAYd,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,YAAY,GACvB,OAAO,iBAAiB,EACxB,QAAQ,MAAM,EACd,OAAO,MAAM,KACZ,mBAcF,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,QAAQ,MAAM,KAAG,mBAajD,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,kBAAkB,GAC7B,QAAQ,YAAY,EACpB,QAAQ,MAAM,KACb,wBAcF,CAAC"}
|
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
import { IDashWidgetType } from '@baishuyun/types';
|
|
2
|
-
declare global {
|
|
3
|
-
interface Window {
|
|
4
|
-
FX?: {
|
|
5
|
-
LimitFields: LimitFieldsConfig;
|
|
6
|
-
[key: string]: unknown;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
/** 字段原始类型 */
|
|
11
|
-
type RawFieldType = '_id' | 'text' | 'textarea' | 'number' | 'datetime' | 'radiogroup' | 'checkboxgroup' | 'combo' | 'combocheck' | 'address' | 'location' | 'user' | 'usergroup' | 'dept' | 'deptgroup' | 'image' | 'upload' | 'signature' | 'subform' | 'linkdata' | 'linkquery' | 'linkfield' | 'sn' | 'phone' | 'button' | 'dataload' | 'separator' | 'formula' | 'formula_rank' | 'formula_cumulative' | 'flowState' | 'flowstate' | 'flowdecision' | 'flownode' | 'chargers' | 'ext' | 'creator' | 'createTime' | 'updateTime' | 'flow_chargers' | 'flow_signature' | 'flow_comment' | 'innerlink_qr' | 'publiclink_qr' | 'qrcode' | 'print_operator' | 'print_time' | 'form_publink_qr' | 'assist_flowid' | 'assist_prostatus' | 'tabs' | 'flow' | 'string' | 'id' | 'region' | 'currency' | 'percentage' | 'text_filter' | 'textarea_filter' | 'combocheck_filter' | 'user_filter' | 'usergroup_filter' | 'number_filter' | 'address_filter' | 'date_filter' | 'datetime_filter' | 'datemonth_filter' | 'dateyear_filter' | 'dept_filter' | 'deptgroup_filter' | 'flowstate_filter' | 'flowdecision_filter' | 'phone_filter' | 'filelist_filter' | 'address_city_filter' | 'address_district_filter' | 'address_province_filter' | 'assist_prostatus_filter' | 'assist_flowid_filter' | 'metric_table' | 'newMap' | 'card' | 'webPage' | 'gauge_chart' | 'data_table' | 'rili' | 'pivot_table' | 'line_chart' | 'column_chart' | 'bar_chart' | 'funnel_chart' | 'area_chart' | 'pie_chart' | 'radar_chart' | 'calendar_manage' | 'data_manage' | 'multi_axes_chart' | 'map_chart' | 'description' | 'real_time' | 'filte_quick' | 'embedded_iframe' | 'base_layout_container' | 'background_table' | 'gantt' | 'gauge_imageMore';
|
|
12
|
-
/** 字段值类型(由业务逻辑计算得出) */
|
|
13
|
-
type FieldValueType = RawFieldType | string;
|
|
14
|
-
/** 字段对象 */
|
|
15
|
-
interface Field {
|
|
16
|
-
type: RawFieldType;
|
|
17
|
-
name: string;
|
|
18
|
-
[key: string]: unknown;
|
|
19
|
-
}
|
|
20
|
-
/** 限制字段配置(FX.LimitFields 的完整类型) */
|
|
21
|
-
interface LimitFieldsConfig {
|
|
22
|
-
noSingleDataRepeat: RawFieldType[];
|
|
23
|
-
noSaveValue: RawFieldType[];
|
|
24
|
-
subform: RawFieldType[];
|
|
25
|
-
systemFields: RawFieldType[];
|
|
26
|
-
dataManage: RawFieldType[];
|
|
27
|
-
dashCustomSort: RawFieldType[];
|
|
28
|
-
queryFilter: RawFieldType[];
|
|
29
|
-
sort: RawFieldType[];
|
|
30
|
-
flowQueryPaneFilter: RawFieldType[];
|
|
31
|
-
parameter: RawFieldType[];
|
|
32
|
-
filter: RawFieldType[];
|
|
33
|
-
Notifyfilter: RawFieldType[];
|
|
34
|
-
Notifyfield: RawFieldType[];
|
|
35
|
-
FlowNotifyfield: RawFieldType[];
|
|
36
|
-
list: RawFieldType[];
|
|
37
|
-
listJoin: RawFieldType[];
|
|
38
|
-
group: RawFieldType[];
|
|
39
|
-
subGroup: RawFieldType[];
|
|
40
|
-
dataLabel: RawFieldType[];
|
|
41
|
-
groupJoin: RawFieldType[];
|
|
42
|
-
subGroupJoin: RawFieldType[];
|
|
43
|
-
validate: RawFieldType[];
|
|
44
|
-
rely: RawFieldType[];
|
|
45
|
-
link: RawFieldType[];
|
|
46
|
-
brief: RawFieldType[];
|
|
47
|
-
import: RawFieldType[];
|
|
48
|
-
combodata: RawFieldType[];
|
|
49
|
-
linkData: RawFieldType[];
|
|
50
|
-
linkKey: RawFieldType[];
|
|
51
|
-
subLinkData: RawFieldType[];
|
|
52
|
-
aggregate: RawFieldType[];
|
|
53
|
-
batchEdit: RawFieldType[];
|
|
54
|
-
fileExport: RawFieldType[];
|
|
55
|
-
itemLink: RawFieldType[];
|
|
56
|
-
fieldQrcode: RawFieldType[];
|
|
57
|
-
printTemplate: RawFieldType[];
|
|
58
|
-
printTemplateCellEditField: RawFieldType[];
|
|
59
|
-
excelExport: RawFieldType[];
|
|
60
|
-
noCache: RawFieldType[];
|
|
61
|
-
ext: RawFieldType[];
|
|
62
|
-
userDept: RawFieldType[];
|
|
63
|
-
triggerWrite: RawFieldType[];
|
|
64
|
-
etlInput: RawFieldType[];
|
|
65
|
-
etlMapFormula: RawFieldType[];
|
|
66
|
-
etlDimension: RawFieldType[];
|
|
67
|
-
etlQuota: RawFieldType[];
|
|
68
|
-
etlPivot: RawFieldType[];
|
|
69
|
-
dashTableFormula: RawFieldType[];
|
|
70
|
-
dashSort: RawFieldType[];
|
|
71
|
-
dashWatermark: RawFieldType[];
|
|
72
|
-
dashTextAlignment: RawFieldType[];
|
|
73
|
-
dashDimension: RawFieldType[];
|
|
74
|
-
dashDimensions: RawFieldType[];
|
|
75
|
-
dashDimensionTime: RawFieldType[];
|
|
76
|
-
dashDimensionLAL: RawFieldType[];
|
|
77
|
-
dashQuota: RawFieldType[];
|
|
78
|
-
dashFilter: RawFieldType[];
|
|
79
|
-
dashFilters: RawFieldType[];
|
|
80
|
-
dashField: RawFieldType[];
|
|
81
|
-
dashGanttField: RawFieldType[];
|
|
82
|
-
dashFields: RawFieldType[];
|
|
83
|
-
datahelperFields: RawFieldType[];
|
|
84
|
-
dashTableField: RawFieldType[];
|
|
85
|
-
multipleField: RawFieldType[];
|
|
86
|
-
multipleFields: RawFieldType[];
|
|
87
|
-
dashCardShowField: RawFieldType[];
|
|
88
|
-
dashCardTitleField: RawFieldType[];
|
|
89
|
-
dashTableFilter: RawFieldType[];
|
|
90
|
-
triggerQuery: RawFieldType[];
|
|
91
|
-
triggerCond: RawFieldType[];
|
|
92
|
-
datahelpnews: RawFieldType[];
|
|
93
|
-
disable: RawFieldType[];
|
|
94
|
-
dashCompFilter: string[];
|
|
95
|
-
dashCompChart: string[];
|
|
96
|
-
dashRowOrderChart: string[];
|
|
97
|
-
dashTopDataChart: string[];
|
|
98
|
-
dashCustomAxisLabelChart: string[];
|
|
99
|
-
dashCustomAxisRangeChart: string[];
|
|
100
|
-
dashAxisChart: string[];
|
|
101
|
-
dashThresholds: string[];
|
|
102
|
-
dashGuideline: string[];
|
|
103
|
-
dashColors: string[];
|
|
104
|
-
dashChartLabel: string[];
|
|
105
|
-
dashLegend: string[];
|
|
106
|
-
dashChangedColors: string[];
|
|
107
|
-
dashMobileLayout: string[];
|
|
108
|
-
invisibleFieldFilter: RawFieldType[];
|
|
109
|
-
fieldVisibleFilter: RawFieldType[];
|
|
110
|
-
}
|
|
111
|
-
/** 图表类型 */
|
|
112
|
-
type ChartType = 'newMap' | 'gantt' | 'table' | 'metric_table' | 'gauge_chart' | 'data_table' | 'pivot_table' | 'line_chart' | 'column_chart' | 'bar_chart' | 'funnel_chart' | 'area_chart' | 'pie_chart' | 'radar_chart' | 'multi_axes_chart' | 'map_chart' | 'card' | 'webPage' | 'rili' | string;
|
|
113
|
-
/** 字段分组标签 */
|
|
114
|
-
type FieldGroup = 'dimension' | 'quota' | 'LALDimension' | '$dimension' | 'filter' | 'ganttshowfield' | 'n-dimension' | 't-dimension';
|
|
115
|
-
/** 函数选项 */
|
|
116
|
-
interface GetFieldGroupOptions {
|
|
117
|
-
/** 图表类型 */
|
|
118
|
-
chartType: ChartType;
|
|
119
|
-
/** FX.LimitFields 配置 */
|
|
120
|
-
limitFields: LimitFieldsConfig;
|
|
121
|
-
/**
|
|
122
|
-
* 是否为隐藏模式(控制 quota、LALDimension、$dimension 的添加)
|
|
123
|
-
* @default false
|
|
124
|
-
*/
|
|
125
|
-
isHidden?: boolean;
|
|
126
|
-
}
|
|
127
|
-
/** 获取字段值类型的函数 */
|
|
128
|
-
type GetFieldValueType = (field: Field) => FieldValueType;
|
|
129
|
-
/**
|
|
130
|
-
* 获取字段所属的分组标签列表
|
|
131
|
-
*
|
|
132
|
-
* 基于 FX.LimitFields 配置和图表类型,确定字段在仪表盘中的分组归属
|
|
133
|
-
*
|
|
134
|
-
* @param field - 字段对象,包含 type 和 name
|
|
135
|
-
* @param getValueType - 获取字段值类型的函数(对应原 _getFieldValueType)
|
|
136
|
-
* @param options - 配置选项,包含 chartType、limitFields 和 isHidden
|
|
137
|
-
* @returns 分组标签数组,表示该字段可用于哪些功能区域
|
|
138
|
-
*
|
|
139
|
-
* @example
|
|
140
|
-
* ```typescript
|
|
141
|
-
* // 基础用法
|
|
142
|
-
* const groups = getFieldGroup(
|
|
143
|
-
* { type: 'number', name: 'sales_amount' },
|
|
144
|
-
* (f) => f.type, // 简化示例,实际可能更复杂
|
|
145
|
-
* {
|
|
146
|
-
* chartType: 'gantt',
|
|
147
|
-
* limitFields: fxLimitFields,
|
|
148
|
-
* isHidden: false
|
|
149
|
-
* }
|
|
150
|
-
* );
|
|
151
|
-
* // 返回: ['dimension', '$dimension', 'quota', 'filter', 'ganttshowfield', 'n-dimension']
|
|
152
|
-
*
|
|
153
|
-
* // newMap 模式
|
|
154
|
-
* const mapGroups = getFieldGroup(
|
|
155
|
-
* { type: 'text', name: 'province' },
|
|
156
|
-
* (f) => f.type,
|
|
157
|
-
* { chartType: 'newMap', limitFields: fxLimitFields, isHidden: false }
|
|
158
|
-
* );
|
|
159
|
-
* // 返回: ['dimension', 'filter'](注意 newMap 使用 dashTableField 判断 dimension)
|
|
160
|
-
* ```
|
|
161
|
-
*/
|
|
162
|
-
export declare function getFieldGroup(field: Field, getValueType: GetFieldValueType, options: GetFieldGroupOptions): FieldGroup[];
|
|
163
|
-
/**
|
|
164
|
-
* 创建预配置的字段分组获取器
|
|
165
|
-
*
|
|
166
|
-
* 适用于在特定业务场景下复用相同的配置
|
|
167
|
-
*
|
|
168
|
-
* @param getValueType - 获取字段值类型的函数
|
|
169
|
-
* @param limitFields - FX.LimitFields 配置对象
|
|
170
|
-
* @param defaultChartType - 默认图表类型
|
|
171
|
-
* @returns 预配置的 getFieldGroup 函数
|
|
172
|
-
*
|
|
173
|
-
* @example
|
|
174
|
-
* ```typescript
|
|
175
|
-
* // 创建专用于甘特图的分组器
|
|
176
|
-
* const ganttFieldGrouper = createFieldGroupGetter(
|
|
177
|
-
* getFieldValueType,
|
|
178
|
-
* fxLimitFields,
|
|
179
|
-
* 'gantt'
|
|
180
|
-
* );
|
|
181
|
-
*
|
|
182
|
-
* // 使用(无需重复传入 chartType)
|
|
183
|
-
* const groups1 = ganttFieldGrouper({ type: 'number', name: 'progress' });
|
|
184
|
-
* const groups2 = ganttFieldGrouper({ type: 'datetime', name: 'start_date' });
|
|
185
|
-
*
|
|
186
|
-
* // 临时切换图表类型
|
|
187
|
-
* const tableGroups = ganttFieldGrouper(
|
|
188
|
-
* { type: 'combo', name: 'status' },
|
|
189
|
-
* 'table',
|
|
190
|
-
* false
|
|
191
|
-
* );
|
|
192
|
-
* ```
|
|
193
|
-
*/
|
|
194
|
-
export declare function createFieldGroupGetter(getValueType: GetFieldValueType, limitFields: LimitFieldsConfig, defaultChartType?: ChartType): (field: Field, chartType?: ChartType, isHidden?: boolean) => FieldGroup[];
|
|
195
|
-
/**
|
|
196
|
-
* 检查是否为有效的字段类型
|
|
197
|
-
*/
|
|
198
|
-
export declare function isValidFieldType(type: string): type is RawFieldType;
|
|
199
|
-
/**
|
|
200
|
-
* 检查字段是否在指定分组中
|
|
201
|
-
*/
|
|
202
|
-
export declare function fieldHasGroup(groups: FieldGroup[], targetGroup: FieldGroup): boolean;
|
|
203
|
-
export declare const GetXFieldGroupStr: (chartType: IDashWidgetType, field: {
|
|
204
|
-
type: string;
|
|
205
|
-
name: string;
|
|
206
|
-
}) => string;
|
|
207
|
-
export {};
|
|
208
|
-
//# sourceMappingURL=get-field-group.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-field-group.d.ts","sourceRoot":"","sources":["../../../../src/plugins/report-query-plugin/utils/get-field-group.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,eAAe,EAAsB,MAAM,kBAAkB,CAAC;AAIvE,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,EAAE,CAAC,EAAE;YACH,WAAW,EAAE,iBAAiB,CAAC;YAC/B,CAAC,GAAG,EAAE,MA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B,GAC5B,WAAW,eAAe,EAC1B,OAAO;IACL,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,WAcF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-field-icon.d.ts","sourceRoot":"","sources":["../../../../src/plugins/report-query-plugin/utils/get-field-icon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,aAAa;AACb,eAAO,MAAM,YAAY,GAAI,MAAM,SAAS,KAAG,MAsB9C,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { FieldType, IDashWidgetType } from '@baishuyun/types';
|
|
2
|
-
export type GroupRule = 'year_month' | 'province_city' | undefined;
|
|
3
|
-
export declare function getGroupRule(fieldType: FieldType, widgetType: IDashWidgetType): GroupRule;
|
|
4
|
-
//# sourceMappingURL=get-group-rule.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-group-rule.d.ts","sourceRoot":"","sources":["../../../../src/plugins/report-query-plugin/utils/get-group-rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAE9D,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,eAAe,GAAG,SAAS,CAAC;AAEnE,wBAAgB,YAAY,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,eAAe,GAAG,SAAS,CAgBzF"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { IQueryResult, IQueryResultPreviewerProps, IQueryResultCreateParams } from '@baishuyun/types';
|
|
2
|
-
/** 将 IQueryResult 转换为 IQueryResultPreviewerProps */
|
|
3
|
-
export declare const queryResult2previewerProps: (result: IQueryResult, entryId: string) => IQueryResultPreviewerProps;
|
|
4
|
-
export declare const queryResult2createParams: (result: IQueryResult, entryId: string) => IQueryResultCreateParams;
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/report-query-plugin/utils/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,0BAA0B,EAC1B,wBAAwB,EAEzB,MAAM,kBAAkB,CAAC;AAK1B,oDAAoD;AACpD,eAAO,MAAM,0BAA0B,GACrC,QAAQ,YAAY,EACpB,SAAS,MAAM,KACd,0BA6DF,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,QAAQ,YAAY,EACpB,SAAS,MAAM,KACd,wBA4BF,CAAC"}
|
package/dist/sdk.impl.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { ChatMessage, DeepReadonly, IChatSDK, IChatSDKOption, IEvtBus } from '@baishuyun/types';
|
|
2
|
-
import { UseChatHelpers } from '@ai-sdk/react';
|
|
3
|
-
import { ChatRequestOptions, JSONValue } from 'ai';
|
|
4
|
-
export declare class ChatSDK implements IChatSDK {
|
|
5
|
-
static instances: ChatSDK[];
|
|
6
|
-
private root;
|
|
7
|
-
private readonly Store;
|
|
8
|
-
private chatComponentReadyResolve;
|
|
9
|
-
private chatComponentReadyPromise;
|
|
10
|
-
options: IChatSDKOption;
|
|
11
|
-
eventBus: IEvtBus;
|
|
12
|
-
constructor(options: IChatSDKOption);
|
|
13
|
-
private diposePlugins;
|
|
14
|
-
private initPlugins;
|
|
15
|
-
setGlobalLoadingMessage(message?: string): void;
|
|
16
|
-
getPluginCtx<T>(pluginName: string): DeepReadonly<T> | undefined;
|
|
17
|
-
getPluginMethod<T>(pluginName: string, methodName: keyof T): T[keyof T] | undefined;
|
|
18
|
-
markChatComponentReady(): void;
|
|
19
|
-
whenChatComponentReady(): Promise<void>;
|
|
20
|
-
_sendMessage?: UseChatHelpers<ChatMessage>['sendMessage'];
|
|
21
|
-
_appendFakeBotMessage?: (text: string) => void;
|
|
22
|
-
appendBotMessage: (text: string) => Promise<void>;
|
|
23
|
-
sendMessage: (text: string, customVariable: JSONValue, options: ChatRequestOptions) => Promise<void>;
|
|
24
|
-
clearChatHistory(): void;
|
|
25
|
-
getLastBotMsg(textOnly?: boolean): ChatMessage | string | undefined;
|
|
26
|
-
getFullStyle(): string | undefined;
|
|
27
|
-
showChatArea(docked?: boolean, container?: HTMLElement): void;
|
|
28
|
-
setAuthToken(token: string): void;
|
|
29
|
-
getChatStatus(): import('@baishuyun/types').ChatStatus;
|
|
30
|
-
isChatVisible(): boolean;
|
|
31
|
-
hideChatArea(): void;
|
|
32
|
-
dockChatArea(container?: HTMLElement): void;
|
|
33
|
-
undockChatArea(): void;
|
|
34
|
-
isChatFloat(): boolean;
|
|
35
|
-
isChatDocked(): boolean;
|
|
36
|
-
showChatEntryButton(el?: HTMLElement, variant?: unknown, id?: string): void;
|
|
37
|
-
hideChatEntryButton(id?: string): void;
|
|
38
|
-
private upsertChatEntryButton;
|
|
39
|
-
removeChatEntryButton(id: string): void;
|
|
40
|
-
destroy(): void;
|
|
41
|
-
}
|
|
42
|
-
//# sourceMappingURL=sdk.impl.d.ts.map
|