@tylertech/forge-ai 0.15.3-dev.1 → 0.16.0-dev.0
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/MIGRATION.md +192 -0
- package/README.md +76 -2
- package/custom-elements.json +5757 -15411
- package/dist/_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.mjs +9 -0
- package/dist/ai-agent-info/ai-agent-info.mjs +4 -78
- package/dist/ai-agent-info/ai-agent-info2.mjs +55 -0
- package/dist/ai-agent-info/index.d.ts +1 -1
- package/dist/ai-agent-info/index.mjs +1 -5
- package/dist/ai-agent-selector/ai-agent-selector.d.ts +2 -2
- package/dist/ai-agent-selector/ai-agent-selector.mjs +4 -439
- package/dist/ai-agent-selector/ai-agent-selector2.mjs +344 -0
- package/dist/ai-agent-selector/index.mjs +1 -5
- package/dist/ai-artifact/ai-artifact.mjs +4 -39
- package/dist/ai-artifact/ai-artifact2.mjs +31 -0
- package/dist/ai-artifact/index.d.ts +1 -1
- package/dist/ai-artifact/index.mjs +1 -5
- package/dist/ai-artifact-card/ai-artifact-card.mjs +4 -142
- package/dist/ai-artifact-card/ai-artifact-card2.mjs +103 -0
- package/dist/ai-artifact-card/index.d.ts +1 -1
- package/dist/ai-artifact-card/index.mjs +1 -5
- package/dist/ai-artifact-card-group/ai-artifact-card-group.mjs +4 -137
- package/dist/ai-artifact-card-group/ai-artifact-card-group2.mjs +100 -0
- package/dist/ai-artifact-card-group/index.d.ts +1 -1
- package/dist/ai-artifact-card-group/index.mjs +1 -5
- package/dist/ai-assistant-response/ai-assistant-response.d.ts +1 -2
- package/dist/ai-assistant-response/ai-assistant-response.mjs +4 -236
- package/dist/ai-assistant-response/ai-assistant-response2.mjs +137 -0
- package/dist/ai-assistant-response/index.d.ts +1 -1
- package/dist/ai-assistant-response/index.mjs +1 -5
- package/dist/ai-canvas/ai-canvas.d.ts +3 -3
- package/dist/ai-canvas/ai-canvas.mjs +4 -95
- package/dist/ai-canvas/ai-canvas2.mjs +74 -0
- package/dist/ai-canvas/index.d.ts +1 -1
- package/dist/ai-canvas/index.mjs +1 -5
- package/dist/ai-chain-of-thought/ai-chain-of-thought.mjs +4 -45
- package/dist/ai-chain-of-thought/ai-chain-of-thought2.mjs +35 -0
- package/dist/ai-chain-of-thought/index.d.ts +5 -5
- package/dist/ai-chain-of-thought/index.mjs +6 -17
- package/dist/ai-chain-of-thought/thought-base/index.mjs +1 -5
- package/dist/ai-chain-of-thought/thought-base/thought-base.mjs +4 -43
- package/dist/ai-chain-of-thought/thought-base/thought-base2.mjs +31 -0
- package/dist/ai-chain-of-thought/thought-detail/index.mjs +1 -5
- package/dist/ai-chain-of-thought/thought-detail/thought-detail.mjs +4 -34
- package/dist/ai-chain-of-thought/thought-detail/thought-detail2.mjs +26 -0
- package/dist/ai-chain-of-thought/thought-image/index.mjs +1 -5
- package/dist/ai-chain-of-thought/thought-image/thought-image.mjs +4 -43
- package/dist/ai-chain-of-thought/thought-image/thought-image2.mjs +30 -0
- package/dist/ai-chain-of-thought/thought-search-result/index.mjs +1 -5
- package/dist/ai-chain-of-thought/thought-search-result/thought-search-result.mjs +4 -62
- package/dist/ai-chain-of-thought/thought-search-result/thought-search-result2.mjs +45 -0
- package/dist/ai-chat-header/ai-chat-header.d.ts +7 -5
- package/dist/ai-chat-header/ai-chat-header.mjs +4 -439
- package/dist/ai-chat-header/ai-chat-header2.mjs +319 -0
- package/dist/ai-chat-header/index.d.ts +2 -2
- package/dist/ai-chat-header/index.mjs +1 -5
- package/dist/ai-chat-interface/ai-chat-interface.d.ts +1 -0
- package/dist/ai-chat-interface/ai-chat-interface.mjs +4 -103
- package/dist/ai-chat-interface/ai-chat-interface2.mjs +73 -0
- package/dist/ai-chat-interface/index.mjs +1 -5
- package/dist/ai-client-message/ai-client-message.d.ts +5 -6
- package/dist/ai-client-message/ai-client-message.mjs +4 -112
- package/dist/ai-client-message/ai-client-message2.mjs +76 -0
- package/dist/ai-client-message/index.mjs +1 -5
- package/dist/ai-context-chip/ai-context-chip.d.ts +1 -1
- package/dist/ai-context-chip/ai-context-chip.mjs +4 -169
- package/dist/ai-context-chip/ai-context-chip2.mjs +113 -0
- package/dist/ai-context-chip/index.mjs +1 -5
- package/dist/ai-context-items/ai-context-items.d.ts +11 -5
- package/dist/ai-context-items/ai-context-items.mjs +4 -78
- package/dist/ai-context-items/ai-context-items2.mjs +53 -0
- package/dist/ai-context-items/index.d.ts +1 -1
- package/dist/ai-context-items/index.mjs +1 -5
- package/dist/ai-conversations-panel/ai-conversations-panel.d.ts +2 -2
- package/dist/ai-conversations-panel/ai-conversations-panel.mjs +4 -632
- package/dist/ai-conversations-panel/ai-conversations-panel2.mjs +531 -0
- package/dist/ai-conversations-panel/index.mjs +1 -5
- package/dist/ai-copy-button/ai-copy-button.mjs +4 -116
- package/dist/ai-copy-button/ai-copy-button2.mjs +88 -0
- package/dist/ai-copy-button/index.mjs +1 -5
- package/dist/ai-dialog/ai-dialog.mjs +4 -304
- package/dist/ai-dialog/ai-dialog2.mjs +237 -0
- package/dist/ai-dialog/index.d.ts +1 -1
- package/dist/ai-dialog/index.mjs +1 -5
- package/dist/ai-disclaimer/ai-disclaimer.mjs +4 -70
- package/dist/ai-disclaimer/ai-disclaimer2.mjs +46 -0
- package/dist/ai-disclaimer/index.d.ts +1 -1
- package/dist/ai-disclaimer/index.mjs +1 -5
- package/dist/ai-dropdown-menu/ai-dropdown-menu-item-group.mjs +4 -80
- package/dist/ai-dropdown-menu/ai-dropdown-menu-item-group2.mjs +51 -0
- package/dist/ai-dropdown-menu/ai-dropdown-menu-item.d.ts +5 -1
- package/dist/ai-dropdown-menu/ai-dropdown-menu-item.mjs +4 -330
- package/dist/ai-dropdown-menu/ai-dropdown-menu-item2.mjs +280 -0
- package/dist/ai-dropdown-menu/ai-dropdown-menu-separator.mjs +4 -26
- package/dist/ai-dropdown-menu/ai-dropdown-menu-separator2.mjs +19 -0
- package/dist/ai-dropdown-menu/ai-dropdown-menu.d.ts +5 -0
- package/dist/ai-dropdown-menu/ai-dropdown-menu.mjs +4 -351
- package/dist/ai-dropdown-menu/ai-dropdown-menu2.mjs +268 -0
- package/dist/ai-dropdown-menu/index.d.ts +1 -0
- package/dist/ai-dropdown-menu/index.mjs +5 -10
- package/dist/ai-dropdown-menu/navigation-controller.d.ts +9 -1
- package/dist/ai-dropdown-menu/navigation-controller.mjs +214 -204
- package/dist/ai-dropdown-menu/selection-manager.mjs +202 -182
- package/dist/ai-edit-thread/ai-edit-thread.d.ts +1 -1
- package/dist/ai-edit-thread/ai-edit-thread.mjs +4 -137
- package/dist/ai-edit-thread/ai-edit-thread2.mjs +96 -0
- package/dist/ai-edit-thread/index.d.ts +1 -1
- package/dist/ai-edit-thread/index.mjs +1 -5
- package/dist/ai-empty-state/ai-empty-state.mjs +4 -38
- package/dist/ai-empty-state/ai-empty-state2.mjs +28 -0
- package/dist/ai-empty-state/index.d.ts +1 -1
- package/dist/ai-empty-state/index.mjs +1 -5
- package/dist/ai-error-message/ai-error-message.mjs +4 -80
- package/dist/ai-error-message/ai-error-message2.mjs +62 -0
- package/dist/ai-error-message/index.mjs +1 -5
- package/dist/ai-fab/ai-fab.mjs +4 -81
- package/dist/ai-fab/ai-fab2.mjs +54 -0
- package/dist/ai-fab/index.d.ts +1 -1
- package/dist/ai-fab/index.mjs +1 -5
- package/dist/ai-file-picker/ai-file-picker.d.ts +1 -0
- package/dist/ai-file-picker/ai-file-picker.mjs +4 -224
- package/dist/ai-file-picker/ai-file-picker2.mjs +172 -0
- package/dist/ai-file-picker/index.mjs +1 -4
- package/dist/ai-gradient-container/ai-gradient-container.mjs +4 -61
- package/dist/ai-gradient-container/ai-gradient-container2.mjs +38 -0
- package/dist/ai-gradient-container/index.d.ts +1 -1
- package/dist/ai-gradient-container/index.mjs +1 -5
- package/dist/ai-icon/ai-icon.d.ts +3 -0
- package/dist/ai-icon/ai-icon.mjs +4 -71
- package/dist/ai-icon/ai-icon2.mjs +41 -0
- package/dist/ai-icon/index.d.ts +1 -1
- package/dist/ai-icon/index.mjs +1 -5
- package/dist/ai-message-thread/ai-message-thread.d.ts +4 -3
- package/dist/ai-message-thread/ai-message-thread.mjs +4 -360
- package/dist/ai-message-thread/ai-message-thread2.mjs +279 -0
- package/dist/ai-message-thread/index.mjs +1 -5
- package/dist/ai-modal/ai-modal.mjs +4 -178
- package/dist/ai-modal/ai-modal2.mjs +141 -0
- package/dist/ai-modal/index.mjs +1 -4
- package/dist/ai-prompt/ai-prompt.d.ts +10 -6
- package/dist/ai-prompt/ai-prompt.mjs +4 -534
- package/dist/ai-prompt/ai-prompt2.mjs +438 -0
- package/dist/ai-prompt/index.mjs +1 -5
- package/dist/ai-reasoning/ai-reasoning.mjs +4 -44
- package/dist/ai-reasoning/ai-reasoning2.mjs +35 -0
- package/dist/ai-reasoning/index.d.ts +2 -2
- package/dist/ai-reasoning/index.mjs +4 -8
- package/dist/ai-reasoning/reasoning-content/index.d.ts +1 -1
- package/dist/ai-reasoning/reasoning-content/index.mjs +1 -5
- package/dist/ai-reasoning/reasoning-content/reasoning-content.mjs +4 -90
- package/dist/ai-reasoning/reasoning-content/reasoning-content2.mjs +68 -0
- package/dist/ai-reasoning-header/ai-reasoning-header.d.ts +7 -1
- package/dist/ai-reasoning-header/ai-reasoning-header.mjs +4 -68
- package/dist/ai-reasoning-header/ai-reasoning-header2.mjs +51 -0
- package/dist/ai-reasoning-header/index.d.ts +1 -1
- package/dist/ai-reasoning-header/index.mjs +1 -5
- package/dist/ai-response-message/ai-response-message.mjs +4 -25
- package/dist/ai-response-message/ai-response-message2.mjs +17 -0
- package/dist/ai-response-message/index.mjs +1 -5
- package/dist/ai-response-message-toolbar/ai-response-message-toolbar.d.ts +1 -1
- package/dist/ai-response-message-toolbar/ai-response-message-toolbar.mjs +4 -230
- package/dist/ai-response-message-toolbar/ai-response-message-toolbar2.mjs +171 -0
- package/dist/ai-response-message-toolbar/index.mjs +1 -5
- package/dist/ai-sidebar/ai-sidebar.d.ts +4 -4
- package/dist/ai-sidebar/ai-sidebar.mjs +4 -256
- package/dist/ai-sidebar/ai-sidebar2.mjs +211 -0
- package/dist/ai-sidebar/index.d.ts +2 -2
- package/dist/ai-sidebar/index.mjs +1 -5
- package/dist/ai-slash-command-menu/ai-slash-command-menu.d.ts +1 -1
- package/dist/ai-slash-command-menu/ai-slash-command-menu.mjs +4 -200
- package/dist/ai-slash-command-menu/ai-slash-command-menu2.mjs +156 -0
- package/dist/ai-slash-command-menu/index.mjs +1 -5
- package/dist/ai-spinner/ai-spinner.mjs +4 -41
- package/dist/ai-spinner/ai-spinner2.mjs +29 -0
- package/dist/ai-spinner/index.d.ts +1 -1
- package/dist/ai-spinner/index.mjs +1 -5
- package/dist/ai-steps/ai-steps.mjs +4 -163
- package/dist/ai-steps/ai-steps2.mjs +133 -0
- package/dist/ai-steps/index.d.ts +1 -1
- package/dist/ai-steps/index.mjs +1 -5
- package/dist/ai-suggestions/ai-suggestions.d.ts +2 -5
- package/dist/ai-suggestions/ai-suggestions.mjs +4 -164
- package/dist/ai-suggestions/ai-suggestions2.mjs +125 -0
- package/dist/ai-suggestions/index.d.ts +2 -1
- package/dist/ai-suggestions/index.mjs +1 -5
- package/dist/ai-thinking-indicator/ai-thinking-indicator.d.ts +2 -1
- package/dist/ai-thinking-indicator/ai-thinking-indicator.mjs +4 -160
- package/dist/ai-thinking-indicator/ai-thinking-indicator2.mjs +143 -0
- package/dist/ai-thinking-indicator/index.d.ts +1 -1
- package/dist/ai-thinking-indicator/index.mjs +1 -5
- package/dist/ai-thread-actions-menu/ai-thread-actions-menu.d.ts +2 -2
- package/dist/ai-thread-actions-menu/ai-thread-actions-menu.mjs +4 -152
- package/dist/ai-thread-actions-menu/ai-thread-actions-menu2.mjs +109 -0
- package/dist/ai-thread-actions-menu/index.d.ts +1 -1
- package/dist/ai-thread-actions-menu/index.mjs +1 -5
- package/dist/ai-threads-search/ai-threads-search.d.ts +3 -4
- package/dist/ai-threads-search/ai-threads-search.mjs +4 -602
- package/dist/ai-threads-search/ai-threads-search2.mjs +495 -0
- package/dist/ai-threads-search/index.d.ts +1 -1
- package/dist/ai-threads-search/index.mjs +1 -5
- package/dist/ai-tool-call/ai-tool-call.d.ts +21 -0
- package/dist/ai-tool-call/ai-tool-call.mjs +4 -0
- package/dist/ai-tool-call/ai-tool-call2.mjs +132 -0
- package/dist/{ai-chatbot → ai-tool-call}/create-tool-renderer.d.ts +1 -1
- package/dist/ai-tool-call/create-tool-renderer.mjs +10 -0
- package/dist/ai-tool-call/index.d.ts +6 -0
- package/dist/ai-tool-call/index.mjs +5 -0
- package/dist/{ai-chatbot → ai-tool-call}/tool-canvas.d.ts +1 -1
- package/dist/ai-tool-call/tool-canvas.mjs +135 -0
- package/dist/ai-tool-call/utils.d.ts +12 -0
- package/dist/ai-tool-call/utils.mjs +20 -0
- package/dist/ai-tool-call-indicator/ai-tool-call-indicator.d.ts +1 -1
- package/dist/ai-tool-call-indicator/ai-tool-call-indicator.mjs +4 -331
- package/dist/ai-tool-call-indicator/ai-tool-call-indicator2.mjs +225 -0
- package/dist/ai-tool-call-indicator/index.mjs +1 -5
- package/dist/ai-user-message/ai-user-message.mjs +4 -151
- package/dist/ai-user-message/ai-user-message2.mjs +105 -0
- package/dist/ai-user-message/index.mjs +1 -5
- package/dist/ai-user-message-toolbar/ai-user-message-toolbar.mjs +4 -160
- package/dist/ai-user-message-toolbar/ai-user-message-toolbar2.mjs +102 -0
- package/dist/ai-user-message-toolbar/index.mjs +1 -5
- package/dist/ai-voice-input/ai-voice-input.d.ts +1 -1
- package/dist/ai-voice-input/ai-voice-input.mjs +4 -113
- package/dist/ai-voice-input/ai-voice-input2.mjs +92 -0
- package/dist/ai-voice-input/index.d.ts +1 -1
- package/dist/ai-voice-input/index.mjs +1 -5
- package/dist/core/drag-controller.mjs +196 -221
- package/dist/core/index.d.ts +3 -2
- package/dist/core/index.mjs +7 -8
- package/dist/core/overlay/index.mjs +1 -4
- package/dist/core/overlay/overlay.d.ts +1 -1
- package/dist/core/overlay/overlay.mjs +4 -180
- package/dist/core/overlay/overlay2.mjs +146 -0
- package/dist/core/popover/index.mjs +1 -4
- package/dist/core/popover/popover.mjs +4 -98
- package/dist/core/popover/popover2.mjs +71 -0
- package/dist/core/resize-controller.mjs +132 -154
- package/dist/core/tooltip/index.mjs +1 -4
- package/dist/core/tooltip/tooltip.mjs +4 -279
- package/dist/core/tooltip/tooltip2.mjs +213 -0
- package/dist/index.d.ts +45 -53
- package/dist/index.mjs +100 -214
- package/dist/jsx.d.ts +895 -0
- package/dist/tools/ai-data-table/ai-data-table.d.ts +1 -2
- package/dist/tools/ai-data-table/ai-data-table.mjs +4 -257
- package/dist/tools/ai-data-table/ai-data-table2.mjs +185 -0
- package/dist/tools/ai-data-table/index.d.ts +0 -1
- package/dist/tools/ai-data-table/index.mjs +1 -6
- package/dist/tools/ai-paginator/ai-paginator.d.ts +14 -0
- package/dist/tools/ai-paginator/ai-paginator.mjs +4 -115
- package/dist/tools/ai-paginator/ai-paginator2.mjs +90 -0
- package/dist/tools/ai-paginator/index.mjs +1 -4
- package/dist/tools/ai-steps/ai-steps.d.ts +2 -3
- package/dist/tools/ai-steps/ai-steps.mjs +4 -49
- package/dist/tools/ai-steps/ai-steps2.mjs +30 -0
- package/dist/tools/ai-steps/index.d.ts +0 -1
- package/dist/tools/ai-steps/index.mjs +1 -6
- package/dist/tools/index.d.ts +3 -3
- package/dist/tools/index.mjs +7 -12
- package/dist/types/chat.d.ts +102 -0
- package/dist/types/feature.d.ts +1 -0
- package/dist/types/file.d.ts +36 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.mjs +0 -0
- package/dist/types/thread.d.ts +14 -0
- package/dist/types/tool.d.ts +197 -0
- package/dist/utils/csv-utils.mjs +37 -57
- package/dist/utils/delete-thread-controller.d.ts +1 -1
- package/dist/utils/delete-thread-controller.mjs +48 -71
- package/dist/utils/dom.d.ts +14 -0
- package/dist/utils/dom.mjs +30 -0
- package/dist/utils/format.d.ts +9 -0
- package/dist/utils/format.mjs +27 -0
- package/dist/utils/index.d.ts +9 -6
- package/dist/utils/index.mjs +6 -16
- package/dist/utils/infinite-scroll-controller.mjs +88 -94
- package/dist/utils/keyboard-navigation-controller.mjs +62 -70
- package/dist/utils/markdown-stream-controller.mjs +48 -0
- package/dist/utils/markdown.d.ts +10 -1
- package/dist/utils/markdown.mjs +261 -40
- package/dist/utils/storage-utils.mjs +30 -24
- package/package.json +39 -103
- package/dist/ai-agent-info/ai-agent-info.scss.mjs +0 -4
- package/dist/ai-agent-selector/ai-agent-selector.scss.mjs +0 -4
- package/dist/ai-artifact/ai-artifact.scss.mjs +0 -4
- package/dist/ai-artifact-card/ai-artifact-card.scss.mjs +0 -283
- package/dist/ai-artifact-card-group/ai-artifact-card-group.scss.mjs +0 -173
- package/dist/ai-assistant-response/ai-assistant-response.scss.mjs +0 -4
- package/dist/ai-attachment/ai-attachment.d.ts +0 -39
- package/dist/ai-attachment/ai-attachment.mjs +0 -130
- package/dist/ai-attachment/ai-attachment.scss.mjs +0 -4
- package/dist/ai-attachment/index.d.ts +0 -1
- package/dist/ai-attachment/index.mjs +0 -5
- package/dist/ai-button/ai-button.d.ts +0 -21
- package/dist/ai-button/ai-button.mjs +0 -68
- package/dist/ai-button/ai-button.scss.mjs +0 -4
- package/dist/ai-button/index.d.ts +0 -1
- package/dist/ai-button/index.mjs +0 -5
- package/dist/ai-canvas/ai-canvas.scss.mjs +0 -4
- package/dist/ai-chain-of-thought/ai-chain-of-thought.scss.mjs +0 -4
- package/dist/ai-chain-of-thought/thought-base/thought-base.scss.mjs +0 -4
- package/dist/ai-chain-of-thought/thought-detail/thought-detail.scss.mjs +0 -4
- package/dist/ai-chain-of-thought/thought-image/thought-image.scss.mjs +0 -4
- package/dist/ai-chain-of-thought/thought-search-result/thought-search-result.scss.mjs +0 -4
- package/dist/ai-chat-header/ai-chat-header.scss.mjs +0 -4
- package/dist/ai-chat-interface/ai-chat-interface.scss.mjs +0 -4
- package/dist/ai-chatbot/ag-ui-adapter.d.ts +0 -24
- package/dist/ai-chatbot/ag-ui-adapter.mjs +0 -388
- package/dist/ai-chatbot/agent-adapter.d.ts +0 -310
- package/dist/ai-chatbot/agent-adapter.mjs +0 -221
- package/dist/ai-chatbot/agent-runner.d.ts +0 -41
- package/dist/ai-chatbot/agent-runner.mjs +0 -265
- package/dist/ai-chatbot/ai-chatbot-base.d.ts +0 -179
- package/dist/ai-chatbot/ai-chatbot-base.mjs +0 -684
- package/dist/ai-chatbot/ai-chatbot-tool-call.d.ts +0 -19
- package/dist/ai-chatbot/ai-chatbot-tool-call.mjs +0 -182
- package/dist/ai-chatbot/ai-chatbot-tool-call.scss.mjs +0 -4
- package/dist/ai-chatbot/ai-chatbot.d.ts +0 -196
- package/dist/ai-chatbot/ai-chatbot.mjs +0 -502
- package/dist/ai-chatbot/ai-chatbot.scss.mjs +0 -4
- package/dist/ai-chatbot/create-tool-renderer.mjs +0 -16
- package/dist/ai-chatbot/event-emitter.d.ts +0 -43
- package/dist/ai-chatbot/event-emitter.mjs +0 -81
- package/dist/ai-chatbot/file-upload-manager.d.ts +0 -27
- package/dist/ai-chatbot/file-upload-manager.mjs +0 -106
- package/dist/ai-chatbot/http-agent-with-credentials.d.ts +0 -8
- package/dist/ai-chatbot/http-agent-with-credentials.mjs +0 -14
- package/dist/ai-chatbot/index.d.ts +0 -18
- package/dist/ai-chatbot/index.mjs +0 -40
- package/dist/ai-chatbot/markdown-stream-controller.mjs +0 -50
- package/dist/ai-chatbot/message-state-controller.d.ts +0 -72
- package/dist/ai-chatbot/message-state-controller.mjs +0 -392
- package/dist/ai-chatbot/request-serialization.d.ts +0 -33
- package/dist/ai-chatbot/request-serialization.mjs +0 -31
- package/dist/ai-chatbot/tool-canvas.mjs +0 -128
- package/dist/ai-chatbot/types.d.ts +0 -582
- package/dist/ai-chatbot/utils.d.ts +0 -49
- package/dist/ai-chatbot/utils.mjs +0 -114
- package/dist/ai-chatbot-launcher/ai-chatbot-launcher.d.ts +0 -190
- package/dist/ai-chatbot-launcher/ai-chatbot-launcher.mjs +0 -986
- package/dist/ai-chatbot-launcher/ai-chatbot-launcher.scss.mjs +0 -4
- package/dist/ai-chatbot-launcher/index.d.ts +0 -1
- package/dist/ai-chatbot-launcher/index.mjs +0 -5
- package/dist/ai-client-message/ai-client-message.scss.mjs +0 -4
- package/dist/ai-confirmation-prompt/ai-confirmation-prompt.d.ts +0 -34
- package/dist/ai-confirmation-prompt/ai-confirmation-prompt.mjs +0 -134
- package/dist/ai-confirmation-prompt/ai-confirmation-prompt.scss.mjs +0 -4
- package/dist/ai-confirmation-prompt/index.d.ts +0 -1
- package/dist/ai-confirmation-prompt/index.mjs +0 -5
- package/dist/ai-context-chip/ai-context-chip.scss.mjs +0 -4
- package/dist/ai-context-items/ai-context-items.scss.mjs +0 -4
- package/dist/ai-conversations-panel/ai-conversations-panel.scss.mjs +0 -4
- package/dist/ai-copy-button/ai-copy-button.scss.mjs +0 -4
- package/dist/ai-dialog/ai-dialog.scss.mjs +0 -4
- package/dist/ai-disclaimer/ai-disclaimer.scss.mjs +0 -4
- package/dist/ai-dropdown-menu/ai-dropdown-menu-item-group.scss.mjs +0 -4
- package/dist/ai-dropdown-menu/ai-dropdown-menu-item.scss.mjs +0 -4
- package/dist/ai-dropdown-menu/ai-dropdown-menu-separator.scss.mjs +0 -4
- package/dist/ai-dropdown-menu/ai-dropdown-menu.scss.mjs +0 -4
- package/dist/ai-edit-thread/ai-edit-thread.scss.mjs +0 -4
- package/dist/ai-embedded-chat/ai-embedded-chat.d.ts +0 -64
- package/dist/ai-embedded-chat/ai-embedded-chat.mjs +0 -173
- package/dist/ai-embedded-chat/ai-embedded-chat.scss.mjs +0 -4
- package/dist/ai-embedded-chat/index.d.ts +0 -1
- package/dist/ai-embedded-chat/index.mjs +0 -5
- package/dist/ai-empty-state/ai-empty-state.scss.mjs +0 -4
- package/dist/ai-error-message/ai-error-message.scss.mjs +0 -4
- package/dist/ai-fab/ai-fab.scss.mjs +0 -4
- package/dist/ai-file-picker/ai-file-picker.scss.mjs +0 -4
- package/dist/ai-floating-chat/ai-floating-chat.d.ts +0 -53
- package/dist/ai-floating-chat/ai-floating-chat.mjs +0 -147
- package/dist/ai-floating-chat/ai-floating-chat.scss.mjs +0 -4
- package/dist/ai-floating-chat/index.d.ts +0 -1
- package/dist/ai-floating-chat/index.mjs +0 -5
- package/dist/ai-gradient-container/ai-gradient-container.scss.mjs +0 -4
- package/dist/ai-icon/ai-icon.scss.mjs +0 -4
- package/dist/ai-icon-button/ai-icon-button.d.ts +0 -19
- package/dist/ai-icon-button/ai-icon-button.mjs +0 -66
- package/dist/ai-icon-button/ai-icon-button.scss.mjs +0 -4
- package/dist/ai-icon-button/index.d.ts +0 -1
- package/dist/ai-icon-button/index.mjs +0 -5
- package/dist/ai-message-thread/ai-message-thread.scss.mjs +0 -4
- package/dist/ai-modal/ai-modal.scss.mjs +0 -4
- package/dist/ai-prompt/ai-prompt.scss.mjs +0 -4
- package/dist/ai-prompt/prompt-button/index.d.ts +0 -1
- package/dist/ai-prompt/prompt-button/index.mjs +0 -5
- package/dist/ai-prompt/prompt-button/prompt-button.d.ts +0 -16
- package/dist/ai-prompt/prompt-button/prompt-button.mjs +0 -40
- package/dist/ai-prompt/prompt-button/prompt-button.scss.mjs +0 -4
- package/dist/ai-reasoning/ai-reasoning.scss.mjs +0 -4
- package/dist/ai-reasoning/reasoning-content/reasoning-content.scss.mjs +0 -4
- package/dist/ai-reasoning-header/ai-reasoning-header.scss.mjs +0 -4
- package/dist/ai-response-message/ai-response-message.scss.mjs +0 -4
- package/dist/ai-response-message-toolbar/ai-response-message-toolbar.scss.mjs +0 -4
- package/dist/ai-sidebar/ai-sidebar.scss.mjs +0 -4
- package/dist/ai-sidebar-chat/ai-sidebar-chat.d.ts +0 -54
- package/dist/ai-sidebar-chat/ai-sidebar-chat.mjs +0 -163
- package/dist/ai-sidebar-chat/ai-sidebar-chat.scss.mjs +0 -4
- package/dist/ai-sidebar-chat/index.d.ts +0 -1
- package/dist/ai-sidebar-chat/index.mjs +0 -5
- package/dist/ai-slash-command-menu/ai-slash-command-menu.scss.mjs +0 -4
- package/dist/ai-spinner/ai-spinner.scss.mjs +0 -4
- package/dist/ai-steps/ai-steps.scss.mjs +0 -4
- package/dist/ai-suggestions/ai-suggestions.scss.mjs +0 -500
- package/dist/ai-thinking-indicator/ai-thinking-indicator.scss.mjs +0 -143
- package/dist/ai-thread-actions-menu/ai-thread-actions-menu.scss.mjs +0 -4
- package/dist/ai-threads/ai-threads.d.ts +0 -82
- package/dist/ai-threads/ai-threads.mjs +0 -343
- package/dist/ai-threads/ai-threads.scss.mjs +0 -4
- package/dist/ai-threads/index.d.ts +0 -1
- package/dist/ai-threads/index.mjs +0 -5
- package/dist/ai-threads-search/ai-threads-search.scss.mjs +0 -4
- package/dist/ai-tool-call-indicator/ai-tool-call-indicator.scss.mjs +0 -4
- package/dist/ai-user-message/ai-user-message.scss.mjs +0 -4
- package/dist/ai-user-message-toolbar/ai-user-message-toolbar.scss.mjs +0 -4
- package/dist/ai-voice-input/ai-voice-input.scss.mjs +0 -4
- package/dist/core/canvas-controller.d.ts +0 -81
- package/dist/core/canvas-controller.mjs +0 -221
- package/dist/core/chatbot-core-controller.d.ts +0 -57
- package/dist/core/chatbot-core-controller.mjs +0 -545
- package/dist/core/overlay/overlay.scss.mjs +0 -4
- package/dist/core/popover/popover.scss.mjs +0 -4
- package/dist/core/tooltip/tooltip.scss.mjs +0 -4
- package/dist/tools/ai-data-table/ai-data-table-definition.d.ts +0 -2
- package/dist/tools/ai-data-table/ai-data-table-definition.mjs +0 -43
- package/dist/tools/ai-data-table/ai-data-table.scss.mjs +0 -4
- package/dist/tools/ai-mcp-app/ai-mcp-app.d.ts +0 -70
- package/dist/tools/ai-mcp-app/ai-mcp-app.mjs +0 -589
- package/dist/tools/ai-mcp-app/ai-mcp-app.scss.mjs +0 -4
- package/dist/tools/ai-mcp-app/index.d.ts +0 -3
- package/dist/tools/ai-mcp-app/index.mjs +0 -6
- package/dist/tools/ai-mcp-app/mcp-app-bridge-controller.d.ts +0 -60
- package/dist/tools/ai-mcp-app/mcp-app-bridge-controller.mjs +0 -147
- package/dist/tools/ai-mcp-app/mcp-app-bridge-types.d.ts +0 -124
- package/dist/tools/ai-mcp-app/mcp-app-bridge.d.ts +0 -41
- package/dist/tools/ai-mcp-app/mcp-app-bridge.mjs +0 -293
- package/dist/tools/ai-mcp-app/mcp-app-context.d.ts +0 -46
- package/dist/tools/ai-mcp-app/mcp-app-context.mjs +0 -5
- package/dist/tools/ai-paginator/ai-paginator.scss.mjs +0 -4
- package/dist/tools/ai-steps/ai-steps-definition.d.ts +0 -2
- package/dist/tools/ai-steps/ai-steps-definition.mjs +0 -51
- package/dist/tools/ai-steps/ai-steps.scss.mjs +0 -4
- package/dist/utils/inert-outside.d.ts +0 -7
- package/dist/utils/inert-outside.mjs +0 -28
- package/dist/utils.d.ts +0 -32
- package/dist/utils.mjs +0 -57
- /package/dist/{ai-chatbot → utils}/markdown-stream-controller.d.ts +0 -0
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import __decorate from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.mjs";
|
|
2
|
+
import "../core/tooltip/tooltip2.mjs";
|
|
3
|
+
import { generateUniqueId, toggleState } from "../utils/dom.mjs";
|
|
4
|
+
import ai_suggestions_default from "./ai-suggestions.mjs";
|
|
5
|
+
import { LitElement, html, unsafeCSS } from "lit";
|
|
6
|
+
import { customElement, property } from "lit/decorators.js";
|
|
7
|
+
import { when } from "lit/directives/when.js";
|
|
8
|
+
//#region src/lib/ai-suggestions/ai-suggestions.ts
|
|
9
|
+
var AiSuggestionsComponentTagName = "forge-ai-suggestions";
|
|
10
|
+
var AiSuggestionsComponent = class AiSuggestionsComponent extends LitElement {
|
|
11
|
+
static {
|
|
12
|
+
this.styles = unsafeCSS(ai_suggestions_default);
|
|
13
|
+
}
|
|
14
|
+
#internals;
|
|
15
|
+
constructor() {
|
|
16
|
+
super();
|
|
17
|
+
this.suggestions = [];
|
|
18
|
+
this.variant = "inline";
|
|
19
|
+
this._suggestionState = /* @__PURE__ */ new Map();
|
|
20
|
+
this.#internals = this.attachInternals();
|
|
21
|
+
this.#setCssState();
|
|
22
|
+
}
|
|
23
|
+
willUpdate(changedProperties) {
|
|
24
|
+
if (changedProperties.has("variant")) this.#setCssState();
|
|
25
|
+
if (changedProperties.has("suggestions")) this.#syncSuggestionState();
|
|
26
|
+
}
|
|
27
|
+
updated(changedProperties) {
|
|
28
|
+
if (changedProperties.has("suggestions")) this.#checkOverflows();
|
|
29
|
+
}
|
|
30
|
+
#syncSuggestionState() {
|
|
31
|
+
const newState = /* @__PURE__ */ new Map();
|
|
32
|
+
for (const suggestion of this.suggestions) {
|
|
33
|
+
const existing = this._suggestionState.get(suggestion);
|
|
34
|
+
if (existing) newState.set(suggestion, existing);
|
|
35
|
+
else newState.set(suggestion, {
|
|
36
|
+
id: generateUniqueId("suggestion"),
|
|
37
|
+
isOverflowing: false
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
this._suggestionState = newState;
|
|
41
|
+
}
|
|
42
|
+
#checkOverflows() {
|
|
43
|
+
setTimeout(() => {
|
|
44
|
+
let hasChanges = false;
|
|
45
|
+
(this.shadowRoot?.querySelectorAll(".action-title"))?.forEach((button) => {
|
|
46
|
+
const textSpan = button.querySelector(".suggestion-text");
|
|
47
|
+
const isOverflowing = textSpan.scrollWidth > textSpan.offsetWidth;
|
|
48
|
+
const id = button.id;
|
|
49
|
+
for (const [, state] of this._suggestionState.entries()) if (state.id === id && state.isOverflowing !== isOverflowing) {
|
|
50
|
+
state.isOverflowing = isOverflowing;
|
|
51
|
+
hasChanges = true;
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
if (hasChanges) this.requestUpdate();
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
#setCssState() {
|
|
59
|
+
toggleState(this.#internals, "inline", this.variant === "inline");
|
|
60
|
+
toggleState(this.#internals, "block", this.variant === "block");
|
|
61
|
+
}
|
|
62
|
+
get #suggestionButtons() {
|
|
63
|
+
return this.suggestions?.map((suggestion) => {
|
|
64
|
+
const state = this._suggestionState.get(suggestion);
|
|
65
|
+
const id = state?.id ?? "";
|
|
66
|
+
const showTooltip = state?.isOverflowing ?? false;
|
|
67
|
+
return html`
|
|
68
|
+
<li class="forge-list-item custom-list-item">
|
|
69
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="forge-icon" aria-hidden="true">
|
|
70
|
+
<path
|
|
71
|
+
d="M9 22a1 1 0 0 1-1-1v-3H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6.1l-3.7 3.71c-.2.19-.45.29-.7.29zm1-6v3.08L13.08 16H20V4H4v12zM6 7h12v2H6zm0 4h9v2H6z" />
|
|
72
|
+
</svg>
|
|
73
|
+
<button id="${id}" class="action-title" @click=${() => this._handleSuggestionClick(suggestion)}>
|
|
74
|
+
<span class="suggestion-text">${suggestion.text}</span>
|
|
75
|
+
</button>
|
|
76
|
+
${when(showTooltip, () => html`<forge-ai-tooltip class="suggestion-tooltip" for="${id}" role="presentation">${suggestion.text}</forge-ai-tooltip>`)}
|
|
77
|
+
</li>
|
|
78
|
+
`;
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
_handleSuggestionClick(suggestion) {
|
|
82
|
+
const event = new CustomEvent("forge-ai-suggestions-select", {
|
|
83
|
+
detail: {
|
|
84
|
+
text: suggestion.text,
|
|
85
|
+
value: suggestion.value
|
|
86
|
+
},
|
|
87
|
+
bubbles: true,
|
|
88
|
+
composed: true,
|
|
89
|
+
cancelable: true
|
|
90
|
+
});
|
|
91
|
+
this.dispatchEvent(event);
|
|
92
|
+
}
|
|
93
|
+
get #inlineLayout() {
|
|
94
|
+
return html`
|
|
95
|
+
<div class="scroll-container">
|
|
96
|
+
<ul class="forge-list suggestions-inline">
|
|
97
|
+
${this.#suggestionButtons}
|
|
98
|
+
</ul>
|
|
99
|
+
</div>
|
|
100
|
+
`;
|
|
101
|
+
}
|
|
102
|
+
get #blockLayout() {
|
|
103
|
+
return html`
|
|
104
|
+
<div class="block-layout-container">
|
|
105
|
+
<ul class="forge-list forge-list--block-layout">
|
|
106
|
+
${this.#suggestionButtons}
|
|
107
|
+
</ul>
|
|
108
|
+
</div>
|
|
109
|
+
`;
|
|
110
|
+
}
|
|
111
|
+
render() {
|
|
112
|
+
return this.variant === "block" ? this.#blockLayout : this.#inlineLayout;
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
__decorate([property({
|
|
116
|
+
type: Array,
|
|
117
|
+
attribute: false
|
|
118
|
+
})], AiSuggestionsComponent.prototype, "suggestions", void 0);
|
|
119
|
+
__decorate([property({
|
|
120
|
+
type: String,
|
|
121
|
+
attribute: "variant"
|
|
122
|
+
})], AiSuggestionsComponent.prototype, "variant", void 0);
|
|
123
|
+
AiSuggestionsComponent = __decorate([customElement(AiSuggestionsComponentTagName)], AiSuggestionsComponent);
|
|
124
|
+
//#endregion
|
|
125
|
+
export { AiSuggestionsComponent, AiSuggestionsComponentTagName };
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { AiSuggestionsComponent, AiSuggestionsComponentTagName } from './ai-suggestions.js';
|
|
2
|
-
export type {
|
|
2
|
+
export type { ForgeAiSuggestionsEventData, AiSuggestionsVariant } from './ai-suggestions.js';
|
|
3
|
+
export type { Suggestion } from '../types/index.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement, TemplateResult, CSSResult } from 'lit';
|
|
1
|
+
import { LitElement, PropertyValues, TemplateResult, CSSResult } from 'lit';
|
|
2
2
|
declare global {
|
|
3
3
|
interface HTMLElementTagNameMap {
|
|
4
4
|
'forge-ai-thinking-indicator': AiThinkingIndicatorComponent;
|
|
@@ -23,5 +23,6 @@ export declare class AiThinkingIndicatorComponent extends LitElement {
|
|
|
23
23
|
cycleInterval: number;
|
|
24
24
|
connectedCallback(): void;
|
|
25
25
|
disconnectedCallback(): void;
|
|
26
|
+
updated(changedProperties: PropertyValues<this>): void;
|
|
26
27
|
render(): TemplateResult;
|
|
27
28
|
}
|
|
@@ -1,160 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __typeError = (msg) => {
|
|
7
|
-
throw TypeError(msg);
|
|
8
|
-
};
|
|
9
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
10
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
11
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12
|
-
if (decorator = decorators[i])
|
|
13
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
14
|
-
if (kind && result) __defProp(target, key, result);
|
|
15
|
-
return result;
|
|
16
|
-
};
|
|
17
|
-
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
18
|
-
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
19
|
-
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
20
|
-
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
|
|
21
|
-
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
22
|
-
var _currentMessage, _lastMessageIndex, _cycleInterval, _initialDelayTimeout, _dotsTemplate, _AiThinkingIndicatorComponent_instances, startCycling_fn, stopCycling_fn, getNextMessage_fn, statusText_get;
|
|
23
|
-
const AiThinkingIndicatorComponentTagName = "forge-ai-thinking-indicator";
|
|
24
|
-
const STATUS_MESSAGES = [
|
|
25
|
-
"Thinking...",
|
|
26
|
-
"Processing...",
|
|
27
|
-
"Reviewing...",
|
|
28
|
-
"Considering...",
|
|
29
|
-
"Evaluating...",
|
|
30
|
-
"Analyzing...",
|
|
31
|
-
"Assessing...",
|
|
32
|
-
"Auditing...",
|
|
33
|
-
"Deliberating...",
|
|
34
|
-
"Adjudicating...",
|
|
35
|
-
"Cogitating...",
|
|
36
|
-
"Ruminating...",
|
|
37
|
-
"Percolating...",
|
|
38
|
-
"Marshaling...",
|
|
39
|
-
"Collating...",
|
|
40
|
-
"Parsing...",
|
|
41
|
-
"Distilling...",
|
|
42
|
-
"Forging...",
|
|
43
|
-
"Refining...",
|
|
44
|
-
"Reconciling...",
|
|
45
|
-
"Finalizing...",
|
|
46
|
-
"Validating...",
|
|
47
|
-
"Verifying...",
|
|
48
|
-
"Contemplating...",
|
|
49
|
-
"Pondering...",
|
|
50
|
-
"Weighing...",
|
|
51
|
-
"Scrutinizing...",
|
|
52
|
-
"Examining...",
|
|
53
|
-
"Investigating...",
|
|
54
|
-
"Deducing...",
|
|
55
|
-
"Inferring...",
|
|
56
|
-
"Reasoning...",
|
|
57
|
-
"Synthesizing...",
|
|
58
|
-
"Formulating...",
|
|
59
|
-
"Compiling...",
|
|
60
|
-
"Consulting...",
|
|
61
|
-
"Cross-referencing...",
|
|
62
|
-
"Interpreting...",
|
|
63
|
-
"Untangling...",
|
|
64
|
-
"Sifting...",
|
|
65
|
-
"Triangulating..."
|
|
66
|
-
];
|
|
67
|
-
let AiThinkingIndicatorComponent = class extends LitElement {
|
|
68
|
-
constructor() {
|
|
69
|
-
super(...arguments);
|
|
70
|
-
__privateAdd(this, _AiThinkingIndicatorComponent_instances);
|
|
71
|
-
this.showText = false;
|
|
72
|
-
this.initialDelay = 0;
|
|
73
|
-
this.cycleInterval = 5e3;
|
|
74
|
-
__privateAdd(this, _currentMessage, "");
|
|
75
|
-
__privateAdd(this, _lastMessageIndex, -1);
|
|
76
|
-
__privateAdd(this, _cycleInterval);
|
|
77
|
-
__privateAdd(this, _initialDelayTimeout);
|
|
78
|
-
__privateAdd(this, _dotsTemplate, html`
|
|
79
|
-
<div class="dot dot-1"></div>
|
|
80
|
-
<div class="dot dot-2"></div>
|
|
81
|
-
<div class="dot dot-3"></div>
|
|
82
|
-
`);
|
|
83
|
-
}
|
|
84
|
-
connectedCallback() {
|
|
85
|
-
super.connectedCallback();
|
|
86
|
-
__privateMethod(this, _AiThinkingIndicatorComponent_instances, startCycling_fn).call(this);
|
|
87
|
-
}
|
|
88
|
-
disconnectedCallback() {
|
|
89
|
-
super.disconnectedCallback();
|
|
90
|
-
__privateMethod(this, _AiThinkingIndicatorComponent_instances, stopCycling_fn).call(this);
|
|
91
|
-
}
|
|
92
|
-
render() {
|
|
93
|
-
return html`
|
|
94
|
-
<div class="thinking-indicator">
|
|
95
|
-
<div class="dots-container">${__privateGet(this, _dotsTemplate)}</div>
|
|
96
|
-
${__privateGet(this, _AiThinkingIndicatorComponent_instances, statusText_get)}
|
|
97
|
-
</div>
|
|
98
|
-
`;
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
_currentMessage = /* @__PURE__ */ new WeakMap();
|
|
102
|
-
_lastMessageIndex = /* @__PURE__ */ new WeakMap();
|
|
103
|
-
_cycleInterval = /* @__PURE__ */ new WeakMap();
|
|
104
|
-
_initialDelayTimeout = /* @__PURE__ */ new WeakMap();
|
|
105
|
-
_dotsTemplate = /* @__PURE__ */ new WeakMap();
|
|
106
|
-
_AiThinkingIndicatorComponent_instances = /* @__PURE__ */ new WeakSet();
|
|
107
|
-
startCycling_fn = function() {
|
|
108
|
-
__privateSet(this, _initialDelayTimeout, window.setTimeout(() => {
|
|
109
|
-
if (this.showText) {
|
|
110
|
-
__privateMethod(this, _AiThinkingIndicatorComponent_instances, getNextMessage_fn).call(this);
|
|
111
|
-
__privateSet(this, _cycleInterval, window.setInterval(() => {
|
|
112
|
-
__privateMethod(this, _AiThinkingIndicatorComponent_instances, getNextMessage_fn).call(this);
|
|
113
|
-
}, this.cycleInterval));
|
|
114
|
-
}
|
|
115
|
-
}, this.initialDelay));
|
|
116
|
-
};
|
|
117
|
-
stopCycling_fn = function() {
|
|
118
|
-
if (__privateGet(this, _initialDelayTimeout)) {
|
|
119
|
-
clearTimeout(__privateGet(this, _initialDelayTimeout));
|
|
120
|
-
__privateSet(this, _initialDelayTimeout, void 0);
|
|
121
|
-
}
|
|
122
|
-
if (__privateGet(this, _cycleInterval)) {
|
|
123
|
-
clearInterval(__privateGet(this, _cycleInterval));
|
|
124
|
-
__privateSet(this, _cycleInterval, void 0);
|
|
125
|
-
}
|
|
126
|
-
__privateSet(this, _currentMessage, "");
|
|
127
|
-
__privateSet(this, _lastMessageIndex, -1);
|
|
128
|
-
};
|
|
129
|
-
getNextMessage_fn = function() {
|
|
130
|
-
let nextIndex;
|
|
131
|
-
do {
|
|
132
|
-
nextIndex = Math.floor(Math.random() * STATUS_MESSAGES.length);
|
|
133
|
-
} while (nextIndex === __privateGet(this, _lastMessageIndex) && STATUS_MESSAGES.length > 1);
|
|
134
|
-
__privateSet(this, _lastMessageIndex, nextIndex);
|
|
135
|
-
__privateSet(this, _currentMessage, STATUS_MESSAGES[nextIndex]);
|
|
136
|
-
this.requestUpdate();
|
|
137
|
-
};
|
|
138
|
-
statusText_get = function() {
|
|
139
|
-
if (!this.showText || !__privateGet(this, _currentMessage)) {
|
|
140
|
-
return nothing;
|
|
141
|
-
}
|
|
142
|
-
return html`<div class="status-text" aria-live="polite">${__privateGet(this, _currentMessage)}</div>`;
|
|
143
|
-
};
|
|
144
|
-
AiThinkingIndicatorComponent.styles = unsafeCSS(styles);
|
|
145
|
-
__decorateClass([
|
|
146
|
-
property({ type: Boolean, attribute: "show-text" })
|
|
147
|
-
], AiThinkingIndicatorComponent.prototype, "showText", 2);
|
|
148
|
-
__decorateClass([
|
|
149
|
-
property({ type: Number, attribute: "initial-delay" })
|
|
150
|
-
], AiThinkingIndicatorComponent.prototype, "initialDelay", 2);
|
|
151
|
-
__decorateClass([
|
|
152
|
-
property({ type: Number, attribute: "cycle-interval" })
|
|
153
|
-
], AiThinkingIndicatorComponent.prototype, "cycleInterval", 2);
|
|
154
|
-
AiThinkingIndicatorComponent = __decorateClass([
|
|
155
|
-
customElement(AiThinkingIndicatorComponentTagName)
|
|
156
|
-
], AiThinkingIndicatorComponent);
|
|
157
|
-
export {
|
|
158
|
-
AiThinkingIndicatorComponent,
|
|
159
|
-
AiThinkingIndicatorComponentTagName
|
|
160
|
-
};
|
|
1
|
+
//#region src/lib/ai-thinking-indicator/ai-thinking-indicator.scss?inline
|
|
2
|
+
var ai_thinking_indicator_default = ":host {\n --_ai-thinking-indicator-dot-color: var(--forge-ai-thinking-indicator-dot-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));\n --_ai-thinking-indicator-dot-size: var(--forge-ai-thinking-indicator-dot-size, 6px);\n --_ai-thinking-indicator-gap: var(--forge-ai-thinking-indicator-gap, var(--forge-spacing-xxsmall, 4px));\n --_ai-thinking-indicator-animation-duration: var(--forge-ai-thinking-indicator-animation-duration, 2s);\n display: inline-block;\n box-sizing: border-box;\n}\n\n.thinking-indicator {\n display: flex;\n align-items: center;\n gap: var(--forge-spacing-small, 12px);\n height: calc(var(--_ai-thinking-indicator-dot-size) * 2);\n}\n\n.dots-container {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: var(--_ai-thinking-indicator-gap);\n}\n\n.dot {\n width: var(--_ai-thinking-indicator-dot-size);\n height: var(--_ai-thinking-indicator-dot-size);\n background-color: var(--_ai-thinking-indicator-dot-color);\n border-radius: 50%;\n opacity: 0;\n transform: scale(0.8) translateY(0);\n animation: thinking-animation var(--_ai-thinking-indicator-animation-duration) ease-in-out infinite;\n}\n\n.dot-1 {\n animation-delay: 0s;\n}\n\n.dot-2 {\n animation-delay: 0.15s;\n}\n\n.dot-3 {\n animation-delay: 0.3s;\n}\n\n@keyframes thinking-animation {\n 0% {\n opacity: 0;\n transform: scale(0.8) translateY(0);\n }\n 10% {\n opacity: 1;\n transform: scale(1) translateY(0);\n }\n 20% {\n opacity: 1;\n transform: scale(1) translateY(0);\n }\n 30% {\n opacity: 1;\n transform: scale(1.2) translateY(-4px);\n }\n 40% {\n opacity: 1;\n transform: scale(1) translateY(0);\n }\n 50% {\n opacity: 1;\n transform: scale(1.1) translateY(-2px);\n }\n 60% {\n opacity: 1;\n transform: scale(1) translateY(0);\n }\n 70% {\n opacity: 1;\n transform: scale(1) translateY(0);\n }\n 80% {\n opacity: 0.7;\n transform: scale(0.9) translateY(0);\n }\n 100% {\n opacity: 0;\n transform: scale(0.8) translateY(0);\n }\n}\n.status-text {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: var(--forge-typography-body1-font-family, var(--forge-typography-font-family, \"Roboto\", sans-serif));\n font-size: var(--forge-typography-body1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 0.875)));\n font-weight: var(--forge-typography-body1-font-weight, 400);\n line-height: var(--forge-typography-body1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.125)));\n letter-spacing: var(--forge-typography-body1-letter-spacing, 0.0357142857em);\n text-transform: var(--forge-typography-body1-text-transform, inherit);\n text-decoration: var(--forge-typography-body1-text-decoration, inherit);\n color: var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6));\n user-select: none;\n white-space: nowrap;\n background: linear-gradient(90deg, var(--forge-theme-text-low, rgba(0, 0, 0, 0.38)) 0%, var(--forge-theme-text-high, rgba(0, 0, 0, 0.87)) 50%, var(--forge-theme-text-low, rgba(0, 0, 0, 0.38)) 100%);\n background-size: 200% 100%;\n background-clip: text;\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n animation: shimmer 4s ease-in-out infinite;\n}\n\n@keyframes shimmer {\n 0% {\n background-position: 200% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n}\n/* Respect user's reduced motion preference */\n@media (prefers-reduced-motion: reduce) {\n .dot {\n animation: thinking-animation-reduced var(--_ai-thinking-indicator-animation-duration) ease-in-out infinite;\n }\n @keyframes thinking-animation-reduced {\n 0%, 100% {\n opacity: 0.3;\n }\n 50% {\n opacity: 1;\n }\n }\n .status-text {\n animation: none;\n background: none;\n -webkit-text-fill-color: unset;\n color: var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6));\n }\n}";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { ai_thinking_indicator_default as default };
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import __decorate from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.mjs";
|
|
2
|
+
import ai_thinking_indicator_default from "./ai-thinking-indicator.mjs";
|
|
3
|
+
import { LitElement, html, nothing, unsafeCSS } from "lit";
|
|
4
|
+
import { customElement, property } from "lit/decorators.js";
|
|
5
|
+
//#region src/lib/ai-thinking-indicator/ai-thinking-indicator.ts
|
|
6
|
+
var AiThinkingIndicatorComponentTagName = "forge-ai-thinking-indicator";
|
|
7
|
+
var STATUS_MESSAGES = [
|
|
8
|
+
"Thinking...",
|
|
9
|
+
"Processing...",
|
|
10
|
+
"Reviewing...",
|
|
11
|
+
"Considering...",
|
|
12
|
+
"Evaluating...",
|
|
13
|
+
"Analyzing...",
|
|
14
|
+
"Assessing...",
|
|
15
|
+
"Auditing...",
|
|
16
|
+
"Deliberating...",
|
|
17
|
+
"Adjudicating...",
|
|
18
|
+
"Cogitating...",
|
|
19
|
+
"Ruminating...",
|
|
20
|
+
"Percolating...",
|
|
21
|
+
"Marshaling...",
|
|
22
|
+
"Collating...",
|
|
23
|
+
"Parsing...",
|
|
24
|
+
"Distilling...",
|
|
25
|
+
"Forging...",
|
|
26
|
+
"Refining...",
|
|
27
|
+
"Reconciling...",
|
|
28
|
+
"Finalizing...",
|
|
29
|
+
"Validating...",
|
|
30
|
+
"Verifying...",
|
|
31
|
+
"Contemplating...",
|
|
32
|
+
"Pondering...",
|
|
33
|
+
"Weighing...",
|
|
34
|
+
"Scrutinizing...",
|
|
35
|
+
"Examining...",
|
|
36
|
+
"Investigating...",
|
|
37
|
+
"Deducing...",
|
|
38
|
+
"Inferring...",
|
|
39
|
+
"Reasoning...",
|
|
40
|
+
"Synthesizing...",
|
|
41
|
+
"Formulating...",
|
|
42
|
+
"Compiling...",
|
|
43
|
+
"Consulting...",
|
|
44
|
+
"Cross-referencing...",
|
|
45
|
+
"Interpreting...",
|
|
46
|
+
"Untangling...",
|
|
47
|
+
"Sifting...",
|
|
48
|
+
"Triangulating..."
|
|
49
|
+
];
|
|
50
|
+
var AiThinkingIndicatorComponent = class AiThinkingIndicatorComponent extends LitElement {
|
|
51
|
+
constructor(..._args) {
|
|
52
|
+
super(..._args);
|
|
53
|
+
this.showText = false;
|
|
54
|
+
this.initialDelay = 0;
|
|
55
|
+
this.cycleInterval = 5e3;
|
|
56
|
+
this.#currentMessage = "";
|
|
57
|
+
this.#lastMessageIndex = -1;
|
|
58
|
+
this.#dotsTemplate = html`
|
|
59
|
+
<div class="dot dot-1"></div>
|
|
60
|
+
<div class="dot dot-2"></div>
|
|
61
|
+
<div class="dot dot-3"></div>
|
|
62
|
+
`;
|
|
63
|
+
}
|
|
64
|
+
static {
|
|
65
|
+
this.styles = unsafeCSS(ai_thinking_indicator_default);
|
|
66
|
+
}
|
|
67
|
+
#currentMessage;
|
|
68
|
+
#lastMessageIndex;
|
|
69
|
+
#cycleInterval;
|
|
70
|
+
#initialDelayTimeout;
|
|
71
|
+
#dotsTemplate;
|
|
72
|
+
connectedCallback() {
|
|
73
|
+
super.connectedCallback();
|
|
74
|
+
if (this.hasUpdated) this.#syncCycling();
|
|
75
|
+
}
|
|
76
|
+
disconnectedCallback() {
|
|
77
|
+
super.disconnectedCallback();
|
|
78
|
+
this.#stopCycling();
|
|
79
|
+
}
|
|
80
|
+
updated(changedProperties) {
|
|
81
|
+
if (changedProperties.has("showText")) this.#syncCycling();
|
|
82
|
+
}
|
|
83
|
+
#syncCycling() {
|
|
84
|
+
this.#stopCycling();
|
|
85
|
+
if (this.showText) this.#startCycling();
|
|
86
|
+
}
|
|
87
|
+
#startCycling() {
|
|
88
|
+
this.#initialDelayTimeout = window.setTimeout(() => {
|
|
89
|
+
this.#getNextMessage();
|
|
90
|
+
this.#cycleInterval = window.setInterval(() => {
|
|
91
|
+
this.#getNextMessage();
|
|
92
|
+
}, this.cycleInterval);
|
|
93
|
+
}, this.initialDelay);
|
|
94
|
+
}
|
|
95
|
+
#stopCycling() {
|
|
96
|
+
if (this.#initialDelayTimeout) {
|
|
97
|
+
clearTimeout(this.#initialDelayTimeout);
|
|
98
|
+
this.#initialDelayTimeout = void 0;
|
|
99
|
+
}
|
|
100
|
+
if (this.#cycleInterval) {
|
|
101
|
+
clearInterval(this.#cycleInterval);
|
|
102
|
+
this.#cycleInterval = void 0;
|
|
103
|
+
}
|
|
104
|
+
this.#currentMessage = "";
|
|
105
|
+
this.#lastMessageIndex = -1;
|
|
106
|
+
}
|
|
107
|
+
#getNextMessage() {
|
|
108
|
+
let nextIndex;
|
|
109
|
+
do
|
|
110
|
+
nextIndex = Math.floor(Math.random() * STATUS_MESSAGES.length);
|
|
111
|
+
while (nextIndex === this.#lastMessageIndex && STATUS_MESSAGES.length > 1);
|
|
112
|
+
this.#lastMessageIndex = nextIndex;
|
|
113
|
+
this.#currentMessage = STATUS_MESSAGES[nextIndex];
|
|
114
|
+
this.requestUpdate();
|
|
115
|
+
}
|
|
116
|
+
get #statusText() {
|
|
117
|
+
if (!this.showText || !this.#currentMessage) return nothing;
|
|
118
|
+
return html`<div class="status-text" aria-live="polite">${this.#currentMessage}</div>`;
|
|
119
|
+
}
|
|
120
|
+
render() {
|
|
121
|
+
return html`
|
|
122
|
+
<div class="thinking-indicator">
|
|
123
|
+
<div class="dots-container">${this.#dotsTemplate}</div>
|
|
124
|
+
${this.#statusText}
|
|
125
|
+
</div>
|
|
126
|
+
`;
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
__decorate([property({
|
|
130
|
+
type: Boolean,
|
|
131
|
+
attribute: "show-text"
|
|
132
|
+
})], AiThinkingIndicatorComponent.prototype, "showText", void 0);
|
|
133
|
+
__decorate([property({
|
|
134
|
+
type: Number,
|
|
135
|
+
attribute: "initial-delay"
|
|
136
|
+
})], AiThinkingIndicatorComponent.prototype, "initialDelay", void 0);
|
|
137
|
+
__decorate([property({
|
|
138
|
+
type: Number,
|
|
139
|
+
attribute: "cycle-interval"
|
|
140
|
+
})], AiThinkingIndicatorComponent.prototype, "cycleInterval", void 0);
|
|
141
|
+
AiThinkingIndicatorComponent = __decorate([customElement(AiThinkingIndicatorComponentTagName)], AiThinkingIndicatorComponent);
|
|
142
|
+
//#endregion
|
|
143
|
+
export { AiThinkingIndicatorComponent, AiThinkingIndicatorComponentTagName };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './ai-thinking-indicator';
|
|
1
|
+
export * from './ai-thinking-indicator.js';
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
AiThinkingIndicatorComponent,
|
|
4
|
-
AiThinkingIndicatorComponentTagName
|
|
5
|
-
};
|
|
1
|
+
export { AiThinkingIndicatorComponent, AiThinkingIndicatorComponentTagName } from "./ai-thinking-indicator2.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement, TemplateResult, CSSResult } from 'lit';
|
|
2
|
-
import { Thread } from '../
|
|
3
|
-
import { DropdownMenuDensity } from '../ai-dropdown-menu';
|
|
2
|
+
import { Thread } from '../types/index.js';
|
|
3
|
+
import { DropdownMenuDensity } from '../ai-dropdown-menu/index.js';
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
|
6
6
|
'forge-ai-thread-actions-menu': AiThreadActionsMenuComponent;
|
|
@@ -1,152 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import "../ai-dropdown-menu/ai-dropdown-menu-item.mjs";
|
|
6
|
-
import styles from "./ai-thread-actions-menu.scss.mjs";
|
|
7
|
-
var __defProp = Object.defineProperty;
|
|
8
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
|
-
var __typeError = (msg) => {
|
|
10
|
-
throw TypeError(msg);
|
|
11
|
-
};
|
|
12
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
13
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
14
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
15
|
-
if (decorator = decorators[i])
|
|
16
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
17
|
-
if (kind && result) __defProp(target, key, result);
|
|
18
|
-
return result;
|
|
19
|
-
};
|
|
20
|
-
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
21
|
-
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
22
|
-
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
23
|
-
var _AiThreadActionsMenuComponent_instances, handleMenuOpen_fn, handleMenuClose_fn, handleMenuKeyDown_fn, handleMenuSelect_fn, handleRenameClick_fn, handleDeleteClick_fn;
|
|
24
|
-
const AiThreadActionsMenuComponentTagName = "forge-ai-thread-actions-menu";
|
|
25
|
-
let AiThreadActionsMenuComponent = class extends LitElement {
|
|
26
|
-
constructor() {
|
|
27
|
-
super(...arguments);
|
|
28
|
-
__privateAdd(this, _AiThreadActionsMenuComponent_instances);
|
|
29
|
-
this.showRename = false;
|
|
30
|
-
this.showDelete = false;
|
|
31
|
-
this.density = "small";
|
|
32
|
-
}
|
|
33
|
-
render() {
|
|
34
|
-
return html`
|
|
35
|
-
<forge-ai-dropdown-menu
|
|
36
|
-
variant="icon-button-squared"
|
|
37
|
-
density=${this.density}
|
|
38
|
-
selection-mode="none"
|
|
39
|
-
popover-placement="bottom-start"
|
|
40
|
-
trigger-label="More actions for ${this.thread.title}"
|
|
41
|
-
@keydown=${__privateMethod(this, _AiThreadActionsMenuComponent_instances, handleMenuKeyDown_fn)}
|
|
42
|
-
@forge-ai-dropdown-menu-open=${__privateMethod(this, _AiThreadActionsMenuComponent_instances, handleMenuOpen_fn)}
|
|
43
|
-
@forge-ai-dropdown-menu-close=${__privateMethod(this, _AiThreadActionsMenuComponent_instances, handleMenuClose_fn)}
|
|
44
|
-
@click=${__privateMethod(this, _AiThreadActionsMenuComponent_instances, handleMenuSelect_fn)}>
|
|
45
|
-
<slot name="trigger-icon" slot="trigger-content">
|
|
46
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" class="forge-icon">
|
|
47
|
-
<path
|
|
48
|
-
d="M12 16a2 2 0 0 1 2 2 2 2 0 0 1-2 2 2 2 0 0 1-2-2 2 2 0 0 1 2-2m0-6a2 2 0 0 1 2 2 2 2 0 0 1-2 2 2 2 0 0 1-2-2 2 2 0 0 1 2-2m0-6a2 2 0 0 1 2 2 2 2 0 0 1-2 2 2 2 0 0 1-2-2 2 2 0 0 1 2-2" />
|
|
49
|
-
</svg>
|
|
50
|
-
</slot>
|
|
51
|
-
|
|
52
|
-
${when(
|
|
53
|
-
this.showRename,
|
|
54
|
-
() => html`
|
|
55
|
-
<forge-ai-dropdown-menu-item value="rename" @click=${__privateMethod(this, _AiThreadActionsMenuComponent_instances, handleRenameClick_fn)}>
|
|
56
|
-
<svg
|
|
57
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
58
|
-
viewBox="0 0 24 24"
|
|
59
|
-
slot="start"
|
|
60
|
-
class="forge-icon"
|
|
61
|
-
aria-hidden="true">
|
|
62
|
-
<path
|
|
63
|
-
d="m14.06 9 .94.94L5.92 19H5v-.92zm3.6-6c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z" />
|
|
64
|
-
</svg>
|
|
65
|
-
<span>Rename</span>
|
|
66
|
-
</forge-ai-dropdown-menu-item>
|
|
67
|
-
`
|
|
68
|
-
)}
|
|
69
|
-
${when(
|
|
70
|
-
this.showDelete,
|
|
71
|
-
() => html`
|
|
72
|
-
<forge-ai-dropdown-menu-item value="delete" @click=${__privateMethod(this, _AiThreadActionsMenuComponent_instances, handleDeleteClick_fn)}>
|
|
73
|
-
<svg
|
|
74
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
75
|
-
viewBox="0 0 24 24"
|
|
76
|
-
slot="start"
|
|
77
|
-
class="forge-icon"
|
|
78
|
-
aria-hidden="true">
|
|
79
|
-
<path
|
|
80
|
-
d="M9 3v1H4v2h1v13a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6h1V4h-5V3zM7 6h10v13H7zm2 2v9h2V8zm4 0v9h2V8z" />
|
|
81
|
-
</svg>
|
|
82
|
-
<span>Delete</span>
|
|
83
|
-
</forge-ai-dropdown-menu-item>
|
|
84
|
-
`
|
|
85
|
-
)}
|
|
86
|
-
</forge-ai-dropdown-menu>
|
|
87
|
-
`;
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
_AiThreadActionsMenuComponent_instances = /* @__PURE__ */ new WeakSet();
|
|
91
|
-
handleMenuOpen_fn = function() {
|
|
92
|
-
const event = new CustomEvent("forge-ai-thread-actions-menu-open", {
|
|
93
|
-
detail: { id: this.thread.id },
|
|
94
|
-
bubbles: true,
|
|
95
|
-
composed: true
|
|
96
|
-
});
|
|
97
|
-
this.dispatchEvent(event);
|
|
98
|
-
};
|
|
99
|
-
handleMenuClose_fn = function() {
|
|
100
|
-
const event = new CustomEvent("forge-ai-thread-actions-menu-close", {
|
|
101
|
-
bubbles: true,
|
|
102
|
-
composed: true
|
|
103
|
-
});
|
|
104
|
-
this.dispatchEvent(event);
|
|
105
|
-
};
|
|
106
|
-
handleMenuKeyDown_fn = function(evt) {
|
|
107
|
-
if (evt.key === "Escape") {
|
|
108
|
-
evt.stopPropagation();
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
handleMenuSelect_fn = function(evt) {
|
|
112
|
-
evt.stopPropagation();
|
|
113
|
-
};
|
|
114
|
-
handleRenameClick_fn = function() {
|
|
115
|
-
const event = new CustomEvent("forge-ai-thread-actions-menu-rename", {
|
|
116
|
-
detail: { id: this.thread.id },
|
|
117
|
-
bubbles: true,
|
|
118
|
-
composed: true
|
|
119
|
-
});
|
|
120
|
-
this.dispatchEvent(event);
|
|
121
|
-
};
|
|
122
|
-
handleDeleteClick_fn = function() {
|
|
123
|
-
const event = new CustomEvent(
|
|
124
|
-
"forge-ai-thread-actions-menu-delete-click",
|
|
125
|
-
{
|
|
126
|
-
detail: { id: this.thread.id },
|
|
127
|
-
bubbles: true,
|
|
128
|
-
composed: true
|
|
129
|
-
}
|
|
130
|
-
);
|
|
131
|
-
this.dispatchEvent(event);
|
|
132
|
-
};
|
|
133
|
-
AiThreadActionsMenuComponent.styles = unsafeCSS(styles);
|
|
134
|
-
__decorateClass([
|
|
135
|
-
property({ type: Object })
|
|
136
|
-
], AiThreadActionsMenuComponent.prototype, "thread", 2);
|
|
137
|
-
__decorateClass([
|
|
138
|
-
property({ type: Boolean, attribute: "show-rename" })
|
|
139
|
-
], AiThreadActionsMenuComponent.prototype, "showRename", 2);
|
|
140
|
-
__decorateClass([
|
|
141
|
-
property({ type: Boolean, attribute: "show-delete" })
|
|
142
|
-
], AiThreadActionsMenuComponent.prototype, "showDelete", 2);
|
|
143
|
-
__decorateClass([
|
|
144
|
-
property()
|
|
145
|
-
], AiThreadActionsMenuComponent.prototype, "density", 2);
|
|
146
|
-
AiThreadActionsMenuComponent = __decorateClass([
|
|
147
|
-
customElement(AiThreadActionsMenuComponentTagName)
|
|
148
|
-
], AiThreadActionsMenuComponent);
|
|
149
|
-
export {
|
|
150
|
-
AiThreadActionsMenuComponent,
|
|
151
|
-
AiThreadActionsMenuComponentTagName
|
|
152
|
-
};
|
|
1
|
+
//#region src/lib/ai-thread-actions-menu/ai-thread-actions-menu.scss?inline
|
|
2
|
+
var ai_thread_actions_menu_default = "/**\n * @license\n * Copyright Tyler Technologies, Inc.\n * License: Apache-2.0\n */\n.forge-icon {\n --_icon-color:var(--forge-icon-color, currentColor);\n --_icon-size:var(--forge-icon-size, 1em);\n --_icon-width:var(--forge-icon-width, var(--_icon-size));\n --_icon-height:var(--forge-icon-height, var(--_icon-size));\n --_icon-font-size:var(--forge-icon-font-size, calc(var(--forge-typography-font-size, 1rem) * 1.5));\n}\n\nimg.forge-icon, svg.forge-icon {\n display: inline-block;\n box-sizing: content-box;\n contain: content;\n font-size: var(--_icon-font-size);\n display: inline-block;\n}\n\nimg.forge-icon {\n width: var(--_icon-width);\n height: var(--_icon-height);\n}\n\nsvg {\n width: var(--_icon-width);\n height: var(--_icon-height);\n display: block;\n fill: var(--_icon-color);\n stroke: var(--_icon-color);\n stroke-width: 0;\n}\n\n:host {\n display: flex;\n}\n\nforge-ai-dropdown-menu {\n display: flex;\n}\n\n.forge-icon {\n color: var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6));\n}\n\nforge-ai-dropdown-menu-item[value=delete] {\n color: var(--forge-theme-error, #b00020);\n --forge-state-layer-color: var(--forge-theme-error, #b00020);\n --forge-focus-indicator-color: var(--forge-theme-error, #b00020);\n --forge-icon-color: var(--forge-theme-error, #b00020);\n}";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { ai_thread_actions_menu_default as default };
|