@opensumi/ide-core-browser 2.12.1-next-079c1930
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 +16 -0
- package/lib/application/application-state-service.d.ts +16 -0
- package/lib/application/application-state-service.d.ts.map +1 -0
- package/lib/application/application-state-service.js +47 -0
- package/lib/application/application-state-service.js.map +1 -0
- package/lib/application/application.service.d.ts +11 -0
- package/lib/application/application.service.d.ts.map +1 -0
- package/lib/application/application.service.js +41 -0
- package/lib/application/application.service.js.map +1 -0
- package/lib/application/index.d.ts +3 -0
- package/lib/application/index.d.ts.map +1 -0
- package/lib/application/index.js +6 -0
- package/lib/application/index.js.map +1 -0
- package/lib/authentication/authentication.contribution.d.ts +8 -0
- package/lib/authentication/authentication.contribution.d.ts.map +1 -0
- package/lib/authentication/authentication.contribution.js +32 -0
- package/lib/authentication/authentication.contribution.js.map +1 -0
- package/lib/authentication/authentication.service.d.ts +54 -0
- package/lib/authentication/authentication.service.d.ts.map +1 -0
- package/lib/authentication/authentication.service.js +413 -0
- package/lib/authentication/authentication.service.js.map +1 -0
- package/lib/bootstrap/app.d.ts +142 -0
- package/lib/bootstrap/app.d.ts.map +1 -0
- package/lib/bootstrap/app.js +516 -0
- package/lib/bootstrap/app.js.map +1 -0
- package/lib/bootstrap/app.view.d.ts +11 -0
- package/lib/bootstrap/app.view.d.ts.map +1 -0
- package/lib/bootstrap/app.view.js +72 -0
- package/lib/bootstrap/app.view.js.map +1 -0
- package/lib/bootstrap/connection.d.ts +7 -0
- package/lib/bootstrap/connection.d.ts.map +1 -0
- package/lib/bootstrap/connection.js +78 -0
- package/lib/bootstrap/connection.js.map +1 -0
- package/lib/bootstrap/index.d.ts +4 -0
- package/lib/bootstrap/index.d.ts.map +1 -0
- package/lib/bootstrap/index.js +7 -0
- package/lib/bootstrap/index.js.map +1 -0
- package/lib/bootstrap/inner-providers.d.ts +3 -0
- package/lib/bootstrap/inner-providers.d.ts.map +1 -0
- package/lib/bootstrap/inner-providers.js +231 -0
- package/lib/bootstrap/inner-providers.js.map +1 -0
- package/lib/browser-module.d.ts +20 -0
- package/lib/browser-module.d.ts.map +1 -0
- package/lib/browser-module.js +15 -0
- package/lib/browser-module.js.map +1 -0
- package/lib/common/common.command.d.ts +156 -0
- package/lib/common/common.command.d.ts.map +1 -0
- package/lib/common/common.command.js +611 -0
- package/lib/common/common.command.js.map +1 -0
- package/lib/common/common.contribution.d.ts +22 -0
- package/lib/common/common.contribution.d.ts.map +1 -0
- package/lib/common/common.contribution.js +241 -0
- package/lib/common/common.contribution.js.map +1 -0
- package/lib/common/common.define.d.ts +47 -0
- package/lib/common/common.define.d.ts.map +1 -0
- package/lib/common/common.define.js +5 -0
- package/lib/common/common.define.js.map +1 -0
- package/lib/common/common.module.d.ts +13 -0
- package/lib/common/common.module.d.ts.map +1 -0
- package/lib/common/common.module.js +41 -0
- package/lib/common/common.module.js.map +1 -0
- package/lib/common/common.storage.d.ts +9 -0
- package/lib/common/common.storage.d.ts.map +1 -0
- package/lib/common/common.storage.js +25 -0
- package/lib/common/common.storage.js.map +1 -0
- package/lib/common/index.d.ts +5 -0
- package/lib/common/index.d.ts.map +1 -0
- package/lib/common/index.js +8 -0
- package/lib/common/index.js.map +1 -0
- package/lib/components/actions/index.d.ts +77 -0
- package/lib/components/actions/index.d.ts.map +1 -0
- package/lib/components/actions/index.js +201 -0
- package/lib/components/actions/index.js.map +1 -0
- package/lib/components/actions/placements.d.ts +58 -0
- package/lib/components/actions/placements.d.ts.map +1 -0
- package/lib/components/actions/placements.js +48 -0
- package/lib/components/actions/placements.js.map +1 -0
- package/lib/components/actions/styles.module.less +128 -0
- package/lib/components/badge/index.d.ts +2 -0
- package/lib/components/badge/index.d.ts.map +1 -0
- package/lib/components/badge/index.js +6 -0
- package/lib/components/badge/index.js.map +1 -0
- package/lib/components/click-outside/index.d.ts +6 -0
- package/lib/components/click-outside/index.d.ts.map +1 -0
- package/lib/components/click-outside/index.js +27 -0
- package/lib/components/click-outside/index.js.map +1 -0
- package/lib/components/index.d.ts +25 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/index.js +30 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/layout/box-panel.d.ts +18 -0
- package/lib/components/layout/box-panel.d.ts.map +1 -0
- package/lib/components/layout/box-panel.js +20 -0
- package/lib/components/layout/box-panel.js.map +1 -0
- package/lib/components/layout/default-layout.d.ts +15 -0
- package/lib/components/layout/default-layout.d.ts.map +1 -0
- package/lib/components/layout/default-layout.js +39 -0
- package/lib/components/layout/default-layout.js.map +1 -0
- package/lib/components/layout/index.d.ts +5 -0
- package/lib/components/layout/index.d.ts.map +1 -0
- package/lib/components/layout/index.js +8 -0
- package/lib/components/layout/index.js.map +1 -0
- package/lib/components/layout/layout.d.ts +13 -0
- package/lib/components/layout/layout.d.ts.map +1 -0
- package/lib/components/layout/layout.js +72 -0
- package/lib/components/layout/layout.js.map +1 -0
- package/lib/components/layout/split-panel.d.ts +38 -0
- package/lib/components/layout/split-panel.d.ts.map +1 -0
- package/lib/components/layout/split-panel.js +182 -0
- package/lib/components/layout/split-panel.js.map +1 -0
- package/lib/components/layout/split-panel.service.d.ts +16 -0
- package/lib/components/layout/split-panel.service.d.ts.map +1 -0
- package/lib/components/layout/split-panel.service.js +69 -0
- package/lib/components/layout/split-panel.service.js.map +1 -0
- package/lib/components/layout/styles.module.less +119 -0
- package/lib/components/loading/index.d.ts +2 -0
- package/lib/components/loading/index.d.ts.map +1 -0
- package/lib/components/loading/index.js +5 -0
- package/lib/components/loading/index.js.map +1 -0
- package/lib/components/loading/loading.less +14 -0
- package/lib/components/loading/loading.view.d.ts +4 -0
- package/lib/components/loading/loading.view.d.ts.map +1 -0
- package/lib/components/loading/loading.view.js +12 -0
- package/lib/components/loading/loading.view.js.map +1 -0
- package/lib/components/loading/media/loading-dark.svg +52 -0
- package/lib/components/loading/media/loading-hc.svg +52 -0
- package/lib/components/loading/media/loading.svg +52 -0
- package/lib/components/popover/styles.module.less +81 -0
- package/lib/components/portal/index.d.ts +6 -0
- package/lib/components/portal/index.d.ts.map +1 -0
- package/lib/components/portal/index.js +11 -0
- package/lib/components/portal/index.js.map +1 -0
- package/lib/components/progressbar/index.d.ts +5 -0
- package/lib/components/progressbar/index.d.ts.map +1 -0
- package/lib/components/progressbar/index.js +15 -0
- package/lib/components/progressbar/index.js.map +1 -0
- package/lib/components/progressbar/styles.module.less +31 -0
- package/lib/components/recycle-tree/index.d.ts +2 -0
- package/lib/components/recycle-tree/index.d.ts.map +1 -0
- package/lib/components/recycle-tree/index.js +5 -0
- package/lib/components/recycle-tree/index.js.map +1 -0
- package/lib/components/recycle-tree/recycle-tree.view.d.ts +82 -0
- package/lib/components/recycle-tree/recycle-tree.view.d.ts.map +1 -0
- package/lib/components/recycle-tree/recycle-tree.view.js +192 -0
- package/lib/components/recycle-tree/recycle-tree.view.js.map +1 -0
- package/lib/components/resize/resize.d.ts +39 -0
- package/lib/components/resize/resize.d.ts.map +1 -0
- package/lib/components/resize/resize.js +609 -0
- package/lib/components/resize/resize.js.map +1 -0
- package/lib/components/resize/resize.module.less +78 -0
- package/lib/components/scrollbar/index.d.ts +2 -0
- package/lib/components/scrollbar/index.d.ts.map +1 -0
- package/lib/components/scrollbar/index.js +5 -0
- package/lib/components/scrollbar/index.js.map +1 -0
- package/lib/components/scrollbar/scrollbar.less +36 -0
- package/lib/components/scrollbar/scrollbar.view.d.ts +7 -0
- package/lib/components/scrollbar/scrollbar.view.d.ts.map +1 -0
- package/lib/components/scrollbar/scrollbar.view.js +11 -0
- package/lib/components/scrollbar/scrollbar.view.js.map +1 -0
- package/lib/components/select/index.d.ts +4 -0
- package/lib/components/select/index.d.ts.map +1 -0
- package/lib/components/select/index.js +14 -0
- package/lib/components/select/index.js.map +1 -0
- package/lib/components/select/styles.less +8 -0
- package/lib/components/tree/index.d.ts +4 -0
- package/lib/components/tree/index.d.ts.map +1 -0
- package/lib/components/tree/index.js +7 -0
- package/lib/components/tree/index.js.map +1 -0
- package/lib/components/tree/tree-node.view.d.ts +26 -0
- package/lib/components/tree/tree-node.view.d.ts.map +1 -0
- package/lib/components/tree/tree-node.view.js +346 -0
- package/lib/components/tree/tree-node.view.js.map +1 -0
- package/lib/components/tree/tree.module.less +295 -0
- package/lib/components/tree/tree.view.d.ts +132 -0
- package/lib/components/tree/tree.view.d.ts.map +1 -0
- package/lib/components/tree/tree.view.js +246 -0
- package/lib/components/tree/tree.view.js.map +1 -0
- package/lib/context-key.d.ts +32 -0
- package/lib/context-key.d.ts.map +1 -0
- package/lib/context-key.js +9 -0
- package/lib/context-key.js.map +1 -0
- package/lib/contextkey/explorer.d.ts +16 -0
- package/lib/contextkey/explorer.d.ts.map +1 -0
- package/lib/contextkey/explorer.js +20 -0
- package/lib/contextkey/explorer.js.map +1 -0
- package/lib/contextkey/index.d.ts +6 -0
- package/lib/contextkey/index.d.ts.map +1 -0
- package/lib/contextkey/index.js +9 -0
- package/lib/contextkey/index.js.map +1 -0
- package/lib/contextkey/outline.d.ts +4 -0
- package/lib/contextkey/outline.d.ts.map +1 -0
- package/lib/contextkey/outline.js +7 -0
- package/lib/contextkey/outline.js.map +1 -0
- package/lib/contextkey/resource.d.ts +17 -0
- package/lib/contextkey/resource.d.ts.map +1 -0
- package/lib/contextkey/resource.js +45 -0
- package/lib/contextkey/resource.js.map +1 -0
- package/lib/contextkey/terminal.d.ts +7 -0
- package/lib/contextkey/terminal.d.ts.map +1 -0
- package/lib/contextkey/terminal.js +10 -0
- package/lib/contextkey/terminal.js.map +1 -0
- package/lib/contextkey/workspace.d.ts +7 -0
- package/lib/contextkey/workspace.d.ts.map +1 -0
- package/lib/contextkey/workspace.js +10 -0
- package/lib/contextkey/workspace.js.map +1 -0
- package/lib/core-preferences.d.ts +57 -0
- package/lib/core-preferences.d.ts.map +1 -0
- package/lib/core-preferences.js +328 -0
- package/lib/core-preferences.js.map +1 -0
- package/lib/dom/index.d.ts +68 -0
- package/lib/dom/index.d.ts.map +1 -0
- package/lib/dom/index.js +126 -0
- package/lib/dom/index.js.map +1 -0
- package/lib/encoding-registry.d.ts +31 -0
- package/lib/encoding-registry.d.ts.map +1 -0
- package/lib/encoding-registry.js +85 -0
- package/lib/encoding-registry.js.map +1 -0
- package/lib/fs/index.d.ts +12 -0
- package/lib/fs/index.d.ts.map +1 -0
- package/lib/fs/index.js +9 -0
- package/lib/fs/index.js.map +1 -0
- package/lib/hash-calculate/hash-calculate.contribution.d.ts +6 -0
- package/lib/hash-calculate/hash-calculate.contribution.d.ts.map +1 -0
- package/lib/hash-calculate/hash-calculate.contribution.js +27 -0
- package/lib/hash-calculate/hash-calculate.contribution.js.map +1 -0
- package/lib/index.d.ts +28 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +34 -0
- package/lib/index.js.map +1 -0
- package/lib/keybinding/index.d.ts +2 -0
- package/lib/keybinding/index.d.ts.map +1 -0
- package/lib/keybinding/index.js +5 -0
- package/lib/keybinding/index.js.map +1 -0
- package/lib/keybinding/keybinding.d.ts +340 -0
- package/lib/keybinding/keybinding.d.ts.map +1 -0
- package/lib/keybinding/keybinding.js +720 -0
- package/lib/keybinding/keybinding.js.map +1 -0
- package/lib/keyboard/index.d.ts +4 -0
- package/lib/keyboard/index.d.ts.map +1 -0
- package/lib/keyboard/index.js +7 -0
- package/lib/keyboard/index.js.map +1 -0
- package/lib/keyboard/keyboard-layout-provider.d.ts +92 -0
- package/lib/keyboard/keyboard-layout-provider.d.ts.map +1 -0
- package/lib/keyboard/keyboard-layout-provider.js +344 -0
- package/lib/keyboard/keyboard-layout-provider.js.map +1 -0
- package/lib/keyboard/keyboard-layout-service.d.ts +65 -0
- package/lib/keyboard/keyboard-layout-service.d.ts.map +1 -0
- package/lib/keyboard/keyboard-layout-service.js +415 -0
- package/lib/keyboard/keyboard-layout-service.js.map +1 -0
- package/lib/keyboard/keys.d.ts +294 -0
- package/lib/keyboard/keys.d.ts.map +1 -0
- package/lib/keyboard/keys.js +699 -0
- package/lib/keyboard/keys.js.map +1 -0
- package/lib/keyboard/layouts/_.contribution.d.ts +9 -0
- package/lib/keyboard/layouts/_.contribution.d.ts.map +1 -0
- package/lib/keyboard/layouts/_.contribution.js +21 -0
- package/lib/keyboard/layouts/_.contribution.js.map +1 -0
- package/lib/keyboard/layouts/cz.win.d.ts +2 -0
- package/lib/keyboard/layouts/cz.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/cz.win.js +169 -0
- package/lib/keyboard/layouts/cz.win.js.map +1 -0
- package/lib/keyboard/layouts/de-swiss.win.d.ts +2 -0
- package/lib/keyboard/layouts/de-swiss.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/de-swiss.win.js +169 -0
- package/lib/keyboard/layouts/de-swiss.win.js.map +1 -0
- package/lib/keyboard/layouts/de.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/de.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/de.darwin.js +132 -0
- package/lib/keyboard/layouts/de.darwin.js.map +1 -0
- package/lib/keyboard/layouts/de.linux.d.ts +2 -0
- package/lib/keyboard/layouts/de.linux.d.ts.map +1 -0
- package/lib/keyboard/layouts/de.linux.js +187 -0
- package/lib/keyboard/layouts/de.linux.js.map +1 -0
- package/lib/keyboard/layouts/de.win.d.ts +2 -0
- package/lib/keyboard/layouts/de.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/de.win.js +169 -0
- package/lib/keyboard/layouts/de.win.js.map +1 -0
- package/lib/keyboard/layouts/dk.win.d.ts +2 -0
- package/lib/keyboard/layouts/dk.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/dk.win.js +169 -0
- package/lib/keyboard/layouts/dk.win.js.map +1 -0
- package/lib/keyboard/layouts/dvorak.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/dvorak.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/dvorak.darwin.js +132 -0
- package/lib/keyboard/layouts/dvorak.darwin.js.map +1 -0
- package/lib/keyboard/layouts/en-belgian.win.d.ts +2 -0
- package/lib/keyboard/layouts/en-belgian.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/en-belgian.win.js +169 -0
- package/lib/keyboard/layouts/en-belgian.win.js.map +1 -0
- package/lib/keyboard/layouts/en-ext.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/en-ext.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/en-ext.darwin.js +132 -0
- package/lib/keyboard/layouts/en-ext.darwin.js.map +1 -0
- package/lib/keyboard/layouts/en-in.win.d.ts +2 -0
- package/lib/keyboard/layouts/en-in.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/en-in.win.js +169 -0
- package/lib/keyboard/layouts/en-in.win.js.map +1 -0
- package/lib/keyboard/layouts/en-intl.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/en-intl.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/en-intl.darwin.js +132 -0
- package/lib/keyboard/layouts/en-intl.darwin.js.map +1 -0
- package/lib/keyboard/layouts/en-intl.win.d.ts +2 -0
- package/lib/keyboard/layouts/en-intl.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/en-intl.win.js +169 -0
- package/lib/keyboard/layouts/en-intl.win.js.map +1 -0
- package/lib/keyboard/layouts/en-uk.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/en-uk.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/en-uk.darwin.js +132 -0
- package/lib/keyboard/layouts/en-uk.darwin.js.map +1 -0
- package/lib/keyboard/layouts/en-uk.win.d.ts +2 -0
- package/lib/keyboard/layouts/en-uk.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/en-uk.win.js +169 -0
- package/lib/keyboard/layouts/en-uk.win.js.map +1 -0
- package/lib/keyboard/layouts/en.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/en.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/en.darwin.js +140 -0
- package/lib/keyboard/layouts/en.darwin.js.map +1 -0
- package/lib/keyboard/layouts/en.linux.d.ts +2 -0
- package/lib/keyboard/layouts/en.linux.d.ts.map +1 -0
- package/lib/keyboard/layouts/en.linux.js +189 -0
- package/lib/keyboard/layouts/en.linux.js.map +1 -0
- package/lib/keyboard/layouts/en.win.d.ts +2 -0
- package/lib/keyboard/layouts/en.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/en.win.js +174 -0
- package/lib/keyboard/layouts/en.win.js.map +1 -0
- package/lib/keyboard/layouts/es-latin.win.d.ts +2 -0
- package/lib/keyboard/layouts/es-latin.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/es-latin.win.js +169 -0
- package/lib/keyboard/layouts/es-latin.win.js.map +1 -0
- package/lib/keyboard/layouts/es.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/es.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/es.darwin.js +132 -0
- package/lib/keyboard/layouts/es.darwin.js.map +1 -0
- package/lib/keyboard/layouts/es.linux.d.ts +2 -0
- package/lib/keyboard/layouts/es.linux.d.ts.map +1 -0
- package/lib/keyboard/layouts/es.linux.js +187 -0
- package/lib/keyboard/layouts/es.linux.js.map +1 -0
- package/lib/keyboard/layouts/es.win.d.ts +2 -0
- package/lib/keyboard/layouts/es.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/es.win.js +169 -0
- package/lib/keyboard/layouts/es.win.js.map +1 -0
- package/lib/keyboard/layouts/fr.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/fr.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/fr.darwin.js +132 -0
- package/lib/keyboard/layouts/fr.darwin.js.map +1 -0
- package/lib/keyboard/layouts/fr.linux.d.ts +2 -0
- package/lib/keyboard/layouts/fr.linux.d.ts.map +1 -0
- package/lib/keyboard/layouts/fr.linux.js +187 -0
- package/lib/keyboard/layouts/fr.linux.js.map +1 -0
- package/lib/keyboard/layouts/fr.win.d.ts +2 -0
- package/lib/keyboard/layouts/fr.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/fr.win.js +169 -0
- package/lib/keyboard/layouts/fr.win.js.map +1 -0
- package/lib/keyboard/layouts/hu.win.d.ts +2 -0
- package/lib/keyboard/layouts/hu.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/hu.win.js +169 -0
- package/lib/keyboard/layouts/hu.win.js.map +1 -0
- package/lib/keyboard/layouts/it.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/it.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/it.darwin.js +132 -0
- package/lib/keyboard/layouts/it.darwin.js.map +1 -0
- package/lib/keyboard/layouts/it.win.d.ts +2 -0
- package/lib/keyboard/layouts/it.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/it.win.js +169 -0
- package/lib/keyboard/layouts/it.win.js.map +1 -0
- package/lib/keyboard/layouts/jp-roman.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/jp-roman.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/jp-roman.darwin.js +132 -0
- package/lib/keyboard/layouts/jp-roman.darwin.js.map +1 -0
- package/lib/keyboard/layouts/jp.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/jp.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/jp.darwin.js +132 -0
- package/lib/keyboard/layouts/jp.darwin.js.map +1 -0
- package/lib/keyboard/layouts/ko.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/ko.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/ko.darwin.js +132 -0
- package/lib/keyboard/layouts/ko.darwin.js.map +1 -0
- package/lib/keyboard/layouts/layout.contribution.d.ts +3 -0
- package/lib/keyboard/layouts/layout.contribution.d.ts.map +1 -0
- package/lib/keyboard/layouts/layout.contribution.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/layout.contribution.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/layout.contribution.darwin.js +27 -0
- package/lib/keyboard/layouts/layout.contribution.darwin.js.map +1 -0
- package/lib/keyboard/layouts/layout.contribution.js +11 -0
- package/lib/keyboard/layouts/layout.contribution.js.map +1 -0
- package/lib/keyboard/layouts/layout.contribution.linux.d.ts +2 -0
- package/lib/keyboard/layouts/layout.contribution.linux.d.ts.map +1 -0
- package/lib/keyboard/layouts/layout.contribution.linux.js +16 -0
- package/lib/keyboard/layouts/layout.contribution.linux.js.map +1 -0
- package/lib/keyboard/layouts/layout.contribution.win.d.ts +2 -0
- package/lib/keyboard/layouts/layout.contribution.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/layout.contribution.win.js +33 -0
- package/lib/keyboard/layouts/layout.contribution.win.js.map +1 -0
- package/lib/keyboard/layouts/no.win.d.ts +2 -0
- package/lib/keyboard/layouts/no.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/no.win.js +169 -0
- package/lib/keyboard/layouts/no.win.js.map +1 -0
- package/lib/keyboard/layouts/pl.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/pl.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/pl.darwin.js +132 -0
- package/lib/keyboard/layouts/pl.darwin.js.map +1 -0
- package/lib/keyboard/layouts/pl.win.d.ts +2 -0
- package/lib/keyboard/layouts/pl.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/pl.win.js +169 -0
- package/lib/keyboard/layouts/pl.win.js.map +1 -0
- package/lib/keyboard/layouts/pt-br.win.d.ts +2 -0
- package/lib/keyboard/layouts/pt-br.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/pt-br.win.js +169 -0
- package/lib/keyboard/layouts/pt-br.win.js.map +1 -0
- package/lib/keyboard/layouts/pt.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/pt.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/pt.darwin.js +132 -0
- package/lib/keyboard/layouts/pt.darwin.js.map +1 -0
- package/lib/keyboard/layouts/pt.win.d.ts +2 -0
- package/lib/keyboard/layouts/pt.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/pt.win.js +169 -0
- package/lib/keyboard/layouts/pt.win.js.map +1 -0
- package/lib/keyboard/layouts/ru.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/ru.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/ru.darwin.js +132 -0
- package/lib/keyboard/layouts/ru.darwin.js.map +1 -0
- package/lib/keyboard/layouts/ru.linux.d.ts +2 -0
- package/lib/keyboard/layouts/ru.linux.d.ts.map +1 -0
- package/lib/keyboard/layouts/ru.linux.js +187 -0
- package/lib/keyboard/layouts/ru.linux.js.map +1 -0
- package/lib/keyboard/layouts/ru.win.d.ts +2 -0
- package/lib/keyboard/layouts/ru.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/ru.win.js +169 -0
- package/lib/keyboard/layouts/ru.win.js.map +1 -0
- package/lib/keyboard/layouts/sv.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/sv.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/sv.darwin.js +132 -0
- package/lib/keyboard/layouts/sv.darwin.js.map +1 -0
- package/lib/keyboard/layouts/sv.win.d.ts +2 -0
- package/lib/keyboard/layouts/sv.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/sv.win.js +171 -0
- package/lib/keyboard/layouts/sv.win.js.map +1 -0
- package/lib/keyboard/layouts/thai.win.d.ts +2 -0
- package/lib/keyboard/layouts/thai.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/thai.win.js +169 -0
- package/lib/keyboard/layouts/thai.win.js.map +1 -0
- package/lib/keyboard/layouts/tr.win.d.ts +2 -0
- package/lib/keyboard/layouts/tr.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/tr.win.js +169 -0
- package/lib/keyboard/layouts/tr.win.js.map +1 -0
- package/lib/keyboard/layouts/zh-hans.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/zh-hans.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/zh-hans.darwin.js +132 -0
- package/lib/keyboard/layouts/zh-hans.darwin.js.map +1 -0
- package/lib/layout/accordion/tab-bar-toolbar.d.ts +25 -0
- package/lib/layout/accordion/tab-bar-toolbar.d.ts.map +1 -0
- package/lib/layout/accordion/tab-bar-toolbar.js +37 -0
- package/lib/layout/accordion/tab-bar-toolbar.js.map +1 -0
- package/lib/layout/accordion/view-context-key.registry.d.ts +9 -0
- package/lib/layout/accordion/view-context-key.registry.d.ts.map +1 -0
- package/lib/layout/accordion/view-context-key.registry.js +38 -0
- package/lib/layout/accordion/view-context-key.registry.js.map +1 -0
- package/lib/layout/index.d.ts +103 -0
- package/lib/layout/index.d.ts.map +1 -0
- package/lib/layout/index.js +143 -0
- package/lib/layout/index.js.map +1 -0
- package/lib/layout/layout-state.d.ts +24 -0
- package/lib/layout/layout-state.d.ts.map +1 -0
- package/lib/layout/layout-state.js +99 -0
- package/lib/layout/layout-state.js.map +1 -0
- package/lib/logger/browser-logger.d.ts +17 -0
- package/lib/logger/browser-logger.d.ts.map +1 -0
- package/lib/logger/browser-logger.js +50 -0
- package/lib/logger/browser-logger.js.map +1 -0
- package/lib/logger/index.d.ts +2 -0
- package/lib/logger/index.d.ts.map +1 -0
- package/lib/logger/index.js +5 -0
- package/lib/logger/index.js.map +1 -0
- package/lib/menu/next/base.d.ts +242 -0
- package/lib/menu/next/base.d.ts.map +1 -0
- package/lib/menu/next/base.js +267 -0
- package/lib/menu/next/base.js.map +1 -0
- package/lib/menu/next/ctxmenu-service.d.ts +42 -0
- package/lib/menu/next/ctxmenu-service.d.ts.map +1 -0
- package/lib/menu/next/ctxmenu-service.js +151 -0
- package/lib/menu/next/ctxmenu-service.js.map +1 -0
- package/lib/menu/next/index.d.ts +11 -0
- package/lib/menu/next/index.d.ts.map +1 -0
- package/lib/menu/next/index.js +14 -0
- package/lib/menu/next/index.js.map +1 -0
- package/lib/menu/next/menu-id.d.ts +59 -0
- package/lib/menu/next/menu-id.d.ts.map +1 -0
- package/lib/menu/next/menu-id.js +73 -0
- package/lib/menu/next/menu-id.js.map +1 -0
- package/lib/menu/next/menu-service.d.ts +9 -0
- package/lib/menu/next/menu-service.d.ts.map +1 -0
- package/lib/menu/next/menu-service.js +205 -0
- package/lib/menu/next/menu-service.js.map +1 -0
- package/lib/menu/next/menu-util.d.ts +18 -0
- package/lib/menu/next/menu-util.d.ts.map +1 -0
- package/lib/menu/next/menu-util.js +64 -0
- package/lib/menu/next/menu-util.js.map +1 -0
- package/lib/menu/next/menu.contrib.interface.d.ts +22 -0
- package/lib/menu/next/menu.contrib.interface.d.ts.map +1 -0
- package/lib/menu/next/menu.contrib.interface.js +9 -0
- package/lib/menu/next/menu.contrib.interface.js.map +1 -0
- package/lib/menu/next/menu.interface.d.ts +100 -0
- package/lib/menu/next/menu.interface.d.ts.map +1 -0
- package/lib/menu/next/menu.interface.js +192 -0
- package/lib/menu/next/menu.interface.js.map +1 -0
- package/lib/menu/next/menubar-service.d.ts +53 -0
- package/lib/menu/next/menubar-service.d.ts.map +1 -0
- package/lib/menu/next/menubar-service.js +178 -0
- package/lib/menu/next/menubar-service.js.map +1 -0
- package/lib/menu/next/renderer/ctxmenu/base.d.ts +19 -0
- package/lib/menu/next/renderer/ctxmenu/base.d.ts.map +1 -0
- package/lib/menu/next/renderer/ctxmenu/base.js +7 -0
- package/lib/menu/next/renderer/ctxmenu/base.js.map +1 -0
- package/lib/menu/next/renderer/ctxmenu/browser.d.ts +19 -0
- package/lib/menu/next/renderer/ctxmenu/browser.d.ts.map +1 -0
- package/lib/menu/next/renderer/ctxmenu/browser.js +40 -0
- package/lib/menu/next/renderer/ctxmenu/browser.js.map +1 -0
- package/lib/menu/next/renderer/ctxmenu/electron.d.ts +34 -0
- package/lib/menu/next/renderer/ctxmenu/electron.d.ts.map +1 -0
- package/lib/menu/next/renderer/ctxmenu/electron.js +198 -0
- package/lib/menu/next/renderer/ctxmenu/electron.js.map +1 -0
- package/lib/menu/next/toolbar-action.service.d.ts +50 -0
- package/lib/menu/next/toolbar-action.service.d.ts.map +1 -0
- package/lib/menu/next/toolbar-action.service.js +93 -0
- package/lib/menu/next/toolbar-action.service.js.map +1 -0
- package/lib/monaco/index.d.ts +99 -0
- package/lib/monaco/index.d.ts.map +1 -0
- package/lib/monaco/index.js +32 -0
- package/lib/monaco/index.js.map +1 -0
- package/lib/opener/command-opener.d.ts +12 -0
- package/lib/opener/command-opener.d.ts.map +1 -0
- package/lib/opener/command-opener.js +49 -0
- package/lib/opener/command-opener.js.map +1 -0
- package/lib/opener/default-opener.d.ts +8 -0
- package/lib/opener/default-opener.d.ts.map +1 -0
- package/lib/opener/default-opener.js +32 -0
- package/lib/opener/default-opener.js.map +1 -0
- package/lib/opener/http-opener.d.ts +9 -0
- package/lib/opener/http-opener.d.ts.map +1 -0
- package/lib/opener/http-opener.js +33 -0
- package/lib/opener/http-opener.js.map +1 -0
- package/lib/opener/index.d.ts +16 -0
- package/lib/opener/index.d.ts.map +1 -0
- package/lib/opener/index.js +6 -0
- package/lib/opener/index.js.map +1 -0
- package/lib/opener/opener.contribution.d.ts +14 -0
- package/lib/opener/opener.contribution.d.ts.map +1 -0
- package/lib/opener/opener.contribution.js +63 -0
- package/lib/opener/opener.contribution.js.map +1 -0
- package/lib/opener/opener.service.d.ts +14 -0
- package/lib/opener/opener.service.d.ts.map +1 -0
- package/lib/opener/opener.service.js +67 -0
- package/lib/opener/opener.service.js.map +1 -0
- package/lib/preferences/early-preferences.d.ts +24 -0
- package/lib/preferences/early-preferences.d.ts.map +1 -0
- package/lib/preferences/early-preferences.js +96 -0
- package/lib/preferences/early-preferences.js.map +1 -0
- package/lib/preferences/index.d.ts +9 -0
- package/lib/preferences/index.d.ts.map +1 -0
- package/lib/preferences/index.js +12 -0
- package/lib/preferences/index.js.map +1 -0
- package/lib/preferences/preference-configurations.d.ts +22 -0
- package/lib/preferences/preference-configurations.d.ts.map +1 -0
- package/lib/preferences/preference-configurations.js +68 -0
- package/lib/preferences/preference-configurations.js.map +1 -0
- package/lib/preferences/preference-contribution.d.ts +82 -0
- package/lib/preferences/preference-contribution.d.ts.map +1 -0
- package/lib/preferences/preference-contribution.js +325 -0
- package/lib/preferences/preference-contribution.js.map +1 -0
- package/lib/preferences/preference-provider.d.ts +117 -0
- package/lib/preferences/preference-provider.d.ts.map +1 -0
- package/lib/preferences/preference-provider.js +275 -0
- package/lib/preferences/preference-provider.js.map +1 -0
- package/lib/preferences/preference-proxy.d.ts +45 -0
- package/lib/preferences/preference-proxy.d.ts.map +1 -0
- package/lib/preferences/preference-proxy.js +195 -0
- package/lib/preferences/preference-proxy.js.map +1 -0
- package/lib/preferences/preference-scope.d.ts +3 -0
- package/lib/preferences/preference-scope.d.ts.map +1 -0
- package/lib/preferences/preference-scope.js +6 -0
- package/lib/preferences/preference-scope.js.map +1 -0
- package/lib/preferences/preference-service.d.ts +194 -0
- package/lib/preferences/preference-service.d.ts.map +1 -0
- package/lib/preferences/preference-service.js +425 -0
- package/lib/preferences/preference-service.js.map +1 -0
- package/lib/preferences/settings.d.ts +41 -0
- package/lib/preferences/settings.d.ts.map +1 -0
- package/lib/preferences/settings.js +5 -0
- package/lib/preferences/settings.js.map +1 -0
- package/lib/progress/index.d.ts +36 -0
- package/lib/progress/index.d.ts.map +1 -0
- package/lib/progress/index.js +10 -0
- package/lib/progress/index.js.map +1 -0
- package/lib/progress/progress-bar.d.ts +7 -0
- package/lib/progress/progress-bar.d.ts.map +1 -0
- package/lib/progress/progress-bar.js +14 -0
- package/lib/progress/progress-bar.js.map +1 -0
- package/lib/progress/progress-indicator.d.ts +12 -0
- package/lib/progress/progress-indicator.d.ts.map +1 -0
- package/lib/progress/progress-indicator.js +106 -0
- package/lib/progress/progress-indicator.js.map +1 -0
- package/lib/progress/progress.module.less +40 -0
- package/lib/progress/progress.service.d.ts +19 -0
- package/lib/progress/progress.service.d.ts.map +1 -0
- package/lib/progress/progress.service.js +343 -0
- package/lib/progress/progress.service.js.map +1 -0
- package/lib/quick-open/index.d.ts +467 -0
- package/lib/quick-open/index.d.ts.map +1 -0
- package/lib/quick-open/index.js +145 -0
- package/lib/quick-open/index.js.map +1 -0
- package/lib/quick-open/recent-files.d.ts +11 -0
- package/lib/quick-open/recent-files.d.ts.map +1 -0
- package/lib/quick-open/recent-files.js +73 -0
- package/lib/quick-open/recent-files.js.map +1 -0
- package/lib/raw-context-key.d.ts +57 -0
- package/lib/raw-context-key.d.ts.map +1 -0
- package/lib/raw-context-key.js +96 -0
- package/lib/raw-context-key.js.map +1 -0
- package/lib/react-hooks/event.d.ts +11 -0
- package/lib/react-hooks/event.d.ts.map +1 -0
- package/lib/react-hooks/event.js +64 -0
- package/lib/react-hooks/event.js.map +1 -0
- package/lib/react-hooks/hot-key.d.ts +5 -0
- package/lib/react-hooks/hot-key.d.ts.map +1 -0
- package/lib/react-hooks/hot-key.js +48 -0
- package/lib/react-hooks/hot-key.js.map +1 -0
- package/lib/react-hooks/index.d.ts +4 -0
- package/lib/react-hooks/index.d.ts.map +1 -0
- package/lib/react-hooks/index.js +7 -0
- package/lib/react-hooks/index.js.map +1 -0
- package/lib/react-hooks/injectable-hooks.d.ts +3 -0
- package/lib/react-hooks/injectable-hooks.d.ts.map +1 -0
- package/lib/react-hooks/injectable-hooks.js +33 -0
- package/lib/react-hooks/injectable-hooks.js.map +1 -0
- package/lib/react-hooks/portal-hooks.d.ts +2 -0
- package/lib/react-hooks/portal-hooks.d.ts.map +1 -0
- package/lib/react-hooks/portal-hooks.js +36 -0
- package/lib/react-hooks/portal-hooks.js.map +1 -0
- package/lib/react-providers/config-provider.d.ts +182 -0
- package/lib/react-providers/config-provider.d.ts.map +1 -0
- package/lib/react-providers/config-provider.js +24 -0
- package/lib/react-providers/config-provider.js.map +1 -0
- package/lib/react-providers/index.d.ts +3 -0
- package/lib/react-providers/index.d.ts.map +1 -0
- package/lib/react-providers/index.js +6 -0
- package/lib/react-providers/index.js.map +1 -0
- package/lib/react-providers/slot.d.ts +73 -0
- package/lib/react-providers/slot.d.ts.map +1 -0
- package/lib/react-providers/slot.js +184 -0
- package/lib/react-providers/slot.js.map +1 -0
- package/lib/services/clipboard.service.d.ts +17 -0
- package/lib/services/clipboard.service.d.ts.map +1 -0
- package/lib/services/clipboard.service.js +57 -0
- package/lib/services/clipboard.service.js.map +1 -0
- package/lib/services/credentials-service.d.ts +36 -0
- package/lib/services/credentials-service.d.ts.map +1 -0
- package/lib/services/credentials-service.js +62 -0
- package/lib/services/credentials-service.js.map +1 -0
- package/lib/services/cryptr-service.d.ts +11 -0
- package/lib/services/cryptr-service.d.ts.map +1 -0
- package/lib/services/cryptr-service.js +24 -0
- package/lib/services/cryptr-service.js.map +1 -0
- package/lib/services/external-uri.service.d.ts +28 -0
- package/lib/services/external-uri.service.d.ts.map +1 -0
- package/lib/services/external-uri.service.js +58 -0
- package/lib/services/external-uri.service.js.map +1 -0
- package/lib/services/index.d.ts +8 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +11 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/label-service.d.ts +74 -0
- package/lib/services/label-service.d.ts.map +1 -0
- package/lib/services/label-service.js +306 -0
- package/lib/services/label-service.js.map +1 -0
- package/lib/services/status-bar-service.d.ts +86 -0
- package/lib/services/status-bar-service.d.ts.map +1 -0
- package/lib/services/status-bar-service.js +25 -0
- package/lib/services/status-bar-service.js.map +1 -0
- package/lib/services/storage-service.d.ts +72 -0
- package/lib/services/storage-service.d.ts.map +1 -0
- package/lib/services/storage-service.js +128 -0
- package/lib/services/storage-service.js.map +1 -0
- package/lib/style/codicons/README.md +32 -0
- package/lib/style/codicons/codicon-animations.css +15 -0
- package/lib/style/entry.less +25 -0
- package/lib/style/icon/fileicons/file-default.svg +1 -0
- package/lib/style/icon/fileicons/folder-default.svg +1 -0
- package/lib/style/icon/fileicons.less +9 -0
- package/lib/style/icon/icon.d.ts +19 -0
- package/lib/style/icon/icon.d.ts.map +1 -0
- package/lib/style/icon/icon.js +64 -0
- package/lib/style/icon/icon.js.map +1 -0
- package/lib/style/icon/ide-iconfont.d.ts +5 -0
- package/lib/style/icon/ide-iconfont.d.ts.map +1 -0
- package/lib/style/icon/ide-iconfont.js +10 -0
- package/lib/style/icon/ide-iconfont.js.map +1 -0
- package/lib/style/icon/index.less +54 -0
- package/lib/style/icon/seti.woff +0 -0
- package/lib/style/icon/symbol-icons/boolean-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/boolean-light.svg +3 -0
- package/lib/style/icon/symbol-icons/class-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/class-light.svg +3 -0
- package/lib/style/icon/symbol-icons/constant-dark.svg +4 -0
- package/lib/style/icon/symbol-icons/constant-light.svg +4 -0
- package/lib/style/icon/symbol-icons/enumerator-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/enumerator-item-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/enumerator-item-light.svg +3 -0
- package/lib/style/icon/symbol-icons/enumerator-light.svg +3 -0
- package/lib/style/icon/symbol-icons/event-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/event-light.svg +3 -0
- package/lib/style/icon/symbol-icons/field-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/field-light.svg +3 -0
- package/lib/style/icon/symbol-icons/file-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/file-light.svg +3 -0
- package/lib/style/icon/symbol-icons/indexer-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/indexer-light.svg +3 -0
- package/lib/style/icon/symbol-icons/interface-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/interface-light.svg +3 -0
- package/lib/style/icon/symbol-icons/keyword-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/keyword-light.svg +3 -0
- package/lib/style/icon/symbol-icons/method-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/method-light.svg +3 -0
- package/lib/style/icon/symbol-icons/namespace-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/namespace-light.svg +3 -0
- package/lib/style/icon/symbol-icons/numeric-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/numeric-light.svg +3 -0
- package/lib/style/icon/symbol-icons/operator-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/operator-light.svg +3 -0
- package/lib/style/icon/symbol-icons/property-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/property-light.svg +3 -0
- package/lib/style/icon/symbol-icons/snippet-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/snippet-light.svg +3 -0
- package/lib/style/icon/symbol-icons/string-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/string-light.svg +3 -0
- package/lib/style/icon/symbol-icons/structure-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/structure-light.svg +3 -0
- package/lib/style/icon/symbol-icons/symbol-icons.css +284 -0
- package/lib/style/icon/symbol-icons/template-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/template-light.svg +3 -0
- package/lib/style/icon/symbol-icons/variable-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/variable-light.svg +3 -0
- package/lib/style/icon.less +8 -0
- package/lib/style/index.less +14 -0
- package/lib/style/monaco-override.less +86 -0
- package/lib/style/normalize.less +89 -0
- package/lib/style/octicons/octicons-cdn.css +269 -0
- package/lib/style/octicons/octicons.css +263 -0
- package/lib/style/octicons/octicons.html +1882 -0
- package/lib/style/octicons/octicons.svg +582 -0
- package/lib/style/octicons/octicons.ttf +0 -0
- package/lib/style/override.less +80 -0
- package/lib/style/toolbar.less +193 -0
- package/lib/style/utilities.less +18 -0
- package/lib/style/variable.less +16 -0
- package/lib/toolbar/components/auto-complete.d.ts +1 -0
- package/lib/toolbar/components/auto-complete.d.ts.map +1 -0
- package/lib/toolbar/components/auto-complete.js +2 -0
- package/lib/toolbar/components/auto-complete.js.map +1 -0
- package/lib/toolbar/components/button.d.ts +11 -0
- package/lib/toolbar/components/button.d.ts.map +1 -0
- package/lib/toolbar/components/button.js +324 -0
- package/lib/toolbar/components/button.js.map +1 -0
- package/lib/toolbar/components/index.d.ts +3 -0
- package/lib/toolbar/components/index.d.ts.map +1 -0
- package/lib/toolbar/components/index.js +6 -0
- package/lib/toolbar/components/index.js.map +1 -0
- package/lib/toolbar/components/select.d.ts +5 -0
- package/lib/toolbar/components/select.d.ts.map +1 -0
- package/lib/toolbar/components/select.js +161 -0
- package/lib/toolbar/components/select.js.map +1 -0
- package/lib/toolbar/index.d.ts +4 -0
- package/lib/toolbar/index.d.ts.map +1 -0
- package/lib/toolbar/index.js +9 -0
- package/lib/toolbar/index.js.map +1 -0
- package/lib/toolbar/toolbar.d.ts +17 -0
- package/lib/toolbar/toolbar.d.ts.map +1 -0
- package/lib/toolbar/toolbar.js +508 -0
- package/lib/toolbar/toolbar.js.map +1 -0
- package/lib/toolbar/toolbar.popover.registry.d.ts +11 -0
- package/lib/toolbar/toolbar.popover.registry.d.ts.map +1 -0
- package/lib/toolbar/toolbar.popover.registry.js +36 -0
- package/lib/toolbar/toolbar.popover.registry.js.map +1 -0
- package/lib/toolbar/toolbar.registry.d.ts +46 -0
- package/lib/toolbar/toolbar.registry.d.ts.map +1 -0
- package/lib/toolbar/toolbar.registry.js +283 -0
- package/lib/toolbar/toolbar.registry.js.map +1 -0
- package/lib/toolbar/types.d.ts +286 -0
- package/lib/toolbar/types.d.ts.map +1 -0
- package/lib/toolbar/types.js +18 -0
- package/lib/toolbar/types.js.map +1 -0
- package/lib/tree/index.d.ts +4 -0
- package/lib/tree/index.d.ts.map +1 -0
- package/lib/tree/index.js +7 -0
- package/lib/tree/index.js.map +1 -0
- package/lib/tree/tree-expansion.d.ts +16 -0
- package/lib/tree/tree-expansion.d.ts.map +1 -0
- package/lib/tree/tree-expansion.js +20 -0
- package/lib/tree/tree-expansion.js.map +1 -0
- package/lib/tree/tree-selection.d.ts +48 -0
- package/lib/tree/tree-selection.d.ts.map +1 -0
- package/lib/tree/tree-selection.js +64 -0
- package/lib/tree/tree-selection.js.map +1 -0
- package/lib/tree/tree.d.ts +195 -0
- package/lib/tree/tree.d.ts.map +1 -0
- package/lib/tree/tree.js +108 -0
- package/lib/tree/tree.js.map +1 -0
- package/lib/utils/create-overlay.d.ts +8 -0
- package/lib/utils/create-overlay.d.ts.map +1 -0
- package/lib/utils/create-overlay.js +50 -0
- package/lib/utils/create-overlay.js.map +1 -0
- package/lib/utils/electron.d.ts +23 -0
- package/lib/utils/electron.d.ts.map +1 -0
- package/lib/utils/electron.js +56 -0
- package/lib/utils/electron.js.map +1 -0
- package/lib/utils/env.d.ts +4 -0
- package/lib/utils/env.d.ts.map +1 -0
- package/lib/utils/env.js +31 -0
- package/lib/utils/env.js.map +1 -0
- package/lib/utils/icon.d.ts +7 -0
- package/lib/utils/icon.d.ts.map +1 -0
- package/lib/utils/icon.js +18 -0
- package/lib/utils/icon.js.map +1 -0
- package/lib/utils/index.d.ts +6 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/index.js +9 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/parse.d.ts +25 -0
- package/lib/utils/parse.d.ts.map +1 -0
- package/lib/utils/parse.js +72 -0
- package/lib/utils/parse.js.map +1 -0
- package/lib/utils/react-hooks.d.ts +12 -0
- package/lib/utils/react-hooks.d.ts.map +1 -0
- package/lib/utils/react-hooks.js +84 -0
- package/lib/utils/react-hooks.js.map +1 -0
- package/lib/variable/index.d.ts +2 -0
- package/lib/variable/index.d.ts.map +1 -0
- package/lib/variable/index.js +5 -0
- package/lib/variable/index.js.map +1 -0
- package/lib/variable/variable.d.ts +49 -0
- package/lib/variable/variable.d.ts.map +1 -0
- package/lib/variable/variable.js +56 -0
- package/lib/variable/variable.js.map +1 -0
- package/lib/window/index.d.ts +25 -0
- package/lib/window/index.d.ts.map +1 -0
- package/lib/window/index.js +5 -0
- package/lib/window/index.js.map +1 -0
- package/lib/window/window.service.d.ts +14 -0
- package/lib/window/window.service.d.ts.map +1 -0
- package/lib/window/window.service.js +103 -0
- package/lib/window/window.service.js.map +1 -0
- package/package.json +55 -0
|
Binary file
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
@import "~@opensumi/ide-components/lib/style/mixins.less";
|
|
2
|
+
@import "./variable.less";
|
|
3
|
+
|
|
4
|
+
.overrideMenu(@n, @i: 1) when (@i =< @n) {
|
|
5
|
+
@clsx: extract(@menuClx, @i);
|
|
6
|
+
|
|
7
|
+
.kt-menu {
|
|
8
|
+
&.@{clsx}, .@{clsx} {
|
|
9
|
+
padding: 2px 0px !important;
|
|
10
|
+
color: var(--menu-foreground) !important;
|
|
11
|
+
background-color: var(--menu-background) !important;
|
|
12
|
+
border: none !important;
|
|
13
|
+
.overlay-shadow(var(--kt-menu-shadow)) !important;
|
|
14
|
+
border-radius: 0 !important;
|
|
15
|
+
min-width: 200px;
|
|
16
|
+
|
|
17
|
+
.@{clsx}-item,
|
|
18
|
+
.@{clsx}-submenu-title {
|
|
19
|
+
margin: 0 !important;
|
|
20
|
+
padding: 3px 4px !important;
|
|
21
|
+
height: 26px !important;
|
|
22
|
+
display: flex !important;
|
|
23
|
+
align-items: center !important;
|
|
24
|
+
color: inherit !important;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.@{clsx}-submenu-title:hover {
|
|
28
|
+
color: inherit !important;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.@{clsx}-item:not(.@{clsx}-item-disabled) {
|
|
32
|
+
cursor: default !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.@{clsx}-item-disabled {
|
|
36
|
+
color: var(--kt-menu-disableForeground) !important;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.@{clsx}-item-divider {
|
|
40
|
+
margin: 3px 0 !important;
|
|
41
|
+
pointer-events: none !important;
|
|
42
|
+
background-color: var(--menu-separatorBackground) !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.@{clsx}-item-active,
|
|
46
|
+
.@{clsx}-item-open,
|
|
47
|
+
.@{clsx}-item-selected,
|
|
48
|
+
.@{clsx}-submenu-active,
|
|
49
|
+
.@{clsx}-submenu-open,
|
|
50
|
+
.@{clsx}-submenu-selected {
|
|
51
|
+
background: var(--menu-selectionBackground) !important;
|
|
52
|
+
color: var(--menu-selectionForeground) !important;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.@{clsx}-submenu-arrow {
|
|
56
|
+
display: none;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// 解决 antd 弹出元素防穿透的背景色
|
|
61
|
+
&.@{clsx}-submenu {
|
|
62
|
+
.overlay-shadow(var(--kt-menu-shadow)) !important;
|
|
63
|
+
border-radius: 0 !important;
|
|
64
|
+
min-width: 120px;
|
|
65
|
+
background-color: var(--menu-background) !important;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.overrideMenu(@n, (@i + 1));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@menuClx: kt-inner-menu, kt-dropdown-menu;
|
|
73
|
+
|
|
74
|
+
.overrideMenu(length(@menuClx));
|
|
75
|
+
|
|
76
|
+
.monaco-editor {
|
|
77
|
+
h1, h2, h3, h4, h5, h6, p {
|
|
78
|
+
color: var(--foreground);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
@import "~@opensumi/ide-components/lib/style/mixins.less";
|
|
2
|
+
|
|
3
|
+
.kt-toolbar-location {
|
|
4
|
+
position: relative;
|
|
5
|
+
background-color: var(--kt-menubar-background);
|
|
6
|
+
.kt-toolbar-location-visible.kt-toolbar-location-no-actions{
|
|
7
|
+
display:none;
|
|
8
|
+
}
|
|
9
|
+
> div {
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
}
|
|
13
|
+
.kt-toolbar-action-btn-title {
|
|
14
|
+
white-space: nowrap;
|
|
15
|
+
}
|
|
16
|
+
.kt-toolbar-location-visible, .kt-toolbar-location-dropdown {
|
|
17
|
+
width: 100%;
|
|
18
|
+
display: flex;
|
|
19
|
+
padding: 0 5px;
|
|
20
|
+
> div {
|
|
21
|
+
margin-left: 5px;
|
|
22
|
+
&:first-child {
|
|
23
|
+
margin-left:0;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
.kt-toolbar-action-wrapper-compact-middle, .kt-toolbar-action-wrapper-compact-tail {
|
|
27
|
+
margin-left: 0;
|
|
28
|
+
}
|
|
29
|
+
.kt-toolbar-more {
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
position: relative;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// button
|
|
36
|
+
.kt-toolbar-action-btn {
|
|
37
|
+
display: flex;
|
|
38
|
+
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
&.kt-toolbar-action-btn-vertical {
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
font-size: 12px;
|
|
45
|
+
.kt-toolbar-action-btn-title {
|
|
46
|
+
line-height: 24px;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
&.kt-toolbar-action-btn-horizontal {
|
|
50
|
+
|
|
51
|
+
&.kt-toolbar-action-btn-inline {
|
|
52
|
+
|
|
53
|
+
}
|
|
54
|
+
&.kt-toolbar-action-btn-button {
|
|
55
|
+
padding: 0px 5px;
|
|
56
|
+
background: #43484D; /* TODO: */
|
|
57
|
+
border-radius: 2px;
|
|
58
|
+
&:hover {
|
|
59
|
+
background: #5F656B; /* TODO: */
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
.kt-toolbar-action-btn-icon {
|
|
63
|
+
margin-right: 4px;
|
|
64
|
+
position: relative;
|
|
65
|
+
top: 1px;
|
|
66
|
+
}
|
|
67
|
+
.kt-toolbar-action-btn-icon:last-child {
|
|
68
|
+
margin-right: 0;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.kt-toolbar-action-wrapper-compact:not(.kt-toolbar-action-wrapper-compact-head) {
|
|
74
|
+
.kt-toolbar-action-btn-wrapper > .kt-button{
|
|
75
|
+
border-top-left-radius: 0;
|
|
76
|
+
border-bottom-left-radius: 0;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.kt-toolbar-action-wrapper-compact-middle, .kt-toolbar-action-wrapper-compact-tail:not(.kt-toolbar-action-wrapper-compact-head){
|
|
81
|
+
.kt-toolbar-action-btn-wrapper > .kt-button{
|
|
82
|
+
border-left: 1px solid var(--kt-actionbar-separatorBackground);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.kt-toolbar-action-wrapper-compact:not(.kt-toolbar-action-wrapper-compact-tail) {
|
|
87
|
+
.kt-toolbar-action-btn-wrapper > .kt-button{
|
|
88
|
+
border-top-right-radius: 0;
|
|
89
|
+
border-bottom-right-radius: 0;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.kt-toolbar-action-split {
|
|
94
|
+
border-right: 1px solid rgba(0,0,0,.25);
|
|
95
|
+
height: 18px;
|
|
96
|
+
}
|
|
97
|
+
&.action-btn-in-dropdown {
|
|
98
|
+
flex-direction: row;
|
|
99
|
+
padding: 2px 7px;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.kt-toolbar-location-dropdown {
|
|
104
|
+
position: fixed;
|
|
105
|
+
z-index: 10;
|
|
106
|
+
display: block;
|
|
107
|
+
background-color: var(--kt-menubar-background);
|
|
108
|
+
.kt-toolbar-action-btn {
|
|
109
|
+
display: flex;
|
|
110
|
+
align-items: center;
|
|
111
|
+
font-size:12px;
|
|
112
|
+
cursor: pointer;
|
|
113
|
+
background: var(--menu-background);
|
|
114
|
+
&:hover {
|
|
115
|
+
background: var(--menubar-selectionBackground);
|
|
116
|
+
}
|
|
117
|
+
&.action-btn-in-dropdown {
|
|
118
|
+
flex-direction: row;
|
|
119
|
+
padding: 5px 20px;
|
|
120
|
+
}
|
|
121
|
+
.kt-toolbar-action-btn-icon {
|
|
122
|
+
margin-right: 4px;
|
|
123
|
+
position: relative;
|
|
124
|
+
top: 1px;
|
|
125
|
+
}
|
|
126
|
+
&.kt-toolbar-action-select {
|
|
127
|
+
position: relative;
|
|
128
|
+
padding-right: 30px;
|
|
129
|
+
.kt-toolbar-action-select-right {
|
|
130
|
+
position: absolute;
|
|
131
|
+
right: 0;
|
|
132
|
+
top: 4px;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.kt-toolbar-action-split {
|
|
138
|
+
border-top: 1px solid rgba(0,0,0,.25);
|
|
139
|
+
width:100%;
|
|
140
|
+
}
|
|
141
|
+
.overlay-shadow();
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.kt-toolbar-action-select-dropdown {
|
|
145
|
+
position: absolute;
|
|
146
|
+
width: 150px;
|
|
147
|
+
max-width: none;
|
|
148
|
+
display: block;
|
|
149
|
+
z-index: 11;
|
|
150
|
+
visibility: hidden;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.kt-toolbar-action-wrapper {
|
|
154
|
+
position: relative;
|
|
155
|
+
}
|
|
156
|
+
.kt-toolbar-popover {
|
|
157
|
+
position: absolute;
|
|
158
|
+
--offset-size: 30px;
|
|
159
|
+
--button-width: 30px;
|
|
160
|
+
right: calc(0px - var(--offset-size));
|
|
161
|
+
&.kt-toolbar-popover-bottom {
|
|
162
|
+
top: 100%;
|
|
163
|
+
}
|
|
164
|
+
&.kt-toolbar-popover-top {
|
|
165
|
+
bottom: 100%;
|
|
166
|
+
}
|
|
167
|
+
&.kt-toolbar-popover-default {
|
|
168
|
+
.overlay-shadow();
|
|
169
|
+
box-shadow: 1px solid;
|
|
170
|
+
border-radius: 5px;
|
|
171
|
+
background: var(--kt-popover-background);
|
|
172
|
+
&:before {
|
|
173
|
+
border-top: 0px solid transparent;
|
|
174
|
+
border-right: 5px solid transparent;
|
|
175
|
+
border-left: 5px solid transparent;
|
|
176
|
+
border-bottom: 5px solid var(--kt-popover-background);
|
|
177
|
+
position: absolute;
|
|
178
|
+
right: calc(var(--offset-size) + 0.5 * var(--button-width) - 7px);
|
|
179
|
+
top: -5px;
|
|
180
|
+
}
|
|
181
|
+
&.kt-toolbar-popover-bottom {
|
|
182
|
+
top: calc(100% + 7px);
|
|
183
|
+
}
|
|
184
|
+
&.kt-toolbar-popover-top {
|
|
185
|
+
bottom: calc(100% + 7px);
|
|
186
|
+
}
|
|
187
|
+
&.kt-toolbar-popover-visible {
|
|
188
|
+
&::before, &::after {
|
|
189
|
+
content: '';
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.kt-text-desc {
|
|
2
|
+
color: var(--descriptionForeground);
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.kt-text-error {
|
|
6
|
+
color: var(--errorForeground);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.none-pointer-event {
|
|
10
|
+
pointer-events: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* ---- 这一段是寻壑加的,建议挪到 layout resize 相关的实现部分 ---- */
|
|
14
|
+
.resize-wrapper {
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 100%;
|
|
17
|
+
}
|
|
18
|
+
/* -------- */
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* 请不要在这里申明 css variables 到 :root 下 */
|
|
2
|
+
/* 会导致这里的变量在被引用的时候 :root 下反复挂载过多的 css variables */
|
|
3
|
+
|
|
4
|
+
/* 基础文字大小 */
|
|
5
|
+
@kt-default-font-size: 13px;
|
|
6
|
+
|
|
7
|
+
/* 基础间距大小 */
|
|
8
|
+
@kt-ui-spacing: 6px;
|
|
9
|
+
|
|
10
|
+
/* ---- 这一段是寻壑和吭头在用,因此继续保留,后续应该换成 less vars ---- */
|
|
11
|
+
:root {
|
|
12
|
+
--tabBar-height: 28px;
|
|
13
|
+
--kt-scrollbar-width: 10px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* -------- */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=auto-complete.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auto-complete.d.ts","sourceRoot":"","sources":["../../../src/toolbar/components/auto-complete.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auto-complete.js","sourceRoot":"","sources":["../../../src/toolbar/components/auto-complete.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IToolbarActionReactElement, IToolbarActionElementProps, IToolbarActionBtnProps } from '../types';
|
|
3
|
+
import { BasicEvent } from '@opensumi/ide-core-common';
|
|
4
|
+
export declare const ToolbarActionBtn: (props: IToolbarActionBtnProps & IToolbarActionElementProps) => JSX.Element;
|
|
5
|
+
export declare function createToolbarActionBtn(props: IToolbarActionBtnProps): IToolbarActionReactElement;
|
|
6
|
+
export declare class ToolbarActionBtnClickEvent extends BasicEvent<{
|
|
7
|
+
id: string;
|
|
8
|
+
event: React.MouseEvent<HTMLDivElement, MouseEvent>;
|
|
9
|
+
}> {
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/toolbar/components/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,sBAAsB,EAAoG,MAAM,UAAU,CAAC;AAE5M,OAAO,EAAE,UAAU,EAAoC,MAAM,2BAA2B,CAAC;AAYzF,eAAO,MAAM,gBAAgB,UAAW,sBAAsB,GAAG,0BAA0B,gBA6I1F,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,sBAAsB,GAAG,0BAA0B,CAIhG;AAED,qBAAa,0BAA2B,SAAQ,UAAU,CAAC;IACzD,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;CACrD,CAAC;CAAG"}
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ToolbarActionBtnClickEvent = exports.createToolbarActionBtn = exports.ToolbarActionBtn = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = (0, tslib_1.__importDefault)(require("react"));
|
|
6
|
+
const react_dom_1 = (0, tslib_1.__importDefault)(require("react-dom"));
|
|
7
|
+
const di_1 = require("@opensumi/di");
|
|
8
|
+
const types_1 = require("../types");
|
|
9
|
+
const react_hooks_1 = require("../../react-hooks");
|
|
10
|
+
const ide_core_common_1 = require("@opensumi/ide-core-common");
|
|
11
|
+
const classnames_1 = (0, tslib_1.__importDefault)(require("classnames"));
|
|
12
|
+
const react_providers_1 = require("../../react-providers");
|
|
13
|
+
const ide_components_1 = require("@opensumi/ide-components");
|
|
14
|
+
const preferences_1 = require("../../preferences");
|
|
15
|
+
const dom_1 = require("../../dom");
|
|
16
|
+
var BUTTON_TITLE_STYLE;
|
|
17
|
+
(function (BUTTON_TITLE_STYLE) {
|
|
18
|
+
BUTTON_TITLE_STYLE["HORIZONTAL"] = "horizontal";
|
|
19
|
+
BUTTON_TITLE_STYLE["VERTICAL"] = "vertical";
|
|
20
|
+
})(BUTTON_TITLE_STYLE || (BUTTON_TITLE_STYLE = {}));
|
|
21
|
+
const ToolbarActionBtn = (props) => {
|
|
22
|
+
const context = (0, react_hooks_1.useInjectable)(react_providers_1.AppConfig);
|
|
23
|
+
const ref = react_1.default.useRef();
|
|
24
|
+
const [viewState, setViewState] = react_1.default.useState(props.defaultState || 'default');
|
|
25
|
+
const [title, setTitle] = react_1.default.useState(undefined);
|
|
26
|
+
const preferenceService = (0, react_hooks_1.useInjectable)(preferences_1.PreferenceService);
|
|
27
|
+
const [, updateState] = react_1.default.useState();
|
|
28
|
+
const forceUpdate = react_1.default.useCallback(() => updateState({}), []);
|
|
29
|
+
const { defaultButtonStyle = {} } = props.preferences || {};
|
|
30
|
+
const styles = Object.assign(Object.assign(Object.assign({ title: props.title, iconClass: props.iconClass, showTitle: preferenceService.get('toolbar.buttonDisplay') !== 'icon', btnStyle: 'button' }, defaultButtonStyle), props.defaultStyle), (props.styles || {})[viewState] || {});
|
|
31
|
+
if (title) {
|
|
32
|
+
styles.title = title;
|
|
33
|
+
}
|
|
34
|
+
if (styles.btnStyle !== 'button') {
|
|
35
|
+
styles.showTitle = false;
|
|
36
|
+
}
|
|
37
|
+
const delegate = react_1.default.useRef();
|
|
38
|
+
const inDropDownRef = react_1.default.useRef(props.inDropDown);
|
|
39
|
+
react_1.default.useEffect(() => {
|
|
40
|
+
inDropDownRef.current = props.inDropDown;
|
|
41
|
+
}, [props.inDropDown]);
|
|
42
|
+
react_1.default.useEffect(() => {
|
|
43
|
+
const disposer = new ide_core_common_1.Disposable();
|
|
44
|
+
disposer.addDispose(preferenceService.onSpecificPreferenceChange('toolbar.buttonDisplay', () => {
|
|
45
|
+
forceUpdate();
|
|
46
|
+
}));
|
|
47
|
+
if (ref.current && props.delegate) {
|
|
48
|
+
// 如果是在 dropdown 中,popover 元素将显示在 more 按钮上
|
|
49
|
+
const getPopoverParent = () => (inDropDownRef.current ? document.querySelector(`#toolbar-location-${props.location} .kt-toolbar-more`) : ref.current);
|
|
50
|
+
delegate.current = context.injector.get(ToolbarBtnDelegate, [
|
|
51
|
+
ref.current,
|
|
52
|
+
props.id,
|
|
53
|
+
(state, title) => {
|
|
54
|
+
setViewState(state);
|
|
55
|
+
setTitle(title);
|
|
56
|
+
},
|
|
57
|
+
() => {
|
|
58
|
+
return viewState;
|
|
59
|
+
},
|
|
60
|
+
context,
|
|
61
|
+
getPopoverParent,
|
|
62
|
+
props.popoverComponent,
|
|
63
|
+
props.popoverStyle,
|
|
64
|
+
props.popoverId,
|
|
65
|
+
]);
|
|
66
|
+
props.delegate(delegate.current);
|
|
67
|
+
disposer.addDispose(delegate.current);
|
|
68
|
+
disposer.addDispose({
|
|
69
|
+
dispose: () => {
|
|
70
|
+
props.delegate && props.delegate(undefined);
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
return () => disposer.dispose();
|
|
75
|
+
}, []);
|
|
76
|
+
const iconContent = !props.inDropDown ? react_1.default.createElement("div", { className: styles.iconClass + ' kt-toolbar-action-btn-icon', title: styles.title, style: Object.assign(Object.assign(Object.assign({ color: styles.iconForeground, backgroundColor: styles.iconBackground }, (styles.width ? { width: styles.width } : null)), (styles.height ? { height: styles.height } : null)), (styles.iconSize ? { fontSize: styles.iconSize, WebkitMaskSize: styles.iconSize } : null)) }) : null;
|
|
77
|
+
const titleContent = (styles.showTitle || props.inDropDown) ? react_1.default.createElement("div", { className: 'kt-toolbar-action-btn-title', style: {
|
|
78
|
+
color: styles.titleForeground,
|
|
79
|
+
backgroundColor: styles.titleBackground,
|
|
80
|
+
fontSize: styles.titleSize,
|
|
81
|
+
} }, styles.title) : null;
|
|
82
|
+
const bindings = {
|
|
83
|
+
onClick: (event) => {
|
|
84
|
+
delegate.current && delegate.current._onClick.fire(event);
|
|
85
|
+
if (props.inDropDown) {
|
|
86
|
+
props.closeDropDown();
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
onMouseLeave: (event) => {
|
|
90
|
+
delegate.current && delegate.current._onMouseLeave.fire(event);
|
|
91
|
+
},
|
|
92
|
+
onMouseEnter: (event) => {
|
|
93
|
+
delegate.current && delegate.current._onMouseEnter.fire(event);
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
const backgroundBindings = {
|
|
97
|
+
style: Object.assign({ backgroundColor: styles.background }, (styles.width ? { padding: 0 } : null)),
|
|
98
|
+
};
|
|
99
|
+
let buttonElement;
|
|
100
|
+
if (props.inDropDown) {
|
|
101
|
+
buttonElement = react_1.default.createElement("div", Object.assign({ className: (0, classnames_1.default)({ 'kt-toolbar-action-btn': true,
|
|
102
|
+
'action-btn-in-dropdown': true }) }, bindings, backgroundBindings, { ref: ref }),
|
|
103
|
+
iconContent,
|
|
104
|
+
titleContent);
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
const btnTitleStyle = styles.btnTitleStyle || preferenceService.get('toolbar.buttonTitleStyle');
|
|
108
|
+
if (styles.btnStyle === 'button' && btnTitleStyle !== BUTTON_TITLE_STYLE.VERTICAL) {
|
|
109
|
+
buttonElement = react_1.default.createElement(ide_components_1.Button, Object.assign({ type: 'default', size: 'small' }, bindings, backgroundBindings),
|
|
110
|
+
iconContent,
|
|
111
|
+
titleContent);
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
// BtnStyle == inline 或 btnTitleStyle === 'vertical' (类似小程序IDE工具栏) 的模式
|
|
115
|
+
if (btnTitleStyle === BUTTON_TITLE_STYLE.VERTICAL) {
|
|
116
|
+
backgroundBindings.style['min-width'] = '42px';
|
|
117
|
+
}
|
|
118
|
+
buttonElement = react_1.default.createElement("div", Object.assign({ className: (0, classnames_1.default)({ 'kt-toolbar-action-btn': true,
|
|
119
|
+
'kt-toolbar-action-btn-button': styles.btnStyle === 'button',
|
|
120
|
+
'kt-toolbar-action-btn-inline': styles.btnStyle !== 'button',
|
|
121
|
+
'kt-toolbar-action-btn-vertical': btnTitleStyle === BUTTON_TITLE_STYLE.VERTICAL,
|
|
122
|
+
'kt-toolbar-action-btn-horizontal': btnTitleStyle !== BUTTON_TITLE_STYLE.VERTICAL }) }, bindings),
|
|
123
|
+
react_1.default.createElement(ide_components_1.Button, Object.assign({ type: 'default', size: 'small' }, backgroundBindings), iconContent),
|
|
124
|
+
titleContent);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
return react_1.default.createElement("div", { className: 'kt-toolbar-action-btn-wrapper', ref: ref },
|
|
128
|
+
buttonElement,
|
|
129
|
+
props.popoverComponent && react_1.default.createElement("div", { className: 'kt-toolbar-popover', "data-toolbar-no-context": true }));
|
|
130
|
+
};
|
|
131
|
+
exports.ToolbarActionBtn = ToolbarActionBtn;
|
|
132
|
+
function createToolbarActionBtn(props) {
|
|
133
|
+
return (actionProps) => {
|
|
134
|
+
return react_1.default.createElement(exports.ToolbarActionBtn, Object.assign({}, actionProps, props));
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
exports.createToolbarActionBtn = createToolbarActionBtn;
|
|
138
|
+
class ToolbarActionBtnClickEvent extends ide_core_common_1.BasicEvent {
|
|
139
|
+
}
|
|
140
|
+
exports.ToolbarActionBtnClickEvent = ToolbarActionBtnClickEvent;
|
|
141
|
+
const popOverMap = new Map();
|
|
142
|
+
const PopOverComponentWrapper = (props) => {
|
|
143
|
+
const [context, setContext] = react_1.default.useState();
|
|
144
|
+
react_1.default.useEffect(() => {
|
|
145
|
+
const disposable = props.delegate.onChangeContext((newValue) => {
|
|
146
|
+
setContext(newValue);
|
|
147
|
+
});
|
|
148
|
+
return () => {
|
|
149
|
+
disposable.dispose();
|
|
150
|
+
};
|
|
151
|
+
}, []);
|
|
152
|
+
const childrenWithProps = react_1.default.Children.map(props.children, (child) => react_1.default.isValidElement(child) ? react_1.default.cloneElement(child, {
|
|
153
|
+
context,
|
|
154
|
+
}) : null);
|
|
155
|
+
return (react_1.default.createElement(react_1.default.Fragment, null, childrenWithProps));
|
|
156
|
+
};
|
|
157
|
+
let ToolbarBtnDelegate = class ToolbarBtnDelegate {
|
|
158
|
+
constructor(element, actionId, _setState, _getState, context, getPopoverParent, popoverComponent, popoverStyle, popoverId) {
|
|
159
|
+
this.element = element;
|
|
160
|
+
this.actionId = actionId;
|
|
161
|
+
this._setState = _setState;
|
|
162
|
+
this._getState = _getState;
|
|
163
|
+
this.context = context;
|
|
164
|
+
this.getPopoverParent = getPopoverParent;
|
|
165
|
+
this.popoverComponent = popoverComponent;
|
|
166
|
+
this.popoverStyle = popoverStyle;
|
|
167
|
+
this.popoverId = popoverId;
|
|
168
|
+
this._onClick = new ide_core_common_1.Emitter();
|
|
169
|
+
this.onClick = this._onClick.event;
|
|
170
|
+
this._onMouseLeave = new ide_core_common_1.Emitter();
|
|
171
|
+
this.onMouseLeave = this._onClick.event;
|
|
172
|
+
this._onMouseEnter = new ide_core_common_1.Emitter();
|
|
173
|
+
this.onMouseEnter = this._onClick.event;
|
|
174
|
+
this._onChangeState = new ide_core_common_1.Emitter();
|
|
175
|
+
this.onChangeState = this._onChangeState.event;
|
|
176
|
+
this.onChangeContextEvent = new ide_core_common_1.Emitter();
|
|
177
|
+
this.onChangeContext = this.onChangeContextEvent.event;
|
|
178
|
+
this._onDidChangePopoverVisibility = new ide_core_common_1.Emitter();
|
|
179
|
+
this.onDidChangePopoverVisibility = this._onDidChangePopoverVisibility.event;
|
|
180
|
+
if (this.popoverComponent) {
|
|
181
|
+
this._popOverElement = popOverMap.get(actionId);
|
|
182
|
+
this.popOverContainer = element.querySelector('.kt-toolbar-popover');
|
|
183
|
+
}
|
|
184
|
+
this.toolbarPopover.onDidRegisterPopoverEvent((e) => {
|
|
185
|
+
if (e === this.popoverId) {
|
|
186
|
+
this.popoverComponent = this.toolbarPopover.getComponent(this.popoverId);
|
|
187
|
+
// 已经激活的状态下重新激活一次,如果没有激活过则不动
|
|
188
|
+
if (this._popOverElement) {
|
|
189
|
+
this.hidePopOver()
|
|
190
|
+
.then(() => this.showPopOver());
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
dispose() {
|
|
196
|
+
this._onClick.dispose();
|
|
197
|
+
this._onMouseEnter.dispose();
|
|
198
|
+
this._onMouseLeave.dispose();
|
|
199
|
+
if (this.popOverContainer) {
|
|
200
|
+
this.popOverContainer.remove();
|
|
201
|
+
this.popOverContainer = undefined;
|
|
202
|
+
}
|
|
203
|
+
if (this._popOverClickOutsideDisposer) {
|
|
204
|
+
this._popOverClickOutsideDisposer.dispose();
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
setState(to, title) {
|
|
208
|
+
const from = this._getState();
|
|
209
|
+
this._setState(to, title);
|
|
210
|
+
this._onChangeState.fire({ from, to });
|
|
211
|
+
}
|
|
212
|
+
setContext(context) {
|
|
213
|
+
this.onChangeContextEvent.fire(context);
|
|
214
|
+
}
|
|
215
|
+
getRect() {
|
|
216
|
+
return this.element.getBoundingClientRect();
|
|
217
|
+
}
|
|
218
|
+
getPopOverContainer() {
|
|
219
|
+
return this.popOverContainer;
|
|
220
|
+
}
|
|
221
|
+
async showPopOver(style) {
|
|
222
|
+
if (!this.popOverContainer) {
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
if (!this._popOverElement) {
|
|
226
|
+
this._popOverElement = new Promise((resolve) => {
|
|
227
|
+
const div = document.createElement('div');
|
|
228
|
+
const C = this.popoverComponent;
|
|
229
|
+
react_dom_1.default.render(react_1.default.createElement(react_providers_1.ConfigProvider, { value: this.context },
|
|
230
|
+
react_1.default.createElement(PopOverComponentWrapper, { delegate: this },
|
|
231
|
+
react_1.default.createElement(C, null))), div, () => {
|
|
232
|
+
resolve(div);
|
|
233
|
+
});
|
|
234
|
+
});
|
|
235
|
+
popOverMap.set(this.actionId, this._popOverElement);
|
|
236
|
+
}
|
|
237
|
+
const mergedStyle = Object.assign(Object.assign({}, this.popoverStyle), style);
|
|
238
|
+
if (mergedStyle.position === 'top') {
|
|
239
|
+
this.popOverContainer.classList.add('kt-toolbar-popover-top');
|
|
240
|
+
this.popOverContainer.classList.remove('kt-toolbar-popover-bottom');
|
|
241
|
+
}
|
|
242
|
+
else {
|
|
243
|
+
this.popOverContainer.classList.remove('kt-toolbar-popover-top');
|
|
244
|
+
this.popOverContainer.classList.add('kt-toolbar-popover-bottom');
|
|
245
|
+
}
|
|
246
|
+
this.popOverContainer.remove();
|
|
247
|
+
const popoverParent = this.getPopoverParent() || this.element;
|
|
248
|
+
popoverParent.append(this.popOverContainer);
|
|
249
|
+
const popoverParentRect = popoverParent.getBoundingClientRect();
|
|
250
|
+
this.popOverContainer.style.setProperty('--button-width', popoverParentRect.width + 'px');
|
|
251
|
+
let offset = typeof mergedStyle.horizontalOffset === 'number' ? mergedStyle.horizontalOffset : 30;
|
|
252
|
+
// 如果父容器离右边距很近,防止视图突出去
|
|
253
|
+
offset = Math.min(offset, window.innerWidth - popoverParentRect.left - popoverParentRect.width - 2);
|
|
254
|
+
this.popOverContainer.style.setProperty('--offset-size', offset + 'px');
|
|
255
|
+
this.popOverContainer.classList.add('kt-toolbar-popover-visible');
|
|
256
|
+
if (mergedStyle.noContainerStyle) {
|
|
257
|
+
this.popOverContainer.classList.remove('kt-toolbar-popover-default');
|
|
258
|
+
}
|
|
259
|
+
else {
|
|
260
|
+
this.popOverContainer.classList.add('kt-toolbar-popover-default');
|
|
261
|
+
}
|
|
262
|
+
const animeDisposer = new dom_1.DomListener(this.popOverContainer, 'animationend', () => {
|
|
263
|
+
var _a;
|
|
264
|
+
animeDisposer.dispose();
|
|
265
|
+
(_a = this.popOverContainer) === null || _a === void 0 ? void 0 : _a.classList.add('kt-toolbar-popover-animationend');
|
|
266
|
+
});
|
|
267
|
+
return this._popOverElement.then((ele) => {
|
|
268
|
+
if (this._popOverClickOutsideDisposer) {
|
|
269
|
+
this._popOverClickOutsideDisposer.dispose();
|
|
270
|
+
this._popOverClickOutsideDisposer = undefined;
|
|
271
|
+
}
|
|
272
|
+
if (this.popOverContainer && ele.parentElement !== this.popOverContainer) {
|
|
273
|
+
this.popOverContainer.append(ele);
|
|
274
|
+
}
|
|
275
|
+
this._onDidChangePopoverVisibility.fire(true);
|
|
276
|
+
if (mergedStyle.hideOnClickOutside !== false) {
|
|
277
|
+
setTimeout(() => {
|
|
278
|
+
if (this._popOverClickOutsideDisposer) {
|
|
279
|
+
this._popOverClickOutsideDisposer.dispose();
|
|
280
|
+
this._popOverClickOutsideDisposer = undefined;
|
|
281
|
+
}
|
|
282
|
+
const disposer = new ide_core_common_1.Disposable();
|
|
283
|
+
disposer.addDispose(new dom_1.DomListener(window, 'click', (e) => {
|
|
284
|
+
if (e.target && ele.contains(e.target)) {
|
|
285
|
+
return;
|
|
286
|
+
}
|
|
287
|
+
const rect = ele.getBoundingClientRect();
|
|
288
|
+
if (rect.x <= e.clientX && rect.x + rect.width >= e.clientX && rect.y <= e.clientY && rect.y + rect.height >= e.clientY) {
|
|
289
|
+
// 点击在区域内,这里防止点击 target 已经被移除导致误判
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
292
|
+
this.hidePopOver();
|
|
293
|
+
}));
|
|
294
|
+
this._popOverClickOutsideDisposer = disposer;
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
async hidePopOver() {
|
|
300
|
+
var _a;
|
|
301
|
+
if (this._popOverElement) {
|
|
302
|
+
const ele = await this._popOverElement;
|
|
303
|
+
react_dom_1.default.unmountComponentAtNode(ele);
|
|
304
|
+
ele.remove();
|
|
305
|
+
this._popOverElement = undefined;
|
|
306
|
+
}
|
|
307
|
+
if (this._popOverClickOutsideDisposer) {
|
|
308
|
+
this._popOverClickOutsideDisposer.dispose();
|
|
309
|
+
this._popOverClickOutsideDisposer = undefined;
|
|
310
|
+
}
|
|
311
|
+
this.popOverContainer && this.popOverContainer.classList.remove('kt-toolbar-popover-visible');
|
|
312
|
+
(_a = this.popOverContainer) === null || _a === void 0 ? void 0 : _a.classList.remove('kt-toolbar-popover-animationend');
|
|
313
|
+
this._onDidChangePopoverVisibility.fire(false);
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
(0, tslib_1.__decorate)([
|
|
317
|
+
(0, di_1.Autowired)(types_1.IToolbarPopoverRegistry),
|
|
318
|
+
(0, tslib_1.__metadata)("design:type", Object)
|
|
319
|
+
], ToolbarBtnDelegate.prototype, "toolbarPopover", void 0);
|
|
320
|
+
ToolbarBtnDelegate = (0, tslib_1.__decorate)([
|
|
321
|
+
(0, di_1.Injectable)({ multiple: true }),
|
|
322
|
+
(0, tslib_1.__metadata)("design:paramtypes", [HTMLElement, String, Object, Object, Object, Function, Function, Object, String])
|
|
323
|
+
], ToolbarBtnDelegate);
|
|
324
|
+
//# sourceMappingURL=button.js.map
|