@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
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const getStorageValue: () => {
|
|
3
|
+
layout: {
|
|
4
|
+
[key: string]: {
|
|
5
|
+
size: number;
|
|
6
|
+
currentId: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
colors: {
|
|
10
|
+
[colorKey: string]: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare const DefaultLayout: typeof ToolbarActionBasedLayout;
|
|
14
|
+
export declare function ToolbarActionBasedLayout(): JSX.Element;
|
|
15
|
+
//# sourceMappingURL=default-layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-layout.d.ts","sourceRoot":"","sources":["../../../src/components/layout/default-layout.tsx"],"names":[],"mappings":";AAKA,eAAO,MAAM,eAAe;;;kBAEc,MAAM;uBAAa,MAAM;;;;;;CAUlE,CAAC;AAEF,eAAO,MAAM,aAAa,iCAA2B,CAAC;AAEtD,wBAAgB,wBAAwB,gBAevC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ToolbarActionBasedLayout = exports.DefaultLayout = exports.getStorageValue = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = (0, tslib_1.__importDefault)(require("react"));
|
|
6
|
+
const box_panel_1 = require("./box-panel");
|
|
7
|
+
const react_providers_1 = require("../../react-providers");
|
|
8
|
+
const split_panel_1 = require("./split-panel");
|
|
9
|
+
const getStorageValue = () => {
|
|
10
|
+
// 启动时渲染的颜色和尺寸,弱依赖
|
|
11
|
+
let savedLayout = {};
|
|
12
|
+
let savedColors = {};
|
|
13
|
+
try {
|
|
14
|
+
savedLayout = JSON.parse(localStorage.getItem('layout') || '{}');
|
|
15
|
+
savedColors = JSON.parse(localStorage.getItem('theme') || '{}');
|
|
16
|
+
}
|
|
17
|
+
catch (err) { }
|
|
18
|
+
return {
|
|
19
|
+
layout: savedLayout,
|
|
20
|
+
colors: savedColors,
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
exports.getStorageValue = getStorageValue;
|
|
24
|
+
exports.DefaultLayout = ToolbarActionBasedLayout;
|
|
25
|
+
function ToolbarActionBasedLayout() {
|
|
26
|
+
var _a, _b, _c, _d, _e;
|
|
27
|
+
const { colors, layout } = (0, exports.getStorageValue)();
|
|
28
|
+
return react_1.default.createElement(box_panel_1.BoxPanel, { direction: 'top-to-bottom' },
|
|
29
|
+
react_1.default.createElement(react_providers_1.SlotRenderer, { color: colors.menuBarBackground, defaultSize: 0, slot: 'top', "z-index": 2 }),
|
|
30
|
+
react_1.default.createElement(split_panel_1.SplitPanel, { id: 'main-horizontal', flex: 1 },
|
|
31
|
+
react_1.default.createElement(react_providers_1.SlotRenderer, { color: colors.sideBarBackground, slot: 'left', isTabbar: true, defaultSize: ((_a = layout.left) === null || _a === void 0 ? void 0 : _a.currentId) ? (((_b = layout.left) === null || _b === void 0 ? void 0 : _b.size) || 310) : 49, minResize: 204, minSize: 49 }),
|
|
32
|
+
react_1.default.createElement(split_panel_1.SplitPanel, { id: 'main-vertical', minResize: 300, flexGrow: 1, direction: 'top-to-bottom' },
|
|
33
|
+
react_1.default.createElement(react_providers_1.SlotRenderer, { color: colors.editorBackground, flex: 2, flexGrow: 1, minResize: 200, slot: 'main' }),
|
|
34
|
+
react_1.default.createElement(react_providers_1.SlotRenderer, { color: colors.panelBackground, flex: 1, defaultSize: (_c = layout.bottom) === null || _c === void 0 ? void 0 : _c.size, minResize: 160, slot: 'bottom', isTabbar: true })),
|
|
35
|
+
react_1.default.createElement(react_providers_1.SlotRenderer, { color: colors.sideBarBackground, slot: 'right', isTabbar: true, defaultSize: ((_d = layout.right) === null || _d === void 0 ? void 0 : _d.currentId) ? (((_e = layout.right) === null || _e === void 0 ? void 0 : _e.size) || 310) : 0, minResize: 200, minSize: 41 })),
|
|
36
|
+
react_1.default.createElement(react_providers_1.SlotRenderer, { color: colors.statusBarBackground, defaultSize: 24, slot: 'statusBar' }));
|
|
37
|
+
}
|
|
38
|
+
exports.ToolbarActionBasedLayout = ToolbarActionBasedLayout;
|
|
39
|
+
//# sourceMappingURL=default-lay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src/components/layout/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
(0, tslib_1.__exportStar)(require("./layout"), exports);
|
|
5
|
+
(0, tslib_1.__exportStar)(require("./split-panel"), exports);
|
|
6
|
+
(0, tslib_1.__exportStar)(require("./box-panel"), exports);
|
|
7
|
+
(0, tslib_1.__exportStar)(require("./default-layout"), exports);
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/layout/index.ts"],"names":[],"mappings":";;;AAAA,wDAAyB;AACzB,6DAA8B;AAC9B,2DAA4B;AAC5B,gEAAiC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare namespace Layout {
|
|
3
|
+
type direction = ('left-to-right' | 'right-to-left' | 'top-to-bottom' | 'bottom-to-top');
|
|
4
|
+
type alignment = 'horizontal' | 'vertical';
|
|
5
|
+
function getFlexDirection(direction: Layout.direction): any;
|
|
6
|
+
function getSizeProperty(direction: Layout.direction): "width" | "height";
|
|
7
|
+
function getDomSizeProperty(direction: Layout.direction): "clientHeight" | "clientWidth";
|
|
8
|
+
function getMinSizeProperty(direction: Layout.direction): "minWidth" | "minHeight";
|
|
9
|
+
function getMaxSizeProperty(direction: Layout.direction): "maxWidth" | "maxHeight";
|
|
10
|
+
function getResizeHandle(direction: Layout.direction): (props: import("../resize/resize").ResizeHandleProps) => JSX.Element;
|
|
11
|
+
function getTabbarDirection(direction: Layout.direction): "row" | "column";
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/components/layout/layout.ts"],"names":[],"mappings":";AAyCA,yBAAiB,MAAM,CAAC;IACtB,KAAY,SAAS,GAAG,CAAC,eAAe,GAAG,eAAe,GAAG,eAAe,GAAG,eAAe,CAAC,CAAC;IAEhG,KAAY,SAAS,GAAG,YAAY,GAAG,UAAU,CAAC;IAElD,SAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,OAE3D;IAED,SAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,sBAE1D;IAED,SAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,kCAE7D;IAED,SAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,4BAE7D;IAED,SAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,4BAE7D;IAED,SAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,wEAK1D;IAED,SAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,oBAK7D;CACF"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Layout = void 0;
|
|
4
|
+
const resize_1 = require("../resize/resize");
|
|
5
|
+
const flexDirectionMap = {
|
|
6
|
+
'left-to-right': {
|
|
7
|
+
direction: 'row',
|
|
8
|
+
size: 'width',
|
|
9
|
+
domSize: 'clientHeight',
|
|
10
|
+
minSize: 'minWidth',
|
|
11
|
+
maxSize: 'maxWidth',
|
|
12
|
+
},
|
|
13
|
+
'right-to-left': {
|
|
14
|
+
direction: 'row-reverse',
|
|
15
|
+
size: 'width',
|
|
16
|
+
domSize: 'clientHeight',
|
|
17
|
+
minSize: 'minWidth',
|
|
18
|
+
maxSize: 'maxWidth',
|
|
19
|
+
},
|
|
20
|
+
'top-to-bottom': {
|
|
21
|
+
direction: 'column',
|
|
22
|
+
size: 'height',
|
|
23
|
+
domSize: 'clientWidth',
|
|
24
|
+
minSize: 'minHeight',
|
|
25
|
+
maxSize: 'maxHeight',
|
|
26
|
+
},
|
|
27
|
+
'bottom-to-top': {
|
|
28
|
+
direction: 'column-reverse',
|
|
29
|
+
size: 'height',
|
|
30
|
+
domSize: 'clientWidth',
|
|
31
|
+
minSize: 'minHeight',
|
|
32
|
+
maxSize: 'maxHeight',
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
var Layout;
|
|
36
|
+
(function (Layout) {
|
|
37
|
+
function getFlexDirection(direction) {
|
|
38
|
+
return flexDirectionMap[direction].direction;
|
|
39
|
+
}
|
|
40
|
+
Layout.getFlexDirection = getFlexDirection;
|
|
41
|
+
function getSizeProperty(direction) {
|
|
42
|
+
return flexDirectionMap[direction].size;
|
|
43
|
+
}
|
|
44
|
+
Layout.getSizeProperty = getSizeProperty;
|
|
45
|
+
function getDomSizeProperty(direction) {
|
|
46
|
+
return flexDirectionMap[direction].domSize;
|
|
47
|
+
}
|
|
48
|
+
Layout.getDomSizeProperty = getDomSizeProperty;
|
|
49
|
+
function getMinSizeProperty(direction) {
|
|
50
|
+
return flexDirectionMap[direction].minSize;
|
|
51
|
+
}
|
|
52
|
+
Layout.getMinSizeProperty = getMinSizeProperty;
|
|
53
|
+
function getMaxSizeProperty(direction) {
|
|
54
|
+
return flexDirectionMap[direction].maxSize;
|
|
55
|
+
}
|
|
56
|
+
Layout.getMaxSizeProperty = getMaxSizeProperty;
|
|
57
|
+
function getResizeHandle(direction) {
|
|
58
|
+
if (direction === 'bottom-to-top' || direction === 'top-to-bottom') {
|
|
59
|
+
return resize_1.ResizeHandleVertical;
|
|
60
|
+
}
|
|
61
|
+
return resize_1.ResizeHandleHorizontal;
|
|
62
|
+
}
|
|
63
|
+
Layout.getResizeHandle = getResizeHandle;
|
|
64
|
+
function getTabbarDirection(direction) {
|
|
65
|
+
if (direction === 'bottom-to-top' || direction === 'top-to-bottom') {
|
|
66
|
+
return 'row';
|
|
67
|
+
}
|
|
68
|
+
return 'column';
|
|
69
|
+
}
|
|
70
|
+
Layout.getTabbarDirection = getTabbarDirection;
|
|
71
|
+
})(Layout = exports.Layout || (exports.Layout = {}));
|
|
72
|
+
//# sourceMappingURL=layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../../src/components/layout/layout.ts"],"names":[],"mappings":";;;AAAA,6CAAgF;AAEhF,MAAM,gBAAgB,GAQlB;IACF,eAAe,EAAE;QACf,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,cAAc;QACvB,OAAO,EAAE,UAAU;QACnB,OAAO,EAAE,UAAU;KACpB;IACD,eAAe,EAAE;QACf,SAAS,EAAE,aAAa;QACxB,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,cAAc;QACvB,OAAO,EAAE,UAAU;QACnB,OAAO,EAAE,UAAU;KACpB;IACD,eAAe,EAAE;QACf,SAAS,EAAE,QAAQ;QACnB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,aAAa;QACtB,OAAO,EAAE,WAAW;QACpB,OAAO,EAAE,WAAW;KACrB;IACD,eAAe,EAAE;QACf,SAAS,EAAE,gBAAgB;QAC3B,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,aAAa;QACtB,OAAO,EAAE,WAAW;QACpB,OAAO,EAAE,WAAW;KACrB;CACF,CAAC;AAEF,IAAiB,MAAM,CAsCtB;AAtCD,WAAiB,MAAM;IAKrB,SAAgB,gBAAgB,CAAC,SAA2B;QAC1D,OAAO,gBAAgB,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC;IAC/C,CAAC;IAFe,uBAAgB,mBAE/B,CAAA;IAED,SAAgB,eAAe,CAAC,SAA2B;QACzD,OAAO,gBAAgB,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC;IAC1C,CAAC;IAFe,sBAAe,kBAE9B,CAAA;IAED,SAAgB,kBAAkB,CAAC,SAA2B;QAC5D,OAAO,gBAAgB,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC;IAC7C,CAAC;IAFe,yBAAkB,qBAEjC,CAAA;IAED,SAAgB,kBAAkB,CAAC,SAA2B;QAC5D,OAAO,gBAAgB,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC;IAC7C,CAAC;IAFe,yBAAkB,qBAEjC,CAAA;IAED,SAAgB,kBAAkB,CAAC,SAA2B;QAC5D,OAAO,gBAAgB,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC;IAC7C,CAAC;IAFe,yBAAkB,qBAEjC,CAAA;IAED,SAAgB,eAAe,CAAC,SAA2B;QACzD,IAAI,SAAS,KAAK,eAAe,IAAI,SAAS,KAAK,eAAe,EAAE;YAClE,OAAO,6BAAoB,CAAC;SAC7B;QACD,OAAO,+BAAsB,CAAC;IAChC,CAAC;IALe,sBAAe,kBAK9B,CAAA;IAED,SAAgB,kBAAkB,CAAC,SAA2B;QAC5D,IAAI,SAAS,KAAK,eAAe,IAAI,SAAS,KAAK,eAAe,EAAE;YAClE,OAAO,KAAK,CAAC;SACd;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;IALe,yBAAkB,qBAKjC,CAAA;AACH,CAAC,EAtCgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAsCtB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Layout } from './layout';
|
|
3
|
+
export interface ResizeHandle {
|
|
4
|
+
setSize: (targetSize?: number, isLatter?: boolean) => void;
|
|
5
|
+
setRelativeSize: (prev: number, next: number, isLatter: boolean) => void;
|
|
6
|
+
getSize: (isLatter: boolean) => number;
|
|
7
|
+
getRelativeSize: (isLatter: boolean) => number[];
|
|
8
|
+
lockSize: (lock: boolean | undefined, isLatter: boolean) => void;
|
|
9
|
+
setMaxSize: (lock: boolean | undefined, isLatter: boolean) => void;
|
|
10
|
+
hidePanel: (show?: boolean) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const PanelContext: React.Context<ResizeHandle>;
|
|
13
|
+
declare type ChildComponent = React.ReactElement<SplitChildProps>;
|
|
14
|
+
interface SplitChildProps {
|
|
15
|
+
id: string;
|
|
16
|
+
minSize?: number;
|
|
17
|
+
maxSize?: number;
|
|
18
|
+
minResize?: number;
|
|
19
|
+
flex?: number;
|
|
20
|
+
overflow?: string;
|
|
21
|
+
flexGrow?: number;
|
|
22
|
+
slot?: string;
|
|
23
|
+
noResize?: boolean;
|
|
24
|
+
savedSize?: number;
|
|
25
|
+
defaultSize?: number;
|
|
26
|
+
children?: ChildComponent | ChildComponent[];
|
|
27
|
+
}
|
|
28
|
+
export interface SplitPanelProps extends SplitChildProps {
|
|
29
|
+
className?: string;
|
|
30
|
+
direction?: Layout.direction;
|
|
31
|
+
id: string;
|
|
32
|
+
resizeKeep?: boolean;
|
|
33
|
+
dynamicTarget?: boolean;
|
|
34
|
+
useDomSize?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export declare const SplitPanel: React.FC<SplitPanelProps>;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=split-panel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split-panel.d.ts","sourceRoot":"","sources":["../../../src/components/layout/split-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAOlC,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3D,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACzE,OAAO,EAAE,CAAC,QAAQ,EAAE,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,KAAK,CAAC,EAAE,CAAC,eAAe,CAwM/C,CAAC"}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SplitPanel = exports.PanelContext = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = (0, tslib_1.__importDefault)(require("react"));
|
|
6
|
+
const classnames_1 = (0, tslib_1.__importDefault)(require("classnames"));
|
|
7
|
+
const styles_module_less_1 = (0, tslib_1.__importDefault)(require("./styles.module.less"));
|
|
8
|
+
const layout_1 = require("./layout");
|
|
9
|
+
const react_hooks_1 = require("../../react-hooks");
|
|
10
|
+
const resize_1 = require("../resize/resize");
|
|
11
|
+
const ide_core_common_1 = require("@opensumi/ide-core-common");
|
|
12
|
+
const layout_2 = require("../../layout");
|
|
13
|
+
const split_panel_service_1 = require("./split-panel.service");
|
|
14
|
+
exports.PanelContext = react_1.default.createContext({
|
|
15
|
+
setSize: (targetSize, isLatter) => { },
|
|
16
|
+
setRelativeSize: (prev, next, isLatter) => { },
|
|
17
|
+
getSize: (isLatter) => 0,
|
|
18
|
+
getRelativeSize: (isLatter) => [0, 0],
|
|
19
|
+
lockSize: (lock, isLatter) => { },
|
|
20
|
+
setMaxSize: (lock, isLatter) => { },
|
|
21
|
+
hidePanel: (show) => { },
|
|
22
|
+
});
|
|
23
|
+
const getProp = (child, prop) => {
|
|
24
|
+
return child && child['props'] && child['props'][prop];
|
|
25
|
+
};
|
|
26
|
+
exports.SplitPanel = ((_a) => {
|
|
27
|
+
var { id, className, children = [], direction = 'left-to-right', resizeKeep = true, flexGrow, dynamicTarget, minResize, useDomSize } = _a, restProps = (0, tslib_1.__rest)(_a, ["id", "className", "children", "direction", "resizeKeep", "flexGrow", "dynamicTarget", "minResize", "useDomSize"]);
|
|
28
|
+
const ResizeHandle = layout_1.Layout.getResizeHandle(direction);
|
|
29
|
+
// convert children to list
|
|
30
|
+
const childList = react_1.default.Children.toArray(children);
|
|
31
|
+
const totalFlexNum = childList.reduce((accumulator, item) => accumulator + (getProp(item, 'flex') !== undefined ? item['props'].flex : 1), 0);
|
|
32
|
+
const elements = [];
|
|
33
|
+
const resizeDelegates = react_1.default.useRef([]);
|
|
34
|
+
const eventBus = (0, react_hooks_1.useInjectable)(ide_core_common_1.IEventBus);
|
|
35
|
+
const rootRef = react_1.default.useRef();
|
|
36
|
+
const splitPanelService = (0, react_hooks_1.useInjectable)(split_panel_service_1.SplitPanelManager).getService(id);
|
|
37
|
+
const maxLockState = react_1.default.useRef(childList.map(() => false));
|
|
38
|
+
const hideState = react_1.default.useRef(childList.map(() => false));
|
|
39
|
+
const resizeLockState = react_1.default.useRef(maxLockState.current.slice(0, childList.length - 1));
|
|
40
|
+
const [locks, setLocks] = react_1.default.useState(resizeLockState.current);
|
|
41
|
+
const [hides, setHides] = react_1.default.useState(hideState.current);
|
|
42
|
+
const [maxLocks, setMaxLocks] = react_1.default.useState(maxLockState.current);
|
|
43
|
+
splitPanelService.panels = [];
|
|
44
|
+
// 获取setSize的handle,对于最右端或最底部的视图,取上一个位置的handle
|
|
45
|
+
const setSizeHandle = (index) => {
|
|
46
|
+
return (size, isLatter) => {
|
|
47
|
+
const targetIndex = isLatter ? index - 1 : index;
|
|
48
|
+
const delegete = resizeDelegates.current[targetIndex];
|
|
49
|
+
if (delegete) {
|
|
50
|
+
delegete.setAbsoluteSize(size !== undefined ? size : getProp(childList[index], 'defaultSize'), isLatter, resizeKeep);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
const setRelativeSizeHandle = (index) => {
|
|
55
|
+
return (prev, next, isLatter) => {
|
|
56
|
+
const targetIndex = isLatter ? index - 1 : index;
|
|
57
|
+
const delegete = resizeDelegates.current[targetIndex];
|
|
58
|
+
if (delegete) {
|
|
59
|
+
delegete.setRelativeSize(prev, next);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
const getSizeHandle = (index) => {
|
|
64
|
+
return (isLatter) => {
|
|
65
|
+
const targetIndex = isLatter ? index - 1 : index;
|
|
66
|
+
const delegete = resizeDelegates.current[targetIndex];
|
|
67
|
+
if (delegete) {
|
|
68
|
+
return delegete.getAbsoluteSize(isLatter);
|
|
69
|
+
}
|
|
70
|
+
return 0;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
const getRelativeSizeHandle = (index) => {
|
|
74
|
+
return (isLatter) => {
|
|
75
|
+
const targetIndex = isLatter ? index - 1 : index;
|
|
76
|
+
const delegete = resizeDelegates.current[targetIndex];
|
|
77
|
+
if (delegete) {
|
|
78
|
+
return delegete.getRelativeSize();
|
|
79
|
+
}
|
|
80
|
+
return [0, 0];
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
const lockResizeHandle = (index) => {
|
|
84
|
+
return (lock, isLatter) => {
|
|
85
|
+
const targetIndex = isLatter ? index - 1 : index;
|
|
86
|
+
const newResizeState = resizeLockState.current.map((state, idx) => idx === targetIndex ? (lock !== undefined ? lock : !state) : state);
|
|
87
|
+
resizeLockState.current = newResizeState;
|
|
88
|
+
setLocks(newResizeState);
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
const setMaxSizeHandle = (index) => {
|
|
92
|
+
return (lock, isLatter) => {
|
|
93
|
+
const newMaxState = maxLockState.current.map((state, idx) => idx === index ? (lock !== undefined ? lock : !state) : state);
|
|
94
|
+
maxLockState.current = newMaxState;
|
|
95
|
+
setMaxLocks(newMaxState);
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
const hidePanelHandle = (index) => {
|
|
99
|
+
return (show) => {
|
|
100
|
+
const newHideState = hideState.current.map((state, idx) => idx === index ? (show !== undefined ? !show : !state) : state);
|
|
101
|
+
hideState.current = newHideState;
|
|
102
|
+
const location = getProp(childList[index], 'slot') || getProp(childList[index], 'id');
|
|
103
|
+
if (location) {
|
|
104
|
+
fireResizeEvent(location);
|
|
105
|
+
}
|
|
106
|
+
setHides(newHideState);
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
const fireResizeEvent = (location) => {
|
|
110
|
+
if (location) {
|
|
111
|
+
eventBus.fire(new layout_2.ResizeEvent({ slotLocation: location }));
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
childList.forEach((element, index) => {
|
|
115
|
+
if (index !== 0) {
|
|
116
|
+
const targetElement = index === 1 ? childList[index - 1] : childList[index];
|
|
117
|
+
let flexMode;
|
|
118
|
+
if (getProp(element, 'flexGrow')) {
|
|
119
|
+
flexMode = resize_1.ResizeFlexMode.Prev;
|
|
120
|
+
}
|
|
121
|
+
else if (getProp(childList[index - 1], 'flexGrow')) {
|
|
122
|
+
flexMode = resize_1.ResizeFlexMode.Next;
|
|
123
|
+
}
|
|
124
|
+
const noResize = getProp(targetElement, 'noResize') || locks[index - 1];
|
|
125
|
+
if (!noResize) {
|
|
126
|
+
elements.push(react_1.default.createElement(ResizeHandle, { onResize: (prev, next) => {
|
|
127
|
+
const prevLocation = getProp(childList[index - 1], 'slot') || getProp(childList[index - 1], 'id');
|
|
128
|
+
const nextLocation = getProp(childList[index], 'slot') || getProp(childList[index], 'id');
|
|
129
|
+
fireResizeEvent(prevLocation);
|
|
130
|
+
fireResizeEvent(nextLocation);
|
|
131
|
+
}, noColor: true, findNextElement: dynamicTarget ? (direction) => splitPanelService.getFirstResizablePanel(index - 1, direction) : undefined, findPrevElement: dynamicTarget ? (direction) => splitPanelService.getFirstResizablePanel(index - 1, direction, true) : undefined, key: `split-handle-${index}`, delegate: (delegate) => { resizeDelegates.current.push(delegate); }, flexMode: flexMode }));
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
elements.push(react_1.default.createElement(exports.PanelContext.Provider, { key: index, value: {
|
|
135
|
+
setSize: setSizeHandle(index),
|
|
136
|
+
getSize: getSizeHandle(index),
|
|
137
|
+
setRelativeSize: setRelativeSizeHandle(index),
|
|
138
|
+
getRelativeSize: getRelativeSizeHandle(index),
|
|
139
|
+
lockSize: lockResizeHandle(index),
|
|
140
|
+
setMaxSize: setMaxSizeHandle(index),
|
|
141
|
+
hidePanel: hidePanelHandle(index),
|
|
142
|
+
} },
|
|
143
|
+
react_1.default.createElement("div", { "data-min-resize": getProp(element, 'minResize'), ref: (ele) => {
|
|
144
|
+
if (ele && splitPanelService.panels.indexOf(ele) === -1) {
|
|
145
|
+
splitPanelService.panels.push(ele);
|
|
146
|
+
}
|
|
147
|
+
}, id: getProp(element, 'id') /* @deprecated: query by data-view-id */, style: Object.assign(Object.assign(Object.assign(Object.assign({}, (element['props'].flex && !element['props'].savedSize) && !childList.find((item) => item['props'].flexGrow) ? { flex: element['props'].flex } : { [layout_1.Layout.getSizeProperty(direction)]: getElementSize(element) }), {
|
|
148
|
+
// 相对尺寸带来的问题,必须限制最小最大尺寸
|
|
149
|
+
[layout_1.Layout.getMinSizeProperty(direction)]: getProp(element, 'minSize') ? element['props'].minSize + 'px' : '-1px', [layout_1.Layout.getMaxSizeProperty(direction)]: maxLocks[index] && getProp(element, 'minSize') ? element['props'].minSize + 'px' : 'unset' }), getProp(element, 'flexGrow') !== undefined ? { flexGrow: element['props'].flexGrow } : {}), { display: hides[index] ? 'none' : 'block' }) }, element)));
|
|
150
|
+
});
|
|
151
|
+
function getElementSize(element) {
|
|
152
|
+
if (element.props.savedSize) {
|
|
153
|
+
return element.props.savedSize + 'px';
|
|
154
|
+
}
|
|
155
|
+
else if (element.props.defaultSize !== undefined) {
|
|
156
|
+
return element.props.defaultSize + 'px';
|
|
157
|
+
}
|
|
158
|
+
else if (element.props.flex) {
|
|
159
|
+
return element.props.flex / totalFlexNum * 100 + '%';
|
|
160
|
+
}
|
|
161
|
+
else {
|
|
162
|
+
return 1 / totalFlexNum * 100 + '%';
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
react_1.default.useEffect(() => {
|
|
166
|
+
if (rootRef.current) {
|
|
167
|
+
splitPanelService.rootNode = rootRef.current;
|
|
168
|
+
}
|
|
169
|
+
const disposer = eventBus.on(layout_2.ResizeEvent, (e) => {
|
|
170
|
+
if (e.payload.slotLocation === id) {
|
|
171
|
+
childList.forEach((c) => {
|
|
172
|
+
fireResizeEvent(getProp(c, 'slot') || getProp(c, 'id'));
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
return () => {
|
|
177
|
+
disposer.dispose();
|
|
178
|
+
};
|
|
179
|
+
}, []);
|
|
180
|
+
return (react_1.default.createElement("div", Object.assign({ ref: (ele) => rootRef.current = ele }, restProps, { className: (0, classnames_1.default)(styles_module_less_1.default['split-panel'], className), style: { flexDirection: layout_1.Layout.getFlexDirection(direction) } }), elements));
|
|
181
|
+
});
|
|
182
|
+
//# sourceMappingURL=split-panel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split-panel.js","sourceRoot":"","sources":["../../../src/components/layout/split-panel.tsx"],"names":[],"mappings":";;;;AAAA,+DAA0B;AAC1B,yEAA8B;AAC9B,2FAA0C;AAC1C,qCAAkC;AAClC,mDAAkD;AAClD,6CAAyE;AACzE,+DAAsD;AACtD,yCAA2C;AAC3C,+DAA0D;AAY7C,QAAA,YAAY,GAAG,eAAK,CAAC,aAAa,CAAe;IAC5D,OAAO,EAAE,CAAC,UAAkB,EAAE,QAAiB,EAAE,EAAE,GAAE,CAAC;IACtD,eAAe,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,GAAE,CAAC;IAC7C,OAAO,EAAE,CAAC,QAAiB,EAAE,EAAE,CAAC,CAAC;IACjC,eAAe,EAAE,CAAC,QAAiB,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAC9C,QAAQ,EAAE,CAAC,IAAyB,EAAE,QAAiB,EAAE,EAAE,GAAE,CAAC;IAC9D,UAAU,EAAE,CAAC,IAAyB,EAAE,QAAiB,EAAE,EAAE,GAAE,CAAC;IAChE,SAAS,EAAE,CAAC,IAAc,EA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E;YACnB,iBAAiB,CAAC,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC;SAC9C;QACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAC,oBAAW,EAAE,CAAC,CAAC,EAAE,EAAE;YAC9C,IAAI,CAAC,CAAC,OAAO,CAAC,YAAY,KAAK,EAAE,EAAE;gBACjC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;oBACtB,eAAe,CAAC,OAAO,CAAC,CAAC,EAAE,MAAM,CAAC,IAAI,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;gBAC1D,CAAC,CAAC,CAAC;aACJ;QACH,CAAC,CAAC,CAAC;QACH,OAAO,GAAG,EAAE;YACV,QAAQ,CAAC,OAAO,EAAE,CAAC;QACrB,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,qDACE,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,GAAG,GAAI,IAChC,SAAS,IACb,SAAS,EAAE,IAAA,oBAAI,EAAC,4BAAM,CAAC,aAAa,CAAC,EAAE,SAAS,CAAC,EACjD,KAAK,EACH,EAAC,aAAa,EAAE,eAAM,CAAC,gBAAgB,CAAC,SAAS,CAAC,EAAC,KAGpD,QAAQ,CACL,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Injector } from '@opensumi/di';
|
|
2
|
+
export declare class SplitPanelService {
|
|
3
|
+
panelId: string;
|
|
4
|
+
private static MIN_SIZE;
|
|
5
|
+
constructor(panelId: string);
|
|
6
|
+
panels: HTMLElement[];
|
|
7
|
+
rootNode: HTMLElement | undefined;
|
|
8
|
+
get isVisible(): boolean;
|
|
9
|
+
getFirstResizablePanel(index: number, direction: boolean, isPrev?: boolean): HTMLElement | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare class SplitPanelManager {
|
|
12
|
+
injector: Injector;
|
|
13
|
+
services: Map<string, SplitPanelService>;
|
|
14
|
+
getService(panelId: string): SplitPanelService;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=split-panel.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split-panel.service.d.ts","sourceRoot":"","sources":["../../../src/components/layout/split-panel.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,QAAQ,EAAa,MAAM,cAAc,CAAC;AAE/E,qBACa,iBAAiB;IAET,OAAO,EAAE,MAAM;IADlC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAe;gBACnB,OAAO,EAAE,MAAM;IAElC,MAAM,EAAE,WAAW,EAAE,CAAM;IAE3B,QAAQ,EAAE,WAAW,GAAG,SAAS,CAAC;IAElC,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,WAAW,GAAG,SAAS;CAuBrG;AAED,qBACa,iBAAiB;IAE5B,QAAQ,EAAE,QAAQ,CAAC;IAEnB,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAa;IAErD,UAAU,CAAC,OAAO,EAAE,MAAM;CAQ3B"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var SplitPanelService_1;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.SplitPanelManager = exports.SplitPanelService = void 0;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
const di_1 = require("@opensumi/di");
|
|
7
|
+
let SplitPanelService = SplitPanelService_1 = class SplitPanelService {
|
|
8
|
+
constructor(panelId) {
|
|
9
|
+
this.panelId = panelId;
|
|
10
|
+
this.panels = [];
|
|
11
|
+
}
|
|
12
|
+
get isVisible() {
|
|
13
|
+
return this.rootNode && this.rootNode.clientHeight > 0 || false;
|
|
14
|
+
}
|
|
15
|
+
getFirstResizablePanel(index, direction, isPrev) {
|
|
16
|
+
if (isPrev) {
|
|
17
|
+
if (direction) {
|
|
18
|
+
return this.panels[index];
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
for (let i = index; i >= 0; i--) {
|
|
22
|
+
if (this.panels[i].clientHeight > SplitPanelService_1.MIN_SIZE) {
|
|
23
|
+
return this.panels[i];
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
if (!direction) {
|
|
30
|
+
return this.panels[index + 1];
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
for (let i = index + 1; i < this.panels.length; i++) {
|
|
34
|
+
if (this.panels[i].clientHeight > SplitPanelService_1.MIN_SIZE) {
|
|
35
|
+
return this.panels[i];
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
SplitPanelService.MIN_SIZE = 120;
|
|
43
|
+
SplitPanelService = SplitPanelService_1 = (0, tslib_1.__decorate)([
|
|
44
|
+
(0, di_1.Injectable)({ multiple: true }),
|
|
45
|
+
(0, tslib_1.__metadata)("design:paramtypes", [String])
|
|
46
|
+
], SplitPanelService);
|
|
47
|
+
exports.SplitPanelService = SplitPanelService;
|
|
48
|
+
let SplitPanelManager = class SplitPanelManager {
|
|
49
|
+
constructor() {
|
|
50
|
+
this.services = new Map();
|
|
51
|
+
}
|
|
52
|
+
getService(panelId) {
|
|
53
|
+
let service = this.services.get(panelId);
|
|
54
|
+
if (!service) {
|
|
55
|
+
service = this.injector.get(SplitPanelService, [panelId]);
|
|
56
|
+
this.services.set(panelId, service);
|
|
57
|
+
}
|
|
58
|
+
return service;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
(0, tslib_1.__decorate)([
|
|
62
|
+
(0, di_1.Autowired)(di_1.INJECTOR_TOKEN),
|
|
63
|
+
(0, tslib_1.__metadata)("design:type", di_1.Injector)
|
|
64
|
+
], SplitPanelManager.prototype, "injector", void 0);
|
|
65
|
+
SplitPanelManager = (0, tslib_1.__decorate)([
|
|
66
|
+
(0, di_1.Injectable)()
|
|
67
|
+
], SplitPanelManager);
|
|
68
|
+
exports.SplitPanelManager = SplitPanelManager;
|
|
69
|
+
//# sourceMappingURL=split-panel.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split-panel.service.js","sourceRoot":"","sources":["../../../src/components/layout/split-panel.service.ts"],"names":[],"mappings":";;;;;AAAA,qCAA+E;AAG/E,IAAa,iBAAiB,yBAA9B,MAAa,iBAAiB;IAE5B,YAAmB,OAAe;QAAf,YAAO,GAAP,OAAO,CAAQ;QAElC,WAAM,GAAkB,EAAE,CAAC;IAFU,CAAC;IAMtC,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,YAAY,GAAG,CAAC,IAAI,KAAK,CAAC;IAClE,CAAC;IAED,sBAAsB,CAAC,KAAa,EAAE,SAAkB,EAAE,MAAgB;QACxE,IAAI,MAAM,EAAE;YACV,IAAI,SAAS,EAAE;gBACb,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;aAC3B;iBAAM;gBACL,KAAK,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE;oBAC/B,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,YAAY,GAAG,mBAAiB,CAAC,QAAQ,EAAE;wBAC5D,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;qBACvB;iBACF;aACF;SACF;aAAM;YACL,IAAI,CAAC,SAAS,EAAE;gBACd,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;aAC/B;iBAAM;gBACL,KAAK,IAAI,C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block;
|
|
8
|
+
}
|
|
9
|
+
&.collapse{
|
|
10
|
+
&:before {
|
|
11
|
+
transform: rotate(0);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
.side-container {
|
|
16
|
+
min-width: 100%;
|
|
17
|
+
}
|
|
18
|
+
/*-----------------------------------------------------------------------------
|
|
19
|
+
| Sidepanel Toolbar
|
|
20
|
+
|----------------------------------------------------------------------------*/
|
|
21
|
+
.panel-titlebar {
|
|
22
|
+
min-height: var(--tabBar-height);
|
|
23
|
+
}
|
|
24
|
+
.title-wrap {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: row;
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
align-items: center;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.panel-titlebar .sidepanel-title {
|
|
32
|
+
color: var(--sideBarTitle-foreground);
|
|
33
|
+
font-weight: 500;
|
|
34
|
+
margin-left: 10px;
|
|
35
|
+
text-transform: uppercase;
|
|
36
|
+
font-size: 12px;
|
|
37
|
+
line-height: var(--tabBar-height);
|
|
38
|
+
overflow: hidden;
|
|
39
|
+
text-overflow: ellipsis;
|
|
40
|
+
white-space: nowrap;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.panel-titlebar .p-TabBar-toolbar {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: row;
|
|
46
|
+
padding-right: 10px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.panel-titlebar .p-TabBar-toolbar .item {
|
|
50
|
+
color: var(--sideBarTitle-foreground);
|
|
51
|
+
margin-left: 8px;
|
|
52
|
+
opacity: 0.4;
|
|
53
|
+
> div {
|
|
54
|
+
width: 16px;
|
|
55
|
+
background-repeat: no-repeat;
|
|
56
|
+
&.mask-mode {
|
|
57
|
+
background-color: var(--foreground);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
&.enabled {
|
|
61
|
+
opacity: 1;
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.p-TabBar-toolbar .item .big {
|
|
67
|
+
transform: scale(1.2);
|
|
68
|
+
transition: transform .2s;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.sidepanel-component {
|
|
72
|
+
width: 100%;
|
|
73
|
+
}
|
|
74
|
+
.toolbar-container {
|
|
75
|
+
position: absolute;
|
|
76
|
+
z-index: 99;
|
|
77
|
+
top: -27px;
|
|
78
|
+
right: 0;
|
|
79
|
+
height: 24px;
|
|
80
|
+
display: flex;
|
|
81
|
+
flex-direction: row-reverse;
|
|
82
|
+
align-items: center;
|
|
83
|
+
.p-TabBar-toolbar {
|
|
84
|
+
overflow: visible;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.views-container {
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
height: 100%;
|
|
91
|
+
>div {
|
|
92
|
+
height: 100%;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.views-container:focus {
|
|
97
|
+
border: none;
|
|
98
|
+
outline: none;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
}
|
|
102
|
+
.split-panel {
|
|
103
|
+
display: flex;
|
|
104
|
+
flex: 1;
|
|
105
|
+
width: 100%;
|
|
106
|
+
height: 100%;
|
|
107
|
+
}
|
|
108
|
+
.box-panel {
|
|
109
|
+
display: flex;
|
|
110
|
+
width: 100%;
|
|
111
|
+
height: 100%;
|
|
112
|
+
}
|
|
113
|
+
.ease {
|
|
114
|
+
transition: height .1s ease-out, width .1s ease-out;
|
|
115
|
+
}
|
|
116
|
+
.wrapper {
|
|
117
|
+
position: relative;
|
|
118
|
+
z-index: 1;
|
|
119
|
+
}
|