@rtc-agent/component 0.2.7-rc.4 → 0.2.8-rc.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/README.md +109 -13
- package/dist/.generated/locales/en-US.d.ts +55 -7
- package/dist/.generated/locales/en-US.d.ts.map +1 -1
- package/dist/assets/{shared-worker-BQv441O7.js → shared-worker-CXyjL7E6.js} +210 -210
- package/dist/components/activity-bar/rtc-activity-bar.d.ts +23 -21
- package/dist/components/activity-bar/rtc-activity-bar.d.ts.map +1 -1
- package/dist/components/activity-bar/rtc-activity-bar.styles.d.ts +2 -2
- package/dist/components/chat-layout/rtc-chat-layout.d.ts +87 -80
- package/dist/components/chat-layout/rtc-chat-layout.d.ts.map +1 -1
- package/dist/components/chat-layout/rtc-chat-layout.styles.d.ts +5 -5
- package/dist/components/content-area/rtc-error-message.d.ts +1 -1
- package/dist/components/content-area/rtc-message-more-menu.d.ts +4 -4
- package/dist/components/content-area/rtc-message-more-menu.d.ts.map +1 -1
- package/dist/components/content-area/rtc-message.d.ts +82 -76
- package/dist/components/content-area/rtc-message.d.ts.map +1 -1
- package/dist/components/content-area/rtc-message.styles.d.ts.map +1 -1
- package/dist/components/content-area/rtc-toolcall-card.d.ts +10 -5
- package/dist/components/content-area/rtc-toolcall-card.d.ts.map +1 -1
- package/dist/components/content-area/rtc-toolcall-card.styles.d.ts.map +1 -1
- package/dist/components/content-area/rtc-toolcall-reply.d.ts +12 -0
- package/dist/components/content-area/rtc-toolcall-reply.d.ts.map +1 -1
- package/dist/components/content-area/rtc-toolcall-reply.styles.d.ts.map +1 -1
- package/dist/components/content-area/rtc-user-message.d.ts +10 -10
- package/dist/components/drawer/rtc-drawer.d.ts +29 -27
- package/dist/components/drawer/rtc-drawer.d.ts.map +1 -1
- package/dist/components/drawer/rtc-drawer.styles.d.ts +9 -9
- package/dist/components/editor-area/rtc-editor-area.d.ts +29 -29
- package/dist/components/editor-area/rtc-editor-area.d.ts.map +1 -1
- package/dist/components/editor-area/rtc-editor-area.styles.d.ts +3 -3
- package/dist/components/editor-area/rtc-editor-tab.d.ts +27 -27
- package/dist/components/editor-area/rtc-editor-tab.d.ts.map +1 -1
- package/dist/components/editor-area/rtc-editor-tab.styles.d.ts +3 -3
- package/dist/components/editor-area/rtc-editor-toolbar.d.ts +19 -19
- package/dist/components/editor-area/rtc-editor-toolbar.d.ts.map +1 -1
- package/dist/components/editor-area/rtc-editor-toolbar.styles.d.ts +3 -3
- package/dist/components/file-explorer/rtc-file-explorer.d.ts +28 -28
- package/dist/components/file-explorer/rtc-file-explorer.d.ts.map +1 -1
- package/dist/components/file-explorer/rtc-file-explorer.styles.d.ts +3 -3
- package/dist/components/file-explorer/rtc-file-tree-item.d.ts +19 -19
- package/dist/components/file-explorer/rtc-file-tree-item.d.ts.map +1 -1
- package/dist/components/file-explorer/rtc-file-tree-item.styles.d.ts +3 -3
- package/dist/components/function-console/rtc-function-console.d.ts +32 -0
- package/dist/components/function-console/rtc-function-console.d.ts.map +1 -0
- package/dist/components/function-console/rtc-function-console.styles.d.ts +8 -0
- package/dist/components/function-console/rtc-function-console.styles.d.ts.map +1 -0
- package/dist/components/function-debugger/rtc-function-debugger.d.ts +39 -0
- package/dist/components/function-debugger/rtc-function-debugger.d.ts.map +1 -0
- package/dist/components/function-debugger/rtc-function-debugger.styles.d.ts +8 -0
- package/dist/components/function-debugger/rtc-function-debugger.styles.d.ts.map +1 -0
- package/dist/components/function-history/rtc-function-history.d.ts +49 -0
- package/dist/components/function-history/rtc-function-history.d.ts.map +1 -0
- package/dist/components/function-history/rtc-function-history.styles.d.ts +8 -0
- package/dist/components/function-history/rtc-function-history.styles.d.ts.map +1 -0
- package/dist/components/function-params/rtc-function-params.d.ts +29 -0
- package/dist/components/function-params/rtc-function-params.d.ts.map +1 -0
- package/dist/components/function-params/rtc-function-params.styles.d.ts +8 -0
- package/dist/components/function-params/rtc-function-params.styles.d.ts.map +1 -0
- package/dist/components/function-tree/rtc-function-tree.d.ts +59 -0
- package/dist/components/function-tree/rtc-function-tree.d.ts.map +1 -0
- package/dist/components/function-tree/rtc-function-tree.styles.d.ts +2 -0
- package/dist/components/function-tree/rtc-function-tree.styles.d.ts.map +1 -0
- package/dist/components/functions-layout/rtc-functions-layout.d.ts +45 -0
- package/dist/components/functions-layout/rtc-functions-layout.d.ts.map +1 -0
- package/dist/components/functions-layout/rtc-functions-layout.styles.d.ts +8 -0
- package/dist/components/functions-layout/rtc-functions-layout.styles.d.ts.map +1 -0
- package/dist/components/input-area/rtc-input-area.d.ts +15 -15
- package/dist/components/input-area/rtc-input-area.d.ts.map +1 -1
- package/dist/components/login/rtc-login-page.d.ts +8 -8
- package/dist/components/markdown-editor/rtc-markdown-editor.d.ts +23 -19
- package/dist/components/markdown-editor/rtc-markdown-editor.d.ts.map +1 -1
- package/dist/components/overlay/rtc-command-panel.d.ts.map +1 -1
- package/dist/components/overlay/rtc-export-dialog.d.ts +59 -0
- package/dist/components/overlay/rtc-export-dialog.d.ts.map +1 -0
- package/dist/components/overlay/rtc-export-dialog.styles.d.ts +11 -0
- package/dist/components/overlay/rtc-export-dialog.styles.d.ts.map +1 -0
- package/dist/components/overlay/rtc-scenario-panel.d.ts +1 -1
- package/dist/components/overlay/rtc-scenario-panel.d.ts.map +1 -1
- package/dist/components/overlay/rtc-session-panel.d.ts +1 -1
- package/dist/components/overlay/rtc-session-panel.d.ts.map +1 -1
- package/dist/components/overlay/rtc-toast.d.ts +8 -8
- package/dist/components/rtc-agent/helpers/bus-handler.d.ts +32 -1
- package/dist/components/rtc-agent/helpers/bus-handler.d.ts.map +1 -1
- package/dist/components/rtc-agent/helpers/command-handler.d.ts +8 -0
- package/dist/components/rtc-agent/helpers/command-handler.d.ts.map +1 -1
- package/dist/components/rtc-agent/helpers/connection-setup.d.ts +5 -8
- package/dist/components/rtc-agent/helpers/connection-setup.d.ts.map +1 -1
- package/dist/components/rtc-agent/helpers/dialog-helpers.d.ts +12 -0
- package/dist/components/rtc-agent/helpers/dialog-helpers.d.ts.map +1 -1
- package/dist/components/rtc-agent/helpers/session-loader.d.ts +2 -0
- package/dist/components/rtc-agent/helpers/session-loader.d.ts.map +1 -1
- package/dist/components/rtc-agent/helpers/vfs-operations.d.ts +22 -3
- package/dist/components/rtc-agent/helpers/vfs-operations.d.ts.map +1 -1
- package/dist/components/rtc-agent/rtc-agent.d.ts +22 -47
- package/dist/components/rtc-agent/rtc-agent.d.ts.map +1 -1
- package/dist/components/session-tree/rtc-session-tab-bar.d.ts +8 -8
- package/dist/components/session-tree/rtc-session-tab-bar.d.ts.map +1 -1
- package/dist/components/session-tree/rtc-session-tab-bar.styles.d.ts +5 -5
- package/dist/components/session-tree/rtc-session-tab.d.ts +6 -6
- package/dist/components/session-tree/rtc-session-tab.d.ts.map +1 -1
- package/dist/components/session-tree/rtc-session-tab.styles.d.ts +6 -6
- package/dist/components/session-tree/rtc-session-tree-item.d.ts +10 -10
- package/dist/components/session-tree/rtc-session-tree-item.d.ts.map +1 -1
- package/dist/components/session-tree/rtc-session-tree-item.styles.d.ts +6 -6
- package/dist/components/session-tree/rtc-session-tree.d.ts +15 -15
- package/dist/components/session-tree/rtc-session-tree.d.ts.map +1 -1
- package/dist/components/session-tree/rtc-session-tree.styles.d.ts +5 -5
- package/dist/components/settings-layout/rtc-settings-layout.d.ts +23 -23
- package/dist/components/settings-layout/rtc-settings-layout.d.ts.map +1 -1
- package/dist/components/settings-layout/rtc-settings-layout.styles.d.ts +3 -3
- package/dist/components/settings-layout/rtc-settings-nav.d.ts +17 -17
- package/dist/components/settings-layout/rtc-settings-nav.d.ts.map +1 -1
- package/dist/components/settings-layout/rtc-settings-nav.styles.d.ts +2 -2
- package/dist/components/status-bar/rtc-status-bar.d.ts +10 -10
- package/dist/components/status-bar/rtc-status-bar.d.ts.map +1 -1
- package/dist/components/status-bar/rtc-status-bar.styles.d.ts +5 -5
- package/dist/components/title-bar/rtc-title-bar.d.ts +4 -4
- package/dist/components/title-bar/rtc-title-bar.d.ts.map +1 -1
- package/dist/components/token-usage/rtc-token-usage.d.ts +21 -21
- package/dist/components/token-usage/rtc-token-usage.d.ts.map +1 -1
- package/dist/config/auth.d.ts +12 -6
- package/dist/config/auth.d.ts.map +1 -1
- package/dist/contexts/activity.d.ts +13 -13
- package/dist/contexts/activity.d.ts.map +1 -1
- package/dist/contexts/auth.d.ts +5 -4
- package/dist/contexts/auth.d.ts.map +1 -1
- package/dist/contexts/editor.d.ts +13 -13
- package/dist/contexts/editor.d.ts.map +1 -1
- package/dist/contexts/file-explorer.d.ts +15 -15
- package/dist/contexts/file-explorer.d.ts.map +1 -1
- package/dist/contexts/function-debug.d.ts +52 -0
- package/dist/contexts/function-debug.d.ts.map +1 -0
- package/dist/contexts/functions.d.ts +43 -0
- package/dist/contexts/functions.d.ts.map +1 -0
- package/dist/contexts/message.d.ts +3 -3
- package/dist/contexts/notification.d.ts +4 -4
- package/dist/contexts/notification.d.ts.map +1 -1
- package/dist/contexts/settings.d.ts +2 -2
- package/dist/contexts/skill.d.ts +5 -5
- package/dist/contexts/skill.d.ts.map +1 -1
- package/dist/contexts/turn-count.d.ts +7 -7
- package/dist/controllers/activity.controller.d.ts +11 -11
- package/dist/controllers/activity.controller.d.ts.map +1 -1
- package/dist/controllers/auth.controller.d.ts +5 -0
- package/dist/controllers/auth.controller.d.ts.map +1 -1
- package/dist/controllers/editor-area.controller.d.ts +42 -41
- package/dist/controllers/editor-area.controller.d.ts.map +1 -1
- package/dist/controllers/editor.controller.d.ts +3 -3
- package/dist/controllers/event-binding.controller.d.ts +204 -0
- package/dist/controllers/event-binding.controller.d.ts.map +1 -0
- package/dist/controllers/file-explorer.controller.d.ts +6 -6
- package/dist/controllers/function-debug.controller.d.ts +67 -0
- package/dist/controllers/function-debug.controller.d.ts.map +1 -0
- package/dist/controllers/functions.controller.d.ts +31 -0
- package/dist/controllers/functions.controller.d.ts.map +1 -0
- package/dist/controllers/message.controller.d.ts +11 -1
- package/dist/controllers/message.controller.d.ts.map +1 -1
- package/dist/controllers/notification.controller.d.ts +34 -30
- package/dist/controllers/notification.controller.d.ts.map +1 -1
- package/dist/controllers/persistence.controller.d.ts +31 -14
- package/dist/controllers/persistence.controller.d.ts.map +1 -1
- package/dist/controllers/session-tab.controller.d.ts +32 -29
- package/dist/controllers/session-tab.controller.d.ts.map +1 -1
- package/dist/controllers/session-tree.controller.d.ts +10 -10
- package/dist/controllers/session-tree.controller.d.ts.map +1 -1
- package/dist/controllers/session.controller.d.ts +6 -6
- package/dist/controllers/settings.controller.d.ts +1 -1
- package/dist/controllers/skill.controller.d.ts +21 -21
- package/dist/controllers/skill.controller.d.ts.map +1 -1
- package/dist/controllers/status-bar.controller.d.ts +11 -11
- package/dist/controllers/toast.controller.d.ts.map +1 -1
- package/dist/controllers/tool-call.controller.d.ts +4 -4
- package/dist/controllers/window-interaction.controller.d.ts +14 -12
- package/dist/controllers/window-interaction.controller.d.ts.map +1 -1
- package/dist/controllers/window-state.controller.d.ts +5 -5
- package/dist/controllers/window-state.controller.d.ts.map +1 -1
- package/dist/core/builtin-system-group.d.ts +26 -19
- package/dist/core/builtin-system-group.d.ts.map +1 -1
- package/dist/core/event-bus.d.ts +31 -31
- package/dist/core/function-registry.d.ts +82 -71
- package/dist/core/function-registry.d.ts.map +1 -1
- package/dist/core/i18n.d.ts +2 -2
- package/dist/core/locale-controller.d.ts +2 -2
- package/dist/core/markdown-generator.d.ts +20 -10
- package/dist/core/markdown-generator.d.ts.map +1 -1
- package/dist/core/ready.d.ts +9 -9
- package/dist/core/scenario-loader.d.ts +29 -25
- package/dist/core/scenario-loader.d.ts.map +1 -1
- package/dist/elements.d.ts +6 -6
- package/dist/{en-US-BK61Z8gy.js → en-US-DGPo7Pzk.js} +56 -8
- package/dist/factory.d.ts.map +1 -1
- package/dist/{highlight-languages-8EK0uwTA.js → highlight-languages-BStkA3vP.js} +1 -1
- package/dist/icons/logo.d.ts +5 -5
- package/dist/{index-Bd4j91y1.js → index-c20k11wZ.js} +28078 -23840
- package/dist/index.d.ts +17 -15
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +39 -36
- package/dist/index.umd.js +3277 -1094
- package/dist/master-lock.d.ts +27 -27
- package/dist/master-lock.d.ts.map +1 -1
- package/dist/stats.html +1 -1
- package/dist/types/activity-bar-config.d.ts +14 -14
- package/dist/types/activity-bar-config.d.ts.map +1 -1
- package/dist/types/agent-config.d.ts +18 -18
- package/dist/types/agent-config.d.ts.map +1 -1
- package/dist/types/events.d.ts +75 -19
- package/dist/types/events.d.ts.map +1 -1
- package/dist/types/factory.d.ts +13 -5
- package/dist/types/factory.d.ts.map +1 -1
- package/dist/types/functions-debug.d.ts +48 -0
- package/dist/types/functions-debug.d.ts.map +1 -0
- package/dist/types/index.d.ts +97 -102
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/skill.d.ts +95 -83
- package/dist/types/skill.d.ts.map +1 -1
- package/dist/types/window-config.d.ts +37 -37
- package/dist/types/window-config.d.ts.map +1 -1
- package/dist/utils/clipboard.d.ts +6 -6
- package/dist/utils/command-parser.d.ts +9 -9
- package/dist/utils/command-parser.d.ts.map +1 -1
- package/dist/utils/highlight-languages.d.ts +3 -3
- package/dist/utils/relative-time.d.ts +7 -7
- package/dist/utils/session-exporter.d.ts +65 -0
- package/dist/utils/session-exporter.d.ts.map +1 -0
- package/dist/utils/skeleton-tracker.d.ts +56 -56
- package/dist/utils/skeleton-tracker.d.ts.map +1 -1
- package/dist/utils/visibility-manager.d.ts +42 -42
- package/dist/utils/visibility-manager.d.ts.map +1 -1
- package/dist/validation/index.d.ts +16 -16
- package/dist/validation/index.d.ts.map +1 -1
- package/dist/validation/openapi-to-zod.d.ts +5 -5
- package/dist/validation/zod-to-openapi.d.ts +24 -14
- package/dist/validation/zod-to-openapi.d.ts.map +1 -1
- package/dist/worker-bridge.d.ts +11 -0
- package/dist/worker-bridge.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rtc-editor-area.d.ts","sourceRoot":"","sources":["../../../src/components/editor-area/rtc-editor-area.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,OAAO,EAAC,UAAU,EAAgB,MAAM,KAAK,CAAC;AAM9C,OAAO,KAAK,EAAC,SAAS,EAAE,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAQpE,OAAO,qBAAqB,CAAC;AAC7B,OAAO,yBAAyB,CAAC;AACjC,OAAO,2CAA2C,CAAC;AAKnD,
|
|
1
|
+
{"version":3,"file":"rtc-editor-area.d.ts","sourceRoot":"","sources":["../../../src/components/editor-area/rtc-editor-area.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,OAAO,EAAC,UAAU,EAAgB,MAAM,KAAK,CAAC;AAM9C,OAAO,KAAK,EAAC,SAAS,EAAE,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAQpE,OAAO,qBAAqB,CAAC;AAC7B,OAAO,yBAAyB,CAAC;AACjC,OAAO,2CAA2C,CAAC;AAKnD,4CAA4C;AAC5C,KAAK,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtD,qBAEa,aAAc,SAAQ,UAAU;IACzC,MAAM,CAAC,MAAM,4BAAuD;IAMpE,OAAO,CAAC,UAAU,CAMhB;IAIF,6BAA6B;IAE7B,IAAI,EAAE,SAAS,EAAE,CAAM;IAEvB,+BAA+B;IAE/B,cAAc,SAAM;IAEpB,YAAY;IAEZ,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAY;IAI9C,mCAAmC;IACnC,OAAO,KAAK,UAAU,GAErB;IAED,gFAAgF;IAChF,OAAO,KAAK,QAAQ,GAEnB;IAED;;;;OAIG;IACH,OAAO,KAAK,WAAW,GAMtB;IAID,OAAO,CAAC,gBAAgB;IAWxB,OAAO,CAAC,eAAe;IAavB,OAAO,CAAC,WAAW;IAWnB,OAAO,CAAC,WAAW;IASnB,OAAO,CAAC,WAAW;IASnB,OAAO,CAAC,aAAa;IAWrB,OAAO,CAAC,qBAAqB;IAe7B,OAAO,CAAC,qBAAqB;IAa7B,OAAO,CAAC,oBAAoB;IAe5B,OAAO,CAAC,iBAAiB;IAazB,OAAO,CAAC,WAAW;IAoBnB,OAAO,CAAC,cAAc;IAuBtB,OAAO,CAAC,aAAa;IAgBrB,OAAO,CAAC,cAAc;IAUtB;;OAEG;IACH,OAAO,CAAC,YAAY;IAOpB,MAAM;CAQT;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,iBAAiB,EAAE,aAAa,CAAC;KACpC;IAED,UAAU,mBAAmB;QACzB,kBAAkB,EAAE,WAAW,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAA;SAAC,CAAC,CAAC;QACpD,kBAAkB,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;QACtC,kBAAkB,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;QACtC,oBAAoB,EAAE,WAAW,CAAC;YAAC,MAAM,EAAE,UAAU,CAAA;SAAC,CAAC,CAAC;QACxD,8BAA8B,EAAE,WAAW,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,cAAc,CAAA;SAAC,CAAC,CAAC;QAC1F,4BAA4B,EAAE,WAAW,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAC,CAAC,CAAC;QAC/E,wBAAwB,EAAE,WAAW,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAA;SAAC,CAAC,CAAC;QAC1D,uBAAuB,EAAE,WAAW,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAA;SAAC,CAAC,CAAC;QACzD,yBAAyB,EAAE,WAAW,CAAC;YAAC,IAAI,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAC,CAAC,CAAC;QACvE,6BAA6B,EAAE,WAAW,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAA;SAAC,CAAC,CAAC;KAClE;CACJ"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Editor Area
|
|
2
|
+
* Editor Area styles
|
|
3
3
|
*
|
|
4
|
-
* VS Code
|
|
5
|
-
*
|
|
4
|
+
* VS Code-style editor area container.
|
|
5
|
+
* Colors use project Tokens to ensure dual-theme adaptation.
|
|
6
6
|
*/
|
|
7
7
|
export declare const styles: import("lit").CSSResult;
|
|
8
8
|
//# sourceMappingURL=rtc-editor-area.styles.d.ts.map
|
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Editor Tab Component
|
|
3
3
|
*
|
|
4
|
-
* VS Code
|
|
4
|
+
* VS Code-style editor tab.
|
|
5
5
|
*
|
|
6
|
-
* -
|
|
7
|
-
* -
|
|
8
|
-
* -
|
|
9
|
-
* -
|
|
6
|
+
* - Shows file icon (by extension) + file name + close button
|
|
7
|
+
* - Active state: 1px accent indicator bar at the top
|
|
8
|
+
* - Dirty state: shows a dot when unsaved, switches to close button on hover
|
|
9
|
+
* - Long file names truncated with ellipsis
|
|
10
10
|
*
|
|
11
|
-
* ARIA: roving tabindex —
|
|
12
|
-
*
|
|
11
|
+
* ARIA: roving tabindex — active tab has tabindex=0, others -1.
|
|
12
|
+
* Arrow Left/Right moves focus between tabs, Home/End jumps to first/last tab.
|
|
13
13
|
*
|
|
14
14
|
* @element rtc-editor-tab
|
|
15
|
-
* @fires editor-tab-select -
|
|
16
|
-
* @fires editor-tab-close -
|
|
15
|
+
* @fires editor-tab-select - Fired when tab is clicked to switch (detail: { filePath })
|
|
16
|
+
* @fires editor-tab-close - Fired when close button is clicked (detail: { filePath })
|
|
17
17
|
*
|
|
18
|
-
* ##
|
|
19
|
-
*
|
|
18
|
+
* ## Styles
|
|
19
|
+
* Uses project design tokens (--rtc-color-*), supports light/dark themes.
|
|
20
20
|
*/
|
|
21
21
|
import { LitElement } from 'lit';
|
|
22
22
|
export declare class RtcEditorTab extends LitElement {
|
|
23
23
|
static styles: import("lit").CSSResult[];
|
|
24
24
|
private _localeCtx;
|
|
25
|
-
/**
|
|
25
|
+
/** File path (unique identifier) */
|
|
26
26
|
filePath: string;
|
|
27
|
-
/**
|
|
27
|
+
/** File name (for display, without path) */
|
|
28
28
|
fileName: string;
|
|
29
|
-
/**
|
|
29
|
+
/** Whether this is the active tab */
|
|
30
30
|
active: boolean;
|
|
31
|
-
/**
|
|
31
|
+
/** Whether there are unsaved changes */
|
|
32
32
|
dirty: boolean;
|
|
33
|
-
/**
|
|
33
|
+
/** Theme (inherited from parent) */
|
|
34
34
|
theme: 'light' | 'dark' | 'system';
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Click tab -> toggle active state
|
|
37
37
|
*/
|
|
38
38
|
private _handleSelect;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Click close button -> close tab
|
|
41
41
|
*
|
|
42
|
-
* stopPropagation
|
|
42
|
+
* stopPropagation prevents bubbling to the tab's select event.
|
|
43
43
|
*/
|
|
44
44
|
private _handleClose;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Keyboard event handler
|
|
47
47
|
*
|
|
48
|
-
* - Enter/Space
|
|
49
|
-
* -
|
|
50
|
-
* - Home/End
|
|
48
|
+
* - Enter/Space: select current tab
|
|
49
|
+
* - Arrow Left/Right: move focus between sibling tabs (roving tabindex)
|
|
50
|
+
* - Home/End: jump to first/last tab
|
|
51
51
|
*/
|
|
52
52
|
private _handleKeydown;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Get list of sibling tabs (in parent container's light DOM)
|
|
55
55
|
*/
|
|
56
56
|
private _getSiblingTabs;
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* Focus this tab (called by sibling tabs or parent during keyboard navigation)
|
|
59
59
|
*/
|
|
60
60
|
focusTab(): void;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Returns the appropriate icon based on file extension
|
|
63
63
|
*/
|
|
64
64
|
private _getFileIcon;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* Returns the icon CSS class name
|
|
67
67
|
*/
|
|
68
68
|
private _getIconClass;
|
|
69
69
|
render(): import("lit").TemplateResult<1>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rtc-editor-tab.d.ts","sourceRoot":"","sources":["../../../src/components/editor-area/rtc-editor-tab.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAC,UAAU,EAAO,MAAM,KAAK,CAAC;AAoBrC,qBAEa,YAAa,SAAQ,UAAU;IACxC,MAAM,CAAC,MAAM,4BAAuD;IAMpE,OAAO,CAAC,UAAU,CAMhB;IAIF,
|
|
1
|
+
{"version":3,"file":"rtc-editor-tab.d.ts","sourceRoot":"","sources":["../../../src/components/editor-area/rtc-editor-tab.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAC,UAAU,EAAO,MAAM,KAAK,CAAC;AAoBrC,qBAEa,YAAa,SAAQ,UAAU;IACxC,MAAM,CAAC,MAAM,4BAAuD;IAMpE,OAAO,CAAC,UAAU,CAMhB;IAIF,oCAAoC;IAEpC,QAAQ,SAAM;IAEd,4CAA4C;IAE5C,QAAQ,SAAM;IAEd,qCAAqC;IAErC,MAAM,UAAS;IAEf,wCAAwC;IAExC,KAAK,UAAS;IAEd,oCAAoC;IAEpC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAY;IAI9C;;OAEG;IACH,OAAO,CAAC,aAAa;IAUrB;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAWpB;;;;;;OAMG;IACH,OAAO,CAAC,cAAc;IAmDtB;;OAEG;IACH,OAAO,CAAC,eAAe;IAMvB;;OAEG;IACH,QAAQ;IAOR;;OAEG;IACH,OAAO,CAAC,YAAY;IAWpB;;OAEG;IACH,OAAO,CAAC,aAAa;IAarB,MAAM;CA8CT;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,gBAAgB,EAAE,YAAY,CAAC;KAClC;IAED,UAAU,mBAAmB;QACzB,mBAAmB,EAAE,WAAW,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAA;SAAC,CAAC,CAAC;QACrD,kBAAkB,EAAE,WAAW,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAA;SAAC,CAAC,CAAC;KACvD;CACJ"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Editor Tab
|
|
2
|
+
* Editor Tab styles
|
|
3
3
|
*
|
|
4
|
-
* VS Code
|
|
5
|
-
*
|
|
4
|
+
* VS Code-style editor tab.
|
|
5
|
+
* Colors use project Tokens to ensure dual-theme compatibility.
|
|
6
6
|
*/
|
|
7
7
|
export declare const styles: import("lit").CSSResult;
|
|
8
8
|
//# sourceMappingURL=rtc-editor-tab.styles.d.ts.map
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Editor Toolbar Component
|
|
3
3
|
*
|
|
4
|
-
* VS Code
|
|
4
|
+
* VS Code-style editor toolbar.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
* [💾
|
|
6
|
+
* Layout:
|
|
7
|
+
* [💾 Save] │ [↶] [↷] │ [flex spacer] │ [🔄 Restore Default] │ [Edit|Preview|Split]
|
|
8
8
|
*
|
|
9
|
-
*
|
|
9
|
+
* Pure UI component: only dispatches events, does not operate VFS. State is driven by EditorController.
|
|
10
10
|
*
|
|
11
11
|
* @element rtc-editor-toolbar
|
|
12
12
|
*
|
|
13
|
-
* @fires editor-save -
|
|
14
|
-
* @fires editor-undo -
|
|
15
|
-
* @fires editor-redo -
|
|
16
|
-
* @fires editor-format -
|
|
17
|
-
* @fires editor-view-mode-change -
|
|
18
|
-
* @fires editor-restore-default -
|
|
13
|
+
* @fires editor-save - Fired when save is clicked
|
|
14
|
+
* @fires editor-undo - Fired when undo is clicked
|
|
15
|
+
* @fires editor-redo - Fired when redo is clicked
|
|
16
|
+
* @fires editor-format - Format action (detail: { format: 'bold' | 'italic' | 'code' | 'link' })
|
|
17
|
+
* @fires editor-view-mode-change - View mode switch (detail: { viewMode: EditorViewMode })
|
|
18
|
+
* @fires editor-restore-default - Fired when restore default is clicked
|
|
19
19
|
*
|
|
20
|
-
* ##
|
|
21
|
-
*
|
|
20
|
+
* ## Styling
|
|
21
|
+
* Uses project design tokens (--rtc-color-*), supports light/dark themes.
|
|
22
22
|
*/
|
|
23
23
|
import { LitElement } from 'lit';
|
|
24
24
|
import type { EditorViewMode } from '../../types/index.js';
|
|
25
|
-
/**
|
|
25
|
+
/** Format type */
|
|
26
26
|
type FormatType = 'bold' | 'italic' | 'code' | 'link';
|
|
27
27
|
export declare class RtcEditorToolbar extends LitElement {
|
|
28
28
|
static styles: import("lit").CSSResult[];
|
|
29
29
|
private _localeCtx;
|
|
30
|
-
/**
|
|
30
|
+
/** Whether the save button is enabled */
|
|
31
31
|
canSave: boolean;
|
|
32
|
-
/**
|
|
32
|
+
/** Whether the undo button is enabled */
|
|
33
33
|
canUndo: boolean;
|
|
34
|
-
/**
|
|
34
|
+
/** Whether the redo button is enabled */
|
|
35
35
|
canRedo: boolean;
|
|
36
|
-
/**
|
|
36
|
+
/** Whether the restore default button is enabled (only shown for system-generated files) */
|
|
37
37
|
canRestore: boolean;
|
|
38
|
-
/**
|
|
38
|
+
/** Current view mode */
|
|
39
39
|
viewMode: EditorViewMode;
|
|
40
|
-
/**
|
|
40
|
+
/** Theme */
|
|
41
41
|
theme: 'light' | 'dark' | 'system';
|
|
42
42
|
private _handleSave;
|
|
43
43
|
private _handleUndo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rtc-editor-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/editor-area/rtc-editor-toolbar.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAAC,UAAU,EAAgB,MAAM,KAAK,CAAC;AAM9C,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAsBzD,
|
|
1
|
+
{"version":3,"file":"rtc-editor-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/editor-area/rtc-editor-toolbar.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAAC,UAAU,EAAgB,MAAM,KAAK,CAAC;AAM9C,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAsBzD,kBAAkB;AAClB,KAAK,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtD,qBAEa,gBAAiB,SAAQ,UAAU;IAC5C,MAAM,CAAC,MAAM,4BAAuD;IAMpE,OAAO,CAAC,UAAU,CAMhB;IAIF,yCAAyC;IAEzC,OAAO,UAAS;IAEhB,yCAAyC;IAEzC,OAAO,UAAS;IAEhB,yCAAyC;IAEzC,OAAO,UAAS;IAEhB,4FAA4F;IAE5F,UAAU,UAAS;IAEnB,wBAAwB;IAExB,QAAQ,EAAE,cAAc,CAAU;IAElC,YAAY;IAEZ,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAY;IAI9C,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,aAAa;IAUrB,OAAO,CAAC,qBAAqB;IAW7B,OAAO,CAAC,qBAAqB;IAY7B,MAAM;CAuGT;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,oBAAoB,EAAE,gBAAgB,CAAC;KAC1C;IAED,UAAU,mBAAmB;QACzB,aAAa,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;QACjC,aAAa,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;QACjC,aAAa,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;QACjC,eAAe,EAAE,WAAW,CAAC;YAAC,MAAM,EAAE,UAAU,CAAA;SAAC,CAAC,CAAC;QACnD,yBAAyB,EAAE,WAAW,CAAC;YAAC,QAAQ,EAAE,cAAc,CAAA;SAAC,CAAC,CAAC;QACnE,wBAAwB,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;KAC/C;CACJ"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Editor Toolbar
|
|
2
|
+
* Editor Toolbar styles
|
|
3
3
|
*
|
|
4
|
-
* VS Code
|
|
5
|
-
*
|
|
4
|
+
* VS Code style editor toolbar.
|
|
5
|
+
* Colors use project Tokens to ensure dual-theme compatibility.
|
|
6
6
|
*/
|
|
7
7
|
export declare const styles: import("lit").CSSResult;
|
|
8
8
|
//# sourceMappingURL=rtc-editor-toolbar.styles.d.ts.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File Explorer Component
|
|
3
3
|
*
|
|
4
|
-
* VS Code
|
|
5
|
-
*
|
|
4
|
+
* VS Code-style file browser sidebar.
|
|
5
|
+
* Composes rtc-file-tree-item recursive leaf components to display the full file tree.
|
|
6
6
|
*
|
|
7
|
-
* - Header
|
|
8
|
-
* - Content
|
|
9
|
-
* - Empty State
|
|
7
|
+
* - Header: title + action buttons (new file, refresh)
|
|
8
|
+
* - Content: recursively renders rtc-file-tree-item
|
|
9
|
+
* - Empty State: shows prompt when no files
|
|
10
10
|
*
|
|
11
11
|
* @element rtc-file-explorer
|
|
12
|
-
* @fires file-select -
|
|
13
|
-
* @fires folder-toggle -
|
|
14
|
-
* @fires refresh-requested -
|
|
12
|
+
* @fires file-select - User clicks a file (detail: { path })
|
|
13
|
+
* @fires folder-toggle - User clicks a folder (detail: { path })
|
|
14
|
+
* @fires refresh-requested - User clicks the refresh button
|
|
15
15
|
*/
|
|
16
16
|
import { LitElement } from 'lit';
|
|
17
17
|
import type { FileNode } from '../../types/index.js';
|
|
@@ -19,56 +19,56 @@ import './rtc-file-tree-item.js';
|
|
|
19
19
|
export declare class RtcFileExplorer extends LitElement {
|
|
20
20
|
static styles: import("lit").CSSResult[];
|
|
21
21
|
private _localeCtx;
|
|
22
|
-
/**
|
|
22
|
+
/** File tree root node (injected by external Controller) */
|
|
23
23
|
root: FileNode | null;
|
|
24
|
-
/**
|
|
24
|
+
/** Theme (inherited from parent) */
|
|
25
25
|
theme: 'light' | 'dark' | 'system';
|
|
26
26
|
private _explorerCtx;
|
|
27
|
-
/**
|
|
27
|
+
/** Current keyboard focus path (roving tabindex management) */
|
|
28
28
|
private _focusedPath;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
30
|
+
* Forward the file-tree-item-select event from child components
|
|
31
|
+
* Also sync keyboard focus to the clicked item
|
|
32
32
|
*/
|
|
33
33
|
private _handleFileSelect;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
35
|
+
* Forward the file-tree-item-toggle event from child components
|
|
36
|
+
* Also sync keyboard focus to the clicked folder
|
|
37
37
|
*/
|
|
38
38
|
private _handleFolderToggle;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Refresh button
|
|
41
41
|
*/
|
|
42
42
|
private _handleRefresh;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
44
|
+
* Depth-first traversal of visible (expanded) tree nodes, returns a flat list.
|
|
45
|
+
* Traverses recursive Shadow DOM via composed tree walk.
|
|
46
46
|
*
|
|
47
|
-
* TODO(perf):
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
47
|
+
* TODO(perf): Currently traverses the entire tree on every keypress, O(n). For large file trees (>500 nodes),
|
|
48
|
+
* a flat visible path list should be maintained in the controller (incrementally updated on expand/collapse/select),
|
|
49
|
+
* and this method would just read that list in O(1). The project has imported @lit-labs/virtualizer,
|
|
50
|
+
* and in the future tree rendering can be switched to virtual scrolling to support thousands of nodes.
|
|
51
51
|
*/
|
|
52
52
|
private _getVisibleTreeItems;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
55
|
-
*
|
|
54
|
+
* Set keyboard focus to the specified path (roving tabindex).
|
|
55
|
+
* Also syncs selection state to context (selection !== focus, but click/Enter syncs).
|
|
56
56
|
*/
|
|
57
57
|
private _setFocusedPath;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Find tree node by path via composed walk
|
|
60
60
|
*/
|
|
61
61
|
private _findTreeItemByPath;
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* Ensure initial focus exists (after tree loads, focus defaults to first item or selected item)
|
|
64
64
|
*/
|
|
65
65
|
private _ensureInitialFocus;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* Global keyboard event handler (bound to .sidebar-content)
|
|
68
68
|
*/
|
|
69
69
|
private _handleKeydown;
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
71
|
+
* Get parent path (/a/b/c → /a/b, /a → /)
|
|
72
72
|
*/
|
|
73
73
|
private _getParentPath;
|
|
74
74
|
private _renderEmptyState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rtc-file-explorer.d.ts","sourceRoot":"","sources":["../../../src/components/file-explorer/rtc-file-explorer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAC,UAAU,EAAO,MAAM,KAAK,CAAC;AAWrC,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAInD,OAAO,yBAAyB,CAAC;AAMjC,qBAEa,eAAgB,SAAQ,UAAU;IAC3C,MAAM,CAAC,MAAM,4BAAuD;IAMpE,OAAO,CAAC,UAAU,CAMhB;IAIF,
|
|
1
|
+
{"version":3,"file":"rtc-file-explorer.d.ts","sourceRoot":"","sources":["../../../src/components/file-explorer/rtc-file-explorer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAC,UAAU,EAAO,MAAM,KAAK,CAAC;AAWrC,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAInD,OAAO,yBAAyB,CAAC;AAMjC,qBAEa,eAAgB,SAAQ,UAAU;IAC3C,MAAM,CAAC,MAAM,4BAAuD;IAMpE,OAAO,CAAC,UAAU,CAMhB;IAIF,4DAA4D;IAE5D,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAQ;IAE7B,oCAAoC;IAEpC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAY;IAM9C,OAAO,CAAC,YAAY,CAelB;IAEF,+DAA+D;IAE/D,OAAO,CAAC,YAAY,CAAuB;IAI3C;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAezB;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAW3B;;OAEG;IACH,OAAO,CAAC,cAAc;IAgBtB;;;;;;;;OAQG;IACH,OAAO,CAAC,oBAAoB;IAqB5B;;;OAGG;IACH,OAAO,CAAC,eAAe;IA0BvB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAO3B;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAiB3B;;OAEG;IACH,OAAO,CAAC,cAAc;IA8GtB;;OAEG;IACH,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,iBAAiB;IASzB,OAAO,CAAC,WAAW;IAsBnB,MAAM;IAyBN,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;CAOxC;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,mBAAmB,EAAE,eAAe,CAAC;KACxC;IAED,UAAU,mBAAmB;QACzB,aAAa,EAAE,WAAW,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAC,CAAC,CAAC;QAC3C,eAAe,EAAE,WAAW,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAC,CAAC,CAAC;QAC7C,mBAAmB,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;QACvC,oBAAoB,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;KAC3C;CACJ"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* File Explorer
|
|
2
|
+
* File Explorer styles
|
|
3
3
|
*
|
|
4
|
-
* VS Code
|
|
5
|
-
*
|
|
4
|
+
* VS Code-style sidebar: header + file tree content area.
|
|
5
|
+
* Colors use project Tokens (--rtc-color-*) to ensure dual-theme adaptation.
|
|
6
6
|
*/
|
|
7
7
|
export declare const styles: import("lit").CSSResult;
|
|
8
8
|
//# sourceMappingURL=rtc-file-explorer.styles.d.ts.map
|
|
@@ -1,64 +1,64 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File Tree Item Component
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Recursive file tree node component for displaying folders and files.
|
|
5
5
|
*
|
|
6
|
-
* -
|
|
7
|
-
* -
|
|
8
|
-
* -
|
|
9
|
-
* -
|
|
6
|
+
* - Folders: display chevron + folder icon + name, expandable/collapsible
|
|
7
|
+
* - Files: display indent + file icon + name
|
|
8
|
+
* - Reads expand/select/loading state from FileExplorerContext
|
|
9
|
+
* - Recursively renders child nodes
|
|
10
10
|
*
|
|
11
|
-
* ARIA: role="treeitem"
|
|
11
|
+
* ARIA: role="treeitem", parent Explorer manages tabindex (roving) and focus.
|
|
12
12
|
*
|
|
13
13
|
* @element rtc-file-tree-item
|
|
14
|
-
* @fires file-tree-item-toggle -
|
|
15
|
-
* @fires file-tree-item-select -
|
|
14
|
+
* @fires file-tree-item-toggle - Clicked folder to expand/collapse (detail: { path })
|
|
15
|
+
* @fires file-tree-item-select - Clicked file/folder to select (detail: { path })
|
|
16
16
|
*/
|
|
17
17
|
import { LitElement } from 'lit';
|
|
18
18
|
import type { FileNode } from '../../types/index.js';
|
|
19
19
|
export declare class RtcFileTreeItem extends LitElement {
|
|
20
20
|
static styles: import("lit").CSSResult[];
|
|
21
21
|
private _localeCtx;
|
|
22
|
-
/**
|
|
22
|
+
/** File tree node data */
|
|
23
23
|
node: FileNode;
|
|
24
|
-
/**
|
|
24
|
+
/** Indentation level (0 = root) */
|
|
25
25
|
depth: number;
|
|
26
|
-
/**
|
|
26
|
+
/** Theme (inherited from parent) */
|
|
27
27
|
theme: 'light' | 'dark' | 'system';
|
|
28
28
|
private _explorerCtx;
|
|
29
29
|
private get _isExpanded();
|
|
30
|
-
/**
|
|
30
|
+
/** Exposed to parent Explorer for keyboard navigation composed walk */
|
|
31
31
|
get expanded(): boolean;
|
|
32
32
|
private get _isLoading();
|
|
33
33
|
private get _isSelected();
|
|
34
34
|
private get _isFolder();
|
|
35
|
-
/**
|
|
35
|
+
/** Exposed to parent Explorer for keyboard navigation composed walk */
|
|
36
36
|
get isFolder(): boolean;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Focus the inner content div (called by parent Explorer during keyboard navigation)
|
|
39
39
|
*/
|
|
40
40
|
focusContent(): void;
|
|
41
41
|
private _handleToggle;
|
|
42
42
|
private _handleSelect;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Returns the corresponding icon based on file extension
|
|
45
45
|
*/
|
|
46
46
|
private _getFileIcon;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Render folder icon
|
|
49
49
|
*/
|
|
50
50
|
private _renderFolderIcon;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* Render chevron (folders only)
|
|
53
53
|
*/
|
|
54
54
|
private _renderChevron;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Render loading indicator
|
|
57
57
|
*/
|
|
58
58
|
private _renderSpinner;
|
|
59
59
|
render(): import("lit").TemplateResult<1>;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Returns icon CSS class name
|
|
62
62
|
*/
|
|
63
63
|
private _getIconClass;
|
|
64
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rtc-file-tree-item.d.ts","sourceRoot":"","sources":["../../../src/components/file-explorer/rtc-file-tree-item.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAC,UAAU,EAAgB,MAAM,KAAK,CAAC;AAO9C,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAyBnD,qBAEa,eAAgB,SAAQ,UAAU;IAC3C,MAAM,CAAC,MAAM,4BAAuD;IAMpE,OAAO,CAAC,UAAU,CAMhB;IAIF,
|
|
1
|
+
{"version":3,"file":"rtc-file-tree-item.d.ts","sourceRoot":"","sources":["../../../src/components/file-explorer/rtc-file-tree-item.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAC,UAAU,EAAgB,MAAM,KAAK,CAAC;AAO9C,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAyBnD,qBAEa,eAAgB,SAAQ,UAAU;IAC3C,MAAM,CAAC,MAAM,4BAAuD;IAMpE,OAAO,CAAC,UAAU,CAMhB;IAIF,0BAA0B;IAE1B,IAAI,EAAE,QAAQ,CAA6C;IAE3D,mCAAmC;IAEnC,KAAK,SAAK;IAEV,oCAAoC;IAEpC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAY;IAM9C,OAAO,CAAC,YAAY,CAelB;IAIF,OAAO,KAAK,WAAW,GAEtB;IAED,uEAAuE;IACvE,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,OAAO,KAAK,UAAU,GAErB;IAED,OAAO,KAAK,WAAW,GAEtB;IAED,OAAO,KAAK,SAAS,GAEpB;IAED,uEAAuE;IACvE,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED;;OAEG;IACH,YAAY;IAOZ,OAAO,CAAC,aAAa;IAcrB,OAAO,CAAC,aAAa;IAyBrB;;OAEG;IACH,OAAO,CAAC,YAAY;IAWpB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAIzB;;OAEG;IACH,OAAO,CAAC,cAAc;IAWtB;;OAEG;IACH,OAAO,CAAC,cAAc;IAOtB,MAAM;IA+CN;;OAEG;IACH,OAAO,CAAC,aAAa;CAaxB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,oBAAoB,EAAE,eAAe,CAAC;KACzC;CACJ"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* File Tree Item
|
|
2
|
+
* File Tree Item styles
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Colors use project Tokens to ensure dual-theme compatibility.
|
|
5
|
+
* Folder icons use VS Code style gold (#dcb67a), file icons use blue (#519aba).
|
|
6
6
|
*/
|
|
7
7
|
export declare const styles: import("lit").CSSResult;
|
|
8
8
|
//# sourceMappingURL=rtc-file-tree-item.styles.d.ts.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Function Console Component
|
|
3
|
+
*
|
|
4
|
+
* Real-time log output console for function execution.
|
|
5
|
+
* Features: level-based coloring, auto-scroll, expandable data objects.
|
|
6
|
+
*
|
|
7
|
+
* @element rtc-function-console
|
|
8
|
+
*/
|
|
9
|
+
import { LitElement } from 'lit';
|
|
10
|
+
export declare class RtcFunctionConsole extends LitElement {
|
|
11
|
+
static styles: import("lit").CSSResult[];
|
|
12
|
+
/** Theme (inherited from parent) */
|
|
13
|
+
theme: 'light' | 'dark' | 'system';
|
|
14
|
+
private _debugCtx;
|
|
15
|
+
private _localeCtx;
|
|
16
|
+
/** Set of expanded data indices */
|
|
17
|
+
private _expandedData;
|
|
18
|
+
private _consoleBody;
|
|
19
|
+
updated(changed: Map<string, unknown>): void;
|
|
20
|
+
private _toggleData;
|
|
21
|
+
private _formatData;
|
|
22
|
+
/** Copy all log output to clipboard */
|
|
23
|
+
private _copyLogs;
|
|
24
|
+
private _renderLogEntry;
|
|
25
|
+
render(): import("lit").TemplateResult<1>;
|
|
26
|
+
}
|
|
27
|
+
declare global {
|
|
28
|
+
interface HTMLElementTagNameMap {
|
|
29
|
+
'rtc-function-console': RtcFunctionConsole;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=rtc-function-console.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rtc-function-console.d.ts","sourceRoot":"","sources":["../../../src/components/function-console/rtc-function-console.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAC,UAAU,EAAgB,MAAM,KAAK,CAAC;AA6B9C,qBAEa,kBAAmB,SAAQ,UAAU;IAC9C,MAAM,CAAC,MAAM,4BAAuD;IAEpE,oCAAoC;IAEpC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAY;IAI9C,OAAO,CAAC,SAAS,CAAwC;IAIzD,OAAO,CAAC,UAAU,CAMhB;IAEF,mCAAmC;IAEnC,OAAO,CAAC,aAAa,CAAqB;IAE1C,OAAO,CAAC,YAAY,CAA+B;IAEnD,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IASrC,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,WAAW;IAQnB,uCAAuC;YACzB,SAAS;IAmBvB,OAAO,CAAC,eAAe;IAwBvB,MAAM;CAwBT;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,sBAAsB,EAAE,kBAAkB,CAAC;KAC9C;CACJ"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Function Console Component Styles
|
|
3
|
+
*
|
|
4
|
+
* Real-time log output console with level-based coloring.
|
|
5
|
+
* Colors use project Tokens (--rtc-color-*) to ensure dual-theme adaptation.
|
|
6
|
+
*/
|
|
7
|
+
export declare const styles: import("lit").CSSResult;
|
|
8
|
+
//# sourceMappingURL=rtc-function-console.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rtc-function-console.styles.d.ts","sourceRoot":"","sources":["../../../src/components/function-console/rtc-function-console.styles.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,MAAM,yBA+IlB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Function Debugger Component
|
|
3
|
+
*
|
|
4
|
+
* Main debugging panel that combines function info, parameter editor,
|
|
5
|
+
* execute button, console output, and execution history.
|
|
6
|
+
*
|
|
7
|
+
* @element rtc-function-debugger
|
|
8
|
+
*/
|
|
9
|
+
import { LitElement, type TemplateResult } from 'lit';
|
|
10
|
+
import '../function-params/rtc-function-params.js';
|
|
11
|
+
import '../function-console/rtc-function-console.js';
|
|
12
|
+
import '../function-history/rtc-function-history.js';
|
|
13
|
+
export declare class RtcFunctionDebugger extends LitElement {
|
|
14
|
+
static styles: import("lit").CSSResult[];
|
|
15
|
+
/** Theme (inherited from parent) */
|
|
16
|
+
theme: 'light' | 'dark' | 'system';
|
|
17
|
+
private _debugCtx;
|
|
18
|
+
private _localeCtx;
|
|
19
|
+
/** Whether function info section is collapsed */
|
|
20
|
+
private _infoCollapsed;
|
|
21
|
+
private _handleExecute;
|
|
22
|
+
/**
|
|
23
|
+
* Recursively render parameter rows for the documentation table.
|
|
24
|
+
*
|
|
25
|
+
* Handles primitive, array, and object types with nested expansion.
|
|
26
|
+
* Mirrors the logic in markdown-generator's schemaToTableRows.
|
|
27
|
+
*/
|
|
28
|
+
private _renderParamRows;
|
|
29
|
+
private _renderFunctionInfo;
|
|
30
|
+
private _renderEmptyState;
|
|
31
|
+
private _renderContent;
|
|
32
|
+
render(): TemplateResult<1>;
|
|
33
|
+
}
|
|
34
|
+
declare global {
|
|
35
|
+
interface HTMLElementTagNameMap {
|
|
36
|
+
'rtc-function-debugger': RtcFunctionDebugger;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=rtc-function-debugger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rtc-function-debugger.d.ts","sourceRoot":"","sources":["../../../src/components/function-debugger/rtc-function-debugger.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAC,UAAU,EAAiB,KAAK,cAAc,EAAC,MAAM,KAAK,CAAC;AAgBnE,OAAO,2CAA2C,CAAC;AACnD,OAAO,6CAA6C,CAAC;AACrD,OAAO,6CAA6C,CAAC;AAIrD,qBAEa,mBAAoB,SAAQ,UAAU;IAC/C,MAAM,CAAC,MAAM,4BAAuD;IAEpE,oCAAoC;IAEpC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAY;IAI9C,OAAO,CAAC,SAAS,CAAwC;IAIzD,OAAO,CAAC,UAAU,CAMhB;IAEF,iDAAiD;IAEjD,OAAO,CAAC,cAAc,CAAS;YAEjB,cAAc;IAM5B;;;;;OAKG;IACH,OAAO,CAAC,gBAAgB;IAuExB,OAAO,CAAC,mBAAmB;IAiD3B,OAAO,CAAC,iBAAiB;IAQzB,OAAO,CAAC,cAAc;IAgDtB,MAAM;CAIT;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,uBAAuB,EAAE,mBAAmB,CAAC;KAChD;CACJ"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Function Debugger Component Styles
|
|
3
|
+
*
|
|
4
|
+
* Main debugger panel: function info, params, execute button, console, history.
|
|
5
|
+
* Colors use project Tokens (--rtc-color-*) to ensure dual-theme adaptation.
|
|
6
|
+
*/
|
|
7
|
+
export declare const styles: import("lit").CSSResult;
|
|
8
|
+
//# sourceMappingURL=rtc-function-debugger.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rtc-function-debugger.styles.d.ts","sourceRoot":"","sources":["../../../src/components/function-debugger/rtc-function-debugger.styles.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,MAAM,yBAgOlB,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Function History Component
|
|
3
|
+
*
|
|
4
|
+
* Bottom drawer that slides up to reveal execution history.
|
|
5
|
+
* The overall drawer is collapsible; each history item is also collapsible,
|
|
6
|
+
* expanding to show the original parameters, logs, and result.
|
|
7
|
+
*
|
|
8
|
+
* @element rtc-function-history
|
|
9
|
+
*/
|
|
10
|
+
import { LitElement, type TemplateResult } from 'lit';
|
|
11
|
+
export declare class RtcFunctionHistory extends LitElement {
|
|
12
|
+
static styles: import("lit").CSSResult[];
|
|
13
|
+
/** Theme (inherited from parent) */
|
|
14
|
+
theme: 'light' | 'dark' | 'system';
|
|
15
|
+
private _debugCtx;
|
|
16
|
+
private _localeCtx;
|
|
17
|
+
/** Whether the drawer is open */
|
|
18
|
+
private _drawerOpen;
|
|
19
|
+
/** Set of expanded history item IDs */
|
|
20
|
+
private _expandedItems;
|
|
21
|
+
/** Filter input debounce timer */
|
|
22
|
+
private _filterDebounce?;
|
|
23
|
+
private _toggleDrawer;
|
|
24
|
+
private _toggleItem;
|
|
25
|
+
private _handleRunClick;
|
|
26
|
+
private _handleRestoreClick;
|
|
27
|
+
private _handleFilterInput;
|
|
28
|
+
private _loadPage;
|
|
29
|
+
/** Copy text to clipboard with toast feedback */
|
|
30
|
+
private _copyToClipboard;
|
|
31
|
+
/** Format logs array to plain text */
|
|
32
|
+
private _formatLogsText;
|
|
33
|
+
/**
|
|
34
|
+
* Render a log entry with level-specific styling
|
|
35
|
+
*/
|
|
36
|
+
private _renderLogEntry;
|
|
37
|
+
/**
|
|
38
|
+
* Render expanded details for a history item: params, logs, result
|
|
39
|
+
*/
|
|
40
|
+
private _renderItemDetails;
|
|
41
|
+
private _renderHistoryItem;
|
|
42
|
+
render(): TemplateResult<1>;
|
|
43
|
+
}
|
|
44
|
+
declare global {
|
|
45
|
+
interface HTMLElementTagNameMap {
|
|
46
|
+
'rtc-function-history': RtcFunctionHistory;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=rtc-function-history.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rtc-function-history.d.ts","sourceRoot":"","sources":["../../../src/components/function-history/rtc-function-history.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAC,UAAU,EAAiB,KAAK,cAAc,EAAC,MAAM,KAAK,CAAC;AAkCnE,qBAEa,kBAAmB,SAAQ,UAAU;IAC9C,MAAM,CAAC,MAAM,4BAAuD;IAEpE,oCAAoC;IAEpC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAY;IAI9C,OAAO,CAAC,SAAS,CAAwC;IAIzD,OAAO,CAAC,UAAU,CAMhB;IAEF,iCAAiC;IAEjC,OAAO,CAAC,WAAW,CAAS;IAE5B,uCAAuC;IAEvC,OAAO,CAAC,cAAc,CAAqB;IAE3C,kCAAkC;IAClC,OAAO,CAAC,eAAe,CAAC,CAAgC;IAExD,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,eAAe;IAOvB,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,SAAS;IAMjB,iDAAiD;YACnC,gBAAgB;IAY9B,sCAAsC;IACtC,OAAO,CAAC,eAAe;IAUvB;;OAEG;IACH,OAAO,CAAC,eAAe;IAcvB;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAwD1B,OAAO,CAAC,kBAAkB;IAwB1B,MAAM;CA4ET;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,sBAAsB,EAAE,kBAAkB,CAAC;KAC9C;CACJ"}
|