@opensumi/ide-core-browser 2.21.13 → 2.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/application/application-state-service.d.ts +1 -1
- package/lib/application/application-state-service.d.ts.map +1 -1
- package/lib/application/application-state-service.js.map +1 -1
- package/lib/application/application.service.js.map +1 -1
- package/lib/authentication/authentication.contribution.js.map +1 -1
- package/lib/authentication/authentication.service.js.map +1 -1
- package/lib/bootstrap/app.d.ts +2 -35
- package/lib/bootstrap/app.d.ts.map +1 -1
- package/lib/bootstrap/app.interface.d.ts +39 -0
- package/lib/bootstrap/app.interface.d.ts.map +1 -0
- package/lib/bootstrap/app.interface.js +3 -0
- package/lib/bootstrap/app.interface.js.map +1 -0
- package/lib/bootstrap/app.js +8 -8
- package/lib/bootstrap/app.js.map +1 -1
- package/lib/bootstrap/app.view.d.ts +1 -1
- package/lib/bootstrap/app.view.d.ts.map +1 -1
- package/lib/bootstrap/connection.d.ts +1 -1
- package/lib/bootstrap/connection.d.ts.map +1 -1
- package/lib/bootstrap/connection.js +4 -4
- package/lib/bootstrap/connection.js.map +1 -1
- package/lib/bootstrap/index.d.ts +1 -1
- package/lib/bootstrap/index.d.ts.map +1 -1
- package/lib/bootstrap/index.js +1 -1
- package/lib/bootstrap/index.js.map +1 -1
- package/lib/bootstrap/inner-providers.js +1 -1
- package/lib/bootstrap/inner-providers.js.map +1 -1
- package/lib/bootstrap/lifecycle.service.js.map +1 -1
- package/lib/browser-module.js.map +1 -1
- package/lib/common/common.command.d.ts +24 -1
- package/lib/common/common.command.d.ts.map +1 -1
- package/lib/common/common.command.js +42 -6
- package/lib/common/common.command.js.map +1 -1
- package/lib/common/common.contribution.js.map +1 -1
- package/lib/common/common.module.js.map +1 -1
- package/lib/common/common.storage.js.map +1 -1
- package/lib/components/actions/index.d.ts +2 -2
- package/lib/components/actions/index.d.ts.map +1 -1
- package/lib/components/actions/index.js +2 -22
- package/lib/components/actions/index.js.map +1 -1
- package/lib/components/index.d.ts +0 -4
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +0 -4
- package/lib/components/index.js.map +1 -1
- package/lib/components/layout/box-panel.d.ts +1 -1
- package/lib/components/layout/box-panel.d.ts.map +1 -1
- package/lib/components/layout/split-panel.d.ts +17 -1
- package/lib/components/layout/split-panel.d.ts.map +1 -1
- package/lib/components/layout/split-panel.js +16 -16
- package/lib/components/layout/split-panel.js.map +1 -1
- package/lib/components/layout/split-panel.service.js.map +1 -1
- package/lib/components/progressbar/index.d.ts +2 -2
- package/lib/components/progressbar/index.d.ts.map +1 -1
- package/lib/components/progressbar/index.js +2 -10
- package/lib/components/progressbar/index.js.map +1 -1
- package/lib/contextkey/resource.d.ts +1 -1
- package/lib/contextkey/resource.d.ts.map +1 -1
- package/lib/contextkey/search.d.ts +24 -0
- package/lib/contextkey/search.d.ts.map +1 -0
- package/lib/contextkey/search.js +29 -0
- package/lib/contextkey/search.js.map +1 -0
- package/lib/contextkey/testing.d.ts +1 -0
- package/lib/contextkey/testing.d.ts.map +1 -1
- package/lib/contextkey/testing.js +2 -1
- package/lib/contextkey/testing.js.map +1 -1
- package/lib/core-preferences.d.ts +4 -3
- package/lib/core-preferences.d.ts.map +1 -1
- package/lib/core-preferences.js +2 -2
- package/lib/core-preferences.js.map +1 -1
- package/lib/dom/index.d.ts +1 -1
- package/lib/dom/index.d.ts.map +1 -1
- package/lib/encoding-registry.js.map +1 -1
- package/lib/extensions/extensions-point.service.js.map +1 -1
- package/lib/file-decoration.d.ts +10 -0
- package/lib/file-decoration.d.ts.map +1 -0
- package/lib/file-decoration.js +3 -0
- package/lib/file-decoration.js.map +1 -0
- package/lib/hash-calculate/hash-calculate.contribution.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/keybinding/keybinding.js.map +1 -1
- package/lib/keyboard/keyboard-layout-provider.d.ts +2 -2
- package/lib/keyboard/keyboard-layout-provider.d.ts.map +1 -1
- package/lib/keyboard/keyboard-layout-provider.js +13 -13
- package/lib/keyboard/keyboard-layout-provider.js.map +1 -1
- package/lib/keyboard/keyboard-layout-service.js.map +1 -1
- package/lib/keyboard/keys.d.ts +2 -2
- package/lib/keyboard/keys.d.ts.map +1 -1
- package/lib/keyboard/layouts/_.contribution.js +3 -3
- package/lib/keyboard/layouts/_.contribution.js.map +1 -1
- package/lib/layout/accordion/tab-bar-toolbar.js.map +1 -1
- package/lib/layout/accordion/view-context-key.registry.js.map +1 -1
- package/lib/layout/layout-hooks.d.ts +1 -1
- package/lib/layout/layout-hooks.d.ts.map +1 -1
- package/lib/layout/layout-state.js.map +1 -1
- package/lib/layout/layout.interface.d.ts +1 -1
- package/lib/layout/layout.interface.d.ts.map +1 -1
- package/lib/layout/layout.js.map +1 -1
- package/lib/logger/browser-logger.js.map +1 -1
- package/lib/markdown/index.d.ts +1 -1
- package/lib/markdown/index.d.ts.map +1 -1
- package/lib/markdown/index.js +4 -31
- package/lib/markdown/index.js.map +1 -1
- package/lib/menu/next/base.d.ts +4 -4
- package/lib/menu/next/base.d.ts.map +1 -1
- package/lib/menu/next/base.js.map +1 -1
- package/lib/menu/next/ctxmenu-service.js +10 -10
- package/lib/menu/next/ctxmenu-service.js.map +1 -1
- package/lib/menu/next/menu-service.js +6 -6
- package/lib/menu/next/menu-service.js.map +1 -1
- package/lib/menu/next/menu.contrib.interface.d.ts +16 -15
- package/lib/menu/next/menu.contrib.interface.d.ts.map +1 -1
- package/lib/menu/next/menu.contrib.interface.js.map +1 -1
- package/lib/menu/next/menu.interface.d.ts +2 -2
- package/lib/menu/next/menu.interface.d.ts.map +1 -1
- package/lib/menu/next/menu.interface.js.map +1 -1
- package/lib/menu/next/menubar-service.js +10 -10
- package/lib/menu/next/menubar-service.js.map +1 -1
- package/lib/menu/next/renderer/ctxmenu/browser.js.map +1 -1
- package/lib/menu/next/renderer/ctxmenu/electron.js.map +1 -1
- package/lib/menu/next/toolbar-action.service.d.ts +1 -1
- package/lib/menu/next/toolbar-action.service.d.ts.map +1 -1
- package/lib/menu/next/toolbar-action.service.js.map +1 -1
- package/lib/monaco/index.d.ts +7 -3
- package/lib/monaco/index.d.ts.map +1 -1
- package/lib/monaco/index.js.map +1 -1
- package/lib/monaco/merge-editor-widget.d.ts +53 -0
- package/lib/monaco/merge-editor-widget.d.ts.map +1 -0
- package/lib/monaco/merge-editor-widget.js +107 -0
- package/lib/monaco/merge-editor-widget.js.map +1 -0
- package/lib/opener/command-opener.js.map +1 -1
- package/lib/opener/default-opener.js.map +1 -1
- package/lib/opener/http-opener.js.map +1 -1
- package/lib/opener/opener.contribution.js.map +1 -1
- package/lib/opener/opener.service.js.map +1 -1
- package/lib/preferences/early-preferences.js +4 -4
- package/lib/preferences/early-preferences.js.map +1 -1
- package/lib/preferences/preference-configurations.js +1 -1
- package/lib/preferences/preference-configurations.js.map +1 -1
- package/lib/preferences/preference-contribution.d.ts +1 -2
- package/lib/preferences/preference-contribution.d.ts.map +1 -1
- package/lib/preferences/preference-contribution.js +26 -22
- package/lib/preferences/preference-contribution.js.map +1 -1
- package/lib/preferences/preference-provider.js.map +1 -1
- package/lib/preferences/preference-proxy.d.ts +2 -3
- package/lib/preferences/preference-proxy.d.ts.map +1 -1
- package/lib/preferences/preference-proxy.js.map +1 -1
- package/lib/preferences/preference-service.d.ts +1 -0
- package/lib/preferences/preference-service.d.ts.map +1 -1
- package/lib/preferences/preference-service.js +48 -3
- package/lib/preferences/preference-service.js.map +1 -1
- package/lib/preferences/settings.d.ts +44 -5
- package/lib/preferences/settings.d.ts.map +1 -1
- package/lib/preferences/settings.js.map +1 -1
- package/lib/preferences/types.d.ts +8 -1
- package/lib/preferences/types.d.ts.map +1 -1
- package/lib/preferences/types.js.map +1 -1
- package/lib/progress/progress-bar.d.ts +4 -1
- package/lib/progress/progress-bar.d.ts.map +1 -1
- package/lib/progress/progress-bar.js +11 -4
- package/lib/progress/progress-bar.js.map +1 -1
- package/lib/progress/progress-indicator.js.map +1 -1
- package/lib/progress/progress.service.js +6 -6
- package/lib/progress/progress.service.js.map +1 -1
- package/lib/quick-open/index.d.ts +1 -1
- package/lib/quick-open/index.d.ts.map +1 -1
- package/lib/quick-open/index.js.map +1 -1
- package/lib/quick-open/recent-files.js.map +1 -1
- package/lib/raw-context-key.d.ts +1 -1
- package/lib/raw-context-key.d.ts.map +1 -1
- package/lib/raw-context-key.js +4 -4
- package/lib/raw-context-key.js.map +1 -1
- package/lib/react-hooks/useThrottleFn/index.d.ts +13 -0
- package/lib/react-hooks/useThrottleFn/index.d.ts.map +1 -0
- package/lib/react-hooks/useThrottleFn/index.js +20 -0
- package/lib/react-hooks/useThrottleFn/index.js.map +1 -0
- package/lib/react-providers/config-provider.d.ts +6 -0
- package/lib/react-providers/config-provider.d.ts.map +1 -1
- package/lib/react-providers/config-provider.js.map +1 -1
- package/lib/react-providers/slot.d.ts +2 -2
- package/lib/react-providers/slot.d.ts.map +1 -1
- package/lib/services/clipboard.service.d.ts +1 -0
- package/lib/services/clipboard.service.d.ts.map +1 -1
- package/lib/services/clipboard.service.js +17 -30
- package/lib/services/clipboard.service.js.map +1 -1
- package/lib/services/credentials-service.js.map +1 -1
- package/lib/services/crypto-service.js.map +1 -1
- package/lib/services/external-uri.service.js.map +1 -1
- package/lib/services/label-service.js.map +1 -1
- package/lib/services/storage-service.d.ts +1 -0
- package/lib/services/storage-service.d.ts.map +1 -1
- package/lib/services/storage-service.js +13 -2
- package/lib/services/storage-service.js.map +1 -1
- package/lib/style/icon/icon.d.ts +3 -2
- package/lib/style/icon/icon.d.ts.map +1 -1
- package/lib/style/icon/icon.js +5 -1
- package/lib/style/icon/icon.js.map +1 -1
- package/lib/style/icon/ide-iconfont.d.ts +1 -1
- package/lib/style/icon/ide-iconfont.d.ts.map +1 -1
- package/lib/style/icon/ide-iconfont.js +1 -1
- package/lib/style/icon/ide-iconfont.js.map +1 -1
- package/lib/style/icon/index.less +13 -0
- package/lib/toolbar/components/button.js +12 -12
- package/lib/toolbar/components/button.js.map +1 -1
- package/lib/toolbar/toolbar.popover.registry.js.map +1 -1
- package/lib/toolbar/toolbar.registry.d.ts +1 -1
- package/lib/toolbar/toolbar.registry.d.ts.map +1 -1
- package/lib/toolbar/toolbar.registry.js.map +1 -1
- package/lib/toolbar/types.d.ts +1 -1
- package/lib/toolbar/types.d.ts.map +1 -1
- package/lib/utils/json.d.ts +5 -5
- package/lib/utils/json.d.ts.map +1 -1
- package/lib/utils/label.d.ts.map +1 -1
- package/lib/utils/label.js +16 -9
- package/lib/utils/label.js.map +1 -1
- package/lib/utils/parse.d.ts +2 -1
- package/lib/utils/parse.d.ts.map +1 -1
- package/lib/utils/parse.js +10 -1
- package/lib/utils/parse.js.map +1 -1
- package/lib/variable/variable.d.ts +1 -1
- package/lib/variable/variable.d.ts.map +1 -1
- package/lib/variable/variable.js.map +1 -1
- package/lib/window/window.service.js.map +1 -1
- package/package.json +9 -11
- package/src/application/application-state-service.ts +54 -0
- package/src/application/application.service.ts +51 -0
- package/src/application/index.ts +2 -0
- package/src/authentication/authentication.contribution.ts +35 -0
- package/src/authentication/authentication.service.ts +517 -0
- package/src/bootstrap/app.interface.ts +46 -0
- package/src/bootstrap/app.ts +710 -0
- package/src/bootstrap/app.view.tsx +88 -0
- package/src/bootstrap/connection.ts +116 -0
- package/src/bootstrap/index.ts +3 -0
- package/src/bootstrap/inner-providers.ts +297 -0
- package/src/bootstrap/lifecycle.service.ts +19 -0
- package/src/browser-module.ts +24 -0
- package/src/common/common.command.ts +1018 -0
- package/src/common/common.contribution.ts +343 -0
- package/src/common/common.define.ts +55 -0
- package/src/common/common.module.ts +33 -0
- package/src/common/common.storage.ts +22 -0
- package/src/common/container-id.ts +12 -0
- package/src/common/index.ts +4 -0
- package/src/components/actions/index.tsx +486 -0
- package/src/components/actions/placements.ts +47 -0
- package/src/components/actions/styles.module.less +144 -0
- package/src/components/badge/index.tsx +1 -0
- package/src/components/index.ts +22 -0
- package/src/components/layout/box-panel.tsx +88 -0
- package/src/components/layout/default-layout.tsx +61 -0
- package/src/components/layout/index.ts +4 -0
- package/src/components/layout/layout.ts +80 -0
- package/src/components/layout/split-panel.service.ts +56 -0
- package/src/components/layout/split-panel.tsx +315 -0
- package/src/components/layout/styles.module.less +21 -0
- package/src/components/loading/index.ts +1 -0
- package/src/components/loading/loading.less +14 -0
- package/src/components/loading/loading.view.tsx +7 -0
- package/src/components/loading/media/loading-dark.svg +52 -0
- package/src/components/loading/media/loading-hc.svg +52 -0
- package/src/components/loading/media/loading.svg +52 -0
- package/src/components/popover/styles.module.less +81 -0
- package/src/components/portal/index.tsx +13 -0
- package/src/components/progressbar/index.tsx +3 -0
- package/src/components/resize/resize.module.less +78 -0
- package/src/components/resize/resize.tsx +663 -0
- package/src/components/select/index.tsx +12 -0
- package/src/components/select/styles.less +6 -0
- package/src/context-key.ts +48 -0
- package/src/contextkey/dialog.ts +3 -0
- package/src/contextkey/explorer.ts +26 -0
- package/src/contextkey/index.ts +6 -0
- package/src/contextkey/outline.ts +4 -0
- package/src/contextkey/resource.ts +61 -0
- package/src/contextkey/search.ts +30 -0
- package/src/contextkey/terminal.ts +7 -0
- package/src/contextkey/testing.ts +9 -0
- package/src/contextkey/workspace.ts +7 -0
- package/src/core-preferences.ts +318 -0
- package/src/dom/index.ts +176 -0
- package/src/encoding-registry.ts +83 -0
- package/src/extensions/extensions-point.service.ts +78 -0
- package/src/extensions/index.ts +3 -0
- package/src/extensions/schema/browserViews.ts +96 -0
- package/src/extensions/schema/menu.ts +245 -0
- package/src/extensions/schema/opensumiExtensionPackageSchema.ts +12 -0
- package/src/extensions/schema/toolbar.ts +338 -0
- package/src/extensions/schema/vscodeExtensionPackageSchema.ts +330 -0
- package/src/file-decoration.ts +10 -0
- package/src/fs/index.ts +12 -0
- package/src/hash-calculate/hash-calculate.contribution.ts +19 -0
- package/src/index.ts +42 -0
- package/src/keybinding/index.ts +1 -0
- package/src/keybinding/keybinding.ts +908 -0
- package/src/keyboard/index.ts +3 -0
- package/src/keyboard/keyboard-layout-provider.ts +412 -0
- package/src/keyboard/keyboard-layout-service.ts +449 -0
- package/src/keyboard/keys.ts +748 -0
- package/src/keyboard/layouts/_.contribution.ts +24 -0
- package/src/keyboard/layouts/cz.win.ts +168 -0
- package/src/keyboard/layouts/de-swiss.win.ts +168 -0
- package/src/keyboard/layouts/de.darwin.ts +131 -0
- package/src/keyboard/layouts/de.linux.ts +186 -0
- package/src/keyboard/layouts/de.win.ts +168 -0
- package/src/keyboard/layouts/dk.win.ts +168 -0
- package/src/keyboard/layouts/dvorak.darwin.ts +131 -0
- package/src/keyboard/layouts/en-belgian.win.ts +168 -0
- package/src/keyboard/layouts/en-ext.darwin.ts +131 -0
- package/src/keyboard/layouts/en-in.win.ts +168 -0
- package/src/keyboard/layouts/en-intl.darwin.ts +131 -0
- package/src/keyboard/layouts/en-intl.win.ts +168 -0
- package/src/keyboard/layouts/en-uk.darwin.ts +131 -0
- package/src/keyboard/layouts/en-uk.win.ts +168 -0
- package/src/keyboard/layouts/en.darwin.ts +139 -0
- package/src/keyboard/layouts/en.linux.ts +186 -0
- package/src/keyboard/layouts/en.win.ts +173 -0
- package/src/keyboard/layouts/es-latin.win.ts +168 -0
- package/src/keyboard/layouts/es.darwin.ts +131 -0
- package/src/keyboard/layouts/es.linux.ts +186 -0
- package/src/keyboard/layouts/es.win.ts +168 -0
- package/src/keyboard/layouts/fr.darwin.ts +131 -0
- package/src/keyboard/layouts/fr.linux.ts +186 -0
- package/src/keyboard/layouts/fr.win.ts +168 -0
- package/src/keyboard/layouts/hu.win.ts +168 -0
- package/src/keyboard/layouts/it.darwin.ts +131 -0
- package/src/keyboard/layouts/it.win.ts +168 -0
- package/src/keyboard/layouts/jp-roman.darwin.ts +131 -0
- package/src/keyboard/layouts/jp.darwin.ts +131 -0
- package/src/keyboard/layouts/ko.darwin.ts +131 -0
- package/src/keyboard/layouts/layout.contribution.darwin.ts +23 -0
- package/src/keyboard/layouts/layout.contribution.linux.ts +12 -0
- package/src/keyboard/layouts/layout.contribution.ts +9 -0
- package/src/keyboard/layouts/layout.contribution.win.ts +29 -0
- package/src/keyboard/layouts/no.win.ts +168 -0
- package/src/keyboard/layouts/pl.darwin.ts +131 -0
- package/src/keyboard/layouts/pl.win.ts +168 -0
- package/src/keyboard/layouts/pt-br.win.ts +169 -0
- package/src/keyboard/layouts/pt.darwin.ts +131 -0
- package/src/keyboard/layouts/pt.win.ts +168 -0
- package/src/keyboard/layouts/ru.darwin.ts +131 -0
- package/src/keyboard/layouts/ru.linux.ts +186 -0
- package/src/keyboard/layouts/ru.win.ts +168 -0
- package/src/keyboard/layouts/sv.darwin.ts +131 -0
- package/src/keyboard/layouts/sv.win.ts +168 -0
- package/src/keyboard/layouts/thai.win.ts +168 -0
- package/src/keyboard/layouts/tr.win.ts +168 -0
- package/src/keyboard/layouts/zh-hans.darwin.ts +131 -0
- package/src/layout/accordion/tab-bar-toolbar.tsx +59 -0
- package/src/layout/accordion/view-context-key.registry.ts +34 -0
- package/src/layout/constants.ts +7 -0
- package/src/layout/index.ts +5 -0
- package/src/layout/layout-hooks.ts +70 -0
- package/src/layout/layout-state.ts +107 -0
- package/src/layout/layout.interface.ts +101 -0
- package/src/layout/layout.ts +80 -0
- package/src/layout/view-id.ts +18 -0
- package/src/logger/browser-logger.ts +51 -0
- package/src/logger/index.ts +1 -0
- package/src/markdown/index.tsx +30 -0
- package/src/menu/next/base.ts +513 -0
- package/src/menu/next/ctxmenu-service.ts +188 -0
- package/src/menu/next/index.ts +10 -0
- package/src/menu/next/menu-id.ts +86 -0
- package/src/menu/next/menu-service.ts +252 -0
- package/src/menu/next/menu-util.ts +77 -0
- package/src/menu/next/menu.contrib.interface.ts +79 -0
- package/src/menu/next/menu.interface.ts +253 -0
- package/src/menu/next/menubar-service.ts +211 -0
- package/src/menu/next/renderer/ctxmenu/base.ts +18 -0
- package/src/menu/next/renderer/ctxmenu/browser.ts +45 -0
- package/src/menu/next/renderer/ctxmenu/electron.ts +207 -0
- package/src/menu/next/toolbar-action.service.ts +132 -0
- package/src/monaco/index.ts +136 -0
- package/src/monaco/merge-editor-widget.ts +159 -0
- package/src/opener/command-opener.ts +42 -0
- package/src/opener/default-opener.ts +31 -0
- package/src/opener/http-opener.ts +25 -0
- package/src/opener/index.ts +19 -0
- package/src/opener/opener.contribution.ts +57 -0
- package/src/opener/opener.service.ts +66 -0
- package/src/preferences/early-preferences.ts +117 -0
- package/src/preferences/index.ts +9 -0
- package/src/preferences/preference-configurations.ts +77 -0
- package/src/preferences/preference-contribution.ts +397 -0
- package/src/preferences/preference-provider.ts +414 -0
- package/src/preferences/preference-proxy.ts +291 -0
- package/src/preferences/preference-scope.ts +3 -0
- package/src/preferences/preference-service.ts +621 -0
- package/src/preferences/settings.ts +90 -0
- package/src/preferences/types.ts +119 -0
- package/src/progress/index.ts +58 -0
- package/src/progress/progress-bar.tsx +34 -0
- package/src/progress/progress-indicator.ts +90 -0
- package/src/progress/progress.module.less +46 -0
- package/src/progress/progress.service.tsx +429 -0
- package/src/quick-open/index.ts +655 -0
- package/src/quick-open/recent-files.ts +68 -0
- package/src/raw-context-key.ts +116 -0
- package/src/react-hooks/event.tsx +80 -0
- package/src/react-hooks/hot-key.tsx +58 -0
- package/src/react-hooks/index.ts +3 -0
- package/src/react-hooks/injectable-hooks.tsx +35 -0
- package/src/react-hooks/portal-hooks.tsx +38 -0
- package/src/react-hooks/useThrottleFn/index.ts +34 -0
- package/src/react-providers/config-provider.tsx +269 -0
- package/src/react-providers/index.tsx +2 -0
- package/src/react-providers/slot.module.less +19 -0
- package/src/react-providers/slot.tsx +242 -0
- package/src/services/clipboard.service.ts +92 -0
- package/src/services/credentials-service.ts +91 -0
- package/src/services/crypto-service.ts +23 -0
- package/src/services/external-uri.service.ts +68 -0
- package/src/services/index.ts +7 -0
- package/src/services/label-service.ts +386 -0
- package/src/services/status-bar-service.ts +108 -0
- package/src/services/storage-service.ts +201 -0
- package/src/style/codicons/README.md +22 -0
- package/src/style/codicons/codicon-animations.css +15 -0
- package/src/style/codicons/generator.js +15 -0
- package/src/style/entry.less +25 -0
- package/src/style/icon/fileicons/file-default.svg +1 -0
- package/src/style/icon/fileicons/folder-default.svg +1 -0
- package/src/style/icon/fileicons.less +20 -0
- package/src/style/icon/icon.ts +547 -0
- package/src/style/icon/ide-iconfont.ts +13 -0
- package/src/style/icon/index.less +67 -0
- package/src/style/icon/seti.woff +0 -0
- package/src/style/icon/symbol-icons/boolean-dark.svg +3 -0
- package/src/style/icon/symbol-icons/boolean-light.svg +3 -0
- package/src/style/icon/symbol-icons/class-dark.svg +3 -0
- package/src/style/icon/symbol-icons/class-light.svg +3 -0
- package/src/style/icon/symbol-icons/constant-dark.svg +4 -0
- package/src/style/icon/symbol-icons/constant-light.svg +4 -0
- package/src/style/icon/symbol-icons/enumerator-dark.svg +3 -0
- package/src/style/icon/symbol-icons/enumerator-item-dark.svg +3 -0
- package/src/style/icon/symbol-icons/enumerator-item-light.svg +3 -0
- package/src/style/icon/symbol-icons/enumerator-light.svg +3 -0
- package/src/style/icon/symbol-icons/event-dark.svg +3 -0
- package/src/style/icon/symbol-icons/event-light.svg +3 -0
- package/src/style/icon/symbol-icons/field-dark.svg +3 -0
- package/src/style/icon/symbol-icons/field-light.svg +3 -0
- package/src/style/icon/symbol-icons/file-dark.svg +3 -0
- package/src/style/icon/symbol-icons/file-light.svg +3 -0
- package/src/style/icon/symbol-icons/indexer-dark.svg +3 -0
- package/src/style/icon/symbol-icons/indexer-light.svg +3 -0
- package/src/style/icon/symbol-icons/interface-dark.svg +3 -0
- package/src/style/icon/symbol-icons/interface-light.svg +3 -0
- package/src/style/icon/symbol-icons/keyword-dark.svg +3 -0
- package/src/style/icon/symbol-icons/keyword-light.svg +3 -0
- package/src/style/icon/symbol-icons/method-dark.svg +3 -0
- package/src/style/icon/symbol-icons/method-light.svg +3 -0
- package/src/style/icon/symbol-icons/namespace-dark.svg +3 -0
- package/src/style/icon/symbol-icons/namespace-light.svg +3 -0
- package/src/style/icon/symbol-icons/numeric-dark.svg +3 -0
- package/src/style/icon/symbol-icons/numeric-light.svg +3 -0
- package/src/style/icon/symbol-icons/operator-dark.svg +3 -0
- package/src/style/icon/symbol-icons/operator-light.svg +3 -0
- package/src/style/icon/symbol-icons/property-dark.svg +3 -0
- package/src/style/icon/symbol-icons/property-light.svg +3 -0
- package/src/style/icon/symbol-icons/snippet-dark.svg +3 -0
- package/src/style/icon/symbol-icons/snippet-light.svg +3 -0
- package/src/style/icon/symbol-icons/string-dark.svg +3 -0
- package/src/style/icon/symbol-icons/string-light.svg +3 -0
- package/src/style/icon/symbol-icons/structure-dark.svg +3 -0
- package/src/style/icon/symbol-icons/structure-light.svg +3 -0
- package/src/style/icon/symbol-icons/symbol-icons.css +284 -0
- package/src/style/icon/symbol-icons/template-dark.svg +3 -0
- package/src/style/icon/symbol-icons/template-light.svg +3 -0
- package/src/style/icon/symbol-icons/variable-dark.svg +3 -0
- package/src/style/icon/symbol-icons/variable-light.svg +3 -0
- package/src/style/icon.less +8 -0
- package/src/style/index.less +14 -0
- package/src/style/monaco-override.less +116 -0
- package/src/style/normalize.less +92 -0
- package/src/style/octicons/octicons-cdn.css +720 -0
- package/src/style/octicons/octicons.css +714 -0
- package/src/style/octicons/octicons.html +1882 -0
- package/src/style/octicons/octicons.svg +582 -0
- package/src/style/octicons/octicons.ttf +0 -0
- package/src/style/override.less +97 -0
- package/src/style/toolbar.less +199 -0
- package/src/style/utilities.less +8 -0
- package/src/style/variable.less +8 -0
- package/src/terminal/index.ts +7 -0
- package/src/toolbar/components/auto-complete.tsx +0 -0
- package/src/toolbar/components/button.tsx +440 -0
- package/src/toolbar/components/index.ts +2 -0
- package/src/toolbar/components/select.tsx +189 -0
- package/src/toolbar/index.ts +3 -0
- package/src/toolbar/toolbar.popover.registry.ts +32 -0
- package/src/toolbar/toolbar.registry.ts +352 -0
- package/src/toolbar/toolbar.tsx +710 -0
- package/src/toolbar/types.ts +383 -0
- package/src/utils/create-overlay.tsx +53 -0
- package/src/utils/electron.ts +92 -0
- package/src/utils/env.ts +26 -0
- package/src/utils/icon.ts +13 -0
- package/src/utils/index.ts +7 -0
- package/src/utils/json.ts +251 -0
- package/src/utils/label.tsx +36 -0
- package/src/utils/parse.ts +82 -0
- package/src/utils/react-hooks.ts +118 -0
- package/src/variable/index.ts +1 -0
- package/src/variable/variable.ts +84 -0
- package/src/window/index.ts +34 -0
- package/src/window/window.service.ts +100 -0
- package/lib/components/progressbar/styles.module.less +0 -31
- package/lib/components/recycle-tree/index.d.ts +0 -2
- package/lib/components/recycle-tree/index.d.ts.map +0 -1
- package/lib/components/recycle-tree/index.js +0 -5
- package/lib/components/recycle-tree/index.js.map +0 -1
- package/lib/components/recycle-tree/recycle-tree.view.d.ts +0 -82
- package/lib/components/recycle-tree/recycle-tree.view.d.ts.map +0 -1
- package/lib/components/recycle-tree/recycle-tree.view.js +0 -188
- package/lib/components/recycle-tree/recycle-tree.view.js.map +0 -1
- package/lib/components/scroll/index.d.ts +0 -68
- package/lib/components/scroll/index.d.ts.map +0 -1
- package/lib/components/scroll/index.js +0 -279
- package/lib/components/scroll/index.js.map +0 -1
- package/lib/components/scroll/scroll.module.less +0 -108
- package/lib/components/scrollbar/index.d.ts +0 -2
- package/lib/components/scrollbar/index.d.ts.map +0 -1
- package/lib/components/scrollbar/index.js +0 -5
- package/lib/components/scrollbar/index.js.map +0 -1
- package/lib/components/scrollbar/scrollbar.less +0 -36
- package/lib/components/scrollbar/scrollbar.view.d.ts +0 -7
- package/lib/components/scrollbar/scrollbar.view.d.ts.map +0 -1
- package/lib/components/scrollbar/scrollbar.view.js +0 -11
- package/lib/components/scrollbar/scrollbar.view.js.map +0 -1
- package/lib/components/tree/index.d.ts +0 -4
- package/lib/components/tree/index.d.ts.map +0 -1
- package/lib/components/tree/index.js +0 -7
- package/lib/components/tree/index.js.map +0 -1
- package/lib/components/tree/tree-node.view.d.ts +0 -26
- package/lib/components/tree/tree-node.view.d.ts.map +0 -1
- package/lib/components/tree/tree-node.view.js +0 -350
- package/lib/components/tree/tree-node.view.js.map +0 -1
- package/lib/components/tree/tree.module.less +0 -296
- package/lib/components/tree/tree.view.d.ts +0 -132
- package/lib/components/tree/tree.view.d.ts.map +0 -1
- package/lib/components/tree/tree.view.js +0 -238
- package/lib/components/tree/tree.view.js.map +0 -1
- package/lib/tree/index.d.ts +0 -4
- package/lib/tree/index.d.ts.map +0 -1
- package/lib/tree/index.js +0 -7
- package/lib/tree/index.js.map +0 -1
- package/lib/tree/tree-expansion.d.ts +0 -16
- package/lib/tree/tree-expansion.d.ts.map +0 -1
- package/lib/tree/tree-expansion.js +0 -20
- package/lib/tree/tree-expansion.js.map +0 -1
- package/lib/tree/tree-selection.d.ts +0 -48
- package/lib/tree/tree-selection.d.ts.map +0 -1
- package/lib/tree/tree-selection.js +0 -64
- package/lib/tree/tree-selection.js.map +0 -1
- package/lib/tree/tree.d.ts +0 -195
- package/lib/tree/tree.d.ts.map +0 -1
- package/lib/tree/tree.js +0 -108
- package/lib/tree/tree.js.map +0 -1
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Scroll = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
6
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
7
|
-
const scroll_module_less_1 = tslib_1.__importDefault(require("./scroll.module.less"));
|
|
8
|
-
class Scroll extends react_1.default.Component {
|
|
9
|
-
constructor() {
|
|
10
|
-
super(...arguments);
|
|
11
|
-
this.position = {
|
|
12
|
-
top: 0,
|
|
13
|
-
left: 0,
|
|
14
|
-
};
|
|
15
|
-
this.dragging = false;
|
|
16
|
-
this.draggingStart = 0;
|
|
17
|
-
this.draggingStartPos = 0;
|
|
18
|
-
this.shouldHideThumb = true;
|
|
19
|
-
this.isAtTop = true;
|
|
20
|
-
this.onMouseMoveHorizontal = (e) => {
|
|
21
|
-
if (!this.dragging) {
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
const move = e.pageX - this.draggingStart;
|
|
25
|
-
this.ref.scrollLeft = this.draggingStartPos + this.calculateXToLeft(move);
|
|
26
|
-
};
|
|
27
|
-
this.onMouseUpHorizontal = (e) => {
|
|
28
|
-
this.dragging = false;
|
|
29
|
-
document.removeEventListener('mousemove', this.onMouseMoveHorizontal);
|
|
30
|
-
document.removeEventListener('mouseup', this.onMouseUpHorizontal);
|
|
31
|
-
if (this.shouldHideThumb) {
|
|
32
|
-
this.hideThumb();
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
this.onMouseMoveVertical = (e) => {
|
|
36
|
-
if (!this.dragging) {
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
const move = e.pageY - this.draggingStart;
|
|
40
|
-
this.ref.scrollTop = this.draggingStartPos + this.calculateYToTop(move);
|
|
41
|
-
};
|
|
42
|
-
this.onMouseUpVertical = (e) => {
|
|
43
|
-
this.dragging = false;
|
|
44
|
-
document.removeEventListener('mousemove', this.onMouseMoveVertical);
|
|
45
|
-
document.removeEventListener('mouseup', this.onMouseUpVertical);
|
|
46
|
-
if (this.shouldHideThumb) {
|
|
47
|
-
this.hideThumb();
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
this.onMousewheel = (e) => {
|
|
51
|
-
// 鼠标滚动滚轮只在有横向滚动条的情况下
|
|
52
|
-
// 页面有缩放的时候,scrollHeight 可能会小于 clientHeight / offsetHeight
|
|
53
|
-
if (this.ref.clientHeight >= this.ref.scrollHeight && e.deltaY !== 0) {
|
|
54
|
-
// scrollLeft 内部有边界判断
|
|
55
|
-
this.ref.scrollLeft += e.deltaY;
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
this.onMouseEnter = () => {
|
|
59
|
-
this.update();
|
|
60
|
-
};
|
|
61
|
-
this.handleWindowResize = () => {
|
|
62
|
-
this.update();
|
|
63
|
-
};
|
|
64
|
-
this.update = (callback) => {
|
|
65
|
-
if (this.requestFrame) {
|
|
66
|
-
window.cancelAnimationFrame(this.requestFrame);
|
|
67
|
-
}
|
|
68
|
-
this.requestFrame = window.requestAnimationFrame(() => {
|
|
69
|
-
this._update();
|
|
70
|
-
if (callback) {
|
|
71
|
-
callback();
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
onScroll(e) {
|
|
77
|
-
this.position = {
|
|
78
|
-
top: this.ref.scrollTop,
|
|
79
|
-
left: this.ref.scrollLeft,
|
|
80
|
-
};
|
|
81
|
-
if (this.props.onScroll) {
|
|
82
|
-
this.props.onScroll(this.position);
|
|
83
|
-
}
|
|
84
|
-
this.update(() => {
|
|
85
|
-
const contentWidth = this.ref.scrollWidth;
|
|
86
|
-
const width = this.ref.offsetWidth;
|
|
87
|
-
const contentHeight = this.ref.scrollHeight;
|
|
88
|
-
const height = this.ref.offsetHeight;
|
|
89
|
-
this.thumbH.style.left = (this.position.left * width) / contentWidth + 'px';
|
|
90
|
-
this.thumbV.style.top = (this.position.top * height) / contentHeight + 'px';
|
|
91
|
-
});
|
|
92
|
-
if (!this.isAtTop && this.ref.scrollTop === 0) {
|
|
93
|
-
this.isAtTop = true;
|
|
94
|
-
this.setCss();
|
|
95
|
-
}
|
|
96
|
-
else if (this.isAtTop && this.ref.scrollTop !== 0) {
|
|
97
|
-
this.isAtTop = false;
|
|
98
|
-
this.setCss();
|
|
99
|
-
}
|
|
100
|
-
if (this.ref.scrollLeft > 0) {
|
|
101
|
-
this.decorationL.style.opacity = String(1);
|
|
102
|
-
this.decorationR.style.opacity = String(1);
|
|
103
|
-
}
|
|
104
|
-
else {
|
|
105
|
-
this.decorationL.style.opacity = String(0);
|
|
106
|
-
}
|
|
107
|
-
if (this.ref.scrollWidth === this.ref.offsetWidth ||
|
|
108
|
-
this.ref.scrollLeft === this.ref.scrollWidth - this.ref.offsetWidth) {
|
|
109
|
-
this.decorationR.style.opacity = String(0);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
scrollTo(position) {
|
|
113
|
-
this.ref.scrollLeft = position.left;
|
|
114
|
-
this.ref.scrollTop = position.top;
|
|
115
|
-
}
|
|
116
|
-
onMouseDownHorizontal(e) {
|
|
117
|
-
this.dragging = true;
|
|
118
|
-
if (e.target === this.trackH) {
|
|
119
|
-
this.onMouseDownOnTrack(e);
|
|
120
|
-
}
|
|
121
|
-
this.draggingStart = e.pageX;
|
|
122
|
-
this.draggingStartPos = this.ref.scrollLeft;
|
|
123
|
-
document.addEventListener('mousemove', this.onMouseMoveHorizontal);
|
|
124
|
-
document.addEventListener('mouseup', this.onMouseUpHorizontal);
|
|
125
|
-
}
|
|
126
|
-
onMouseDownOnTrack(e) {
|
|
127
|
-
const track = e.target;
|
|
128
|
-
const x = e.clientX - track.getBoundingClientRect().left;
|
|
129
|
-
const contentWidth = this.ref.scrollWidth;
|
|
130
|
-
const width = this.ref.offsetWidth;
|
|
131
|
-
const left = (x * contentWidth) / width - 0.5 * width;
|
|
132
|
-
this.scrollTo({
|
|
133
|
-
left,
|
|
134
|
-
top: this.position.top,
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
calculateXToLeft(x) {
|
|
138
|
-
const contentWidth = this.ref.scrollWidth;
|
|
139
|
-
const width = this.ref.offsetWidth;
|
|
140
|
-
return (x * contentWidth) / width;
|
|
141
|
-
}
|
|
142
|
-
onMouseDownVertical(e) {
|
|
143
|
-
this.dragging = true;
|
|
144
|
-
if (e.target === this.trackV) {
|
|
145
|
-
this.onMouseDownOnTrackVertical(e);
|
|
146
|
-
}
|
|
147
|
-
this.draggingStart = e.pageY;
|
|
148
|
-
this.draggingStartPos = this.ref.scrollTop;
|
|
149
|
-
document.addEventListener('mousemove', this.onMouseMoveVertical);
|
|
150
|
-
document.addEventListener('mouseup', this.onMouseUpVertical);
|
|
151
|
-
}
|
|
152
|
-
onMouseDownOnTrackVertical(e) {
|
|
153
|
-
const track = e.target;
|
|
154
|
-
const x = e.clientY - track.getBoundingClientRect().top;
|
|
155
|
-
const contentHeight = this.ref.scrollHeight;
|
|
156
|
-
const height = this.ref.offsetHeight;
|
|
157
|
-
const top = (x * contentHeight) / height - 0.5 * height;
|
|
158
|
-
this.scrollTo({
|
|
159
|
-
left: this.position.left,
|
|
160
|
-
top,
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
calculateYToTop(y) {
|
|
164
|
-
const contentHeight = this.ref.scrollHeight;
|
|
165
|
-
const height = this.ref.offsetHeight;
|
|
166
|
-
return (y * contentHeight) / height;
|
|
167
|
-
}
|
|
168
|
-
componentDidUpdate() {
|
|
169
|
-
this.update();
|
|
170
|
-
if (this.props.delegate) {
|
|
171
|
-
this.props.delegate({
|
|
172
|
-
scrollTo: this.scrollTo.bind(this),
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
componentDidMount() {
|
|
177
|
-
this.update();
|
|
178
|
-
window.addEventListener('resize', this.handleWindowResize);
|
|
179
|
-
if (this.props.delegate) {
|
|
180
|
-
this.props.delegate({
|
|
181
|
-
scrollTo: this.scrollTo.bind(this),
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
if (this.ref) {
|
|
185
|
-
this.ref.addEventListener('mouseenter', this.onMouseEnter);
|
|
186
|
-
this.ref.addEventListener('wheel', this.onMousewheel);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
componentWillUnmount() {
|
|
190
|
-
if (this.ref) {
|
|
191
|
-
this.ref.removeEventListener('mouseenter', this.onMouseEnter);
|
|
192
|
-
this.ref.addEventListener('wheel', this.onMousewheel);
|
|
193
|
-
}
|
|
194
|
-
window.removeEventListener('resize', this.handleWindowResize);
|
|
195
|
-
if (this.requestFrame) {
|
|
196
|
-
window.cancelAnimationFrame(this.requestFrame);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
sizeEqual(size1, size2) {
|
|
200
|
-
return (size1 &&
|
|
201
|
-
size2 &&
|
|
202
|
-
size1.offsetHeight === size2.offsetHeight &&
|
|
203
|
-
size1.scrollHeight === size2.scrollHeight &&
|
|
204
|
-
size1.offsetWidth === size2.offsetWidth &&
|
|
205
|
-
size1.scrollWidth === size2.scrollWidth);
|
|
206
|
-
}
|
|
207
|
-
_update() {
|
|
208
|
-
if (this.ref) {
|
|
209
|
-
if (!this.sizeEqual(this.size, this.ref)) {
|
|
210
|
-
this.size = {
|
|
211
|
-
offsetHeight: this.ref.offsetHeight,
|
|
212
|
-
offsetWidth: this.ref.offsetWidth,
|
|
213
|
-
scrollWidth: this.ref.scrollWidth,
|
|
214
|
-
scrollHeight: this.ref.scrollHeight,
|
|
215
|
-
};
|
|
216
|
-
this.updateScrollBar();
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
updateScrollBar() {
|
|
221
|
-
const contentWidth = this.ref.scrollWidth;
|
|
222
|
-
const width = this.ref.offsetWidth;
|
|
223
|
-
if (width < contentWidth) {
|
|
224
|
-
const thumbHWidth = (width * width) / contentWidth;
|
|
225
|
-
this.thumbH.style.width = thumbHWidth + 'px';
|
|
226
|
-
this.trackH.parentElement.style.display = 'block';
|
|
227
|
-
}
|
|
228
|
-
else {
|
|
229
|
-
this.trackH.parentElement.style.display = 'none';
|
|
230
|
-
}
|
|
231
|
-
const contentHeight = this.ref.scrollHeight;
|
|
232
|
-
const height = this.ref.offsetHeight;
|
|
233
|
-
if (height < contentHeight) {
|
|
234
|
-
this.thumbV.style.height = (height * height) / contentHeight + 'px';
|
|
235
|
-
this.trackV.parentElement.style.display = 'block';
|
|
236
|
-
}
|
|
237
|
-
else {
|
|
238
|
-
this.trackV.parentElement.style.display = 'none';
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
hideThumb() {
|
|
242
|
-
this.shouldHideThumb = true;
|
|
243
|
-
if (!this.dragging) {
|
|
244
|
-
this.setCss();
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
showThumb() {
|
|
248
|
-
this.shouldHideThumb = false;
|
|
249
|
-
this.setCss();
|
|
250
|
-
}
|
|
251
|
-
setCss() {
|
|
252
|
-
this.container.className = (0, classnames_1.default)({
|
|
253
|
-
[scroll_module_less_1.default.scroll]: true,
|
|
254
|
-
[scroll_module_less_1.default['hide-thumb']]: this.shouldHideThumb && !this.dragging,
|
|
255
|
-
});
|
|
256
|
-
const cls = {};
|
|
257
|
-
if (this.props.atTopClassName) {
|
|
258
|
-
cls[this.props.atTopClassName] = this.isAtTop;
|
|
259
|
-
}
|
|
260
|
-
if (this.props.className) {
|
|
261
|
-
cls[this.props.className] = true;
|
|
262
|
-
}
|
|
263
|
-
this.ref.className = (0, classnames_1.default)(cls);
|
|
264
|
-
}
|
|
265
|
-
render() {
|
|
266
|
-
return (react_1.default.createElement("div", { className: (0, classnames_1.default)(scroll_module_less_1.default.scroll, scroll_module_less_1.default['hide-thumb']), ref: (e) => e && (this.container = e), onMouseMove: () => this.showThumb(), onMouseLeave: () => this.hideThumb(), style: this.props.containerStyle },
|
|
267
|
-
react_1.default.createElement("div", { style: this.props.style, className: (0, classnames_1.default)(this.props.className), onScroll: this.onScroll.bind(this), ref: (e) => e && (this.ref = e), onMouseDown: () => this.update(), onMouseUp: () => this.update() }, this.props.children),
|
|
268
|
-
react_1.default.createElement("div", { className: scroll_module_less_1.default['scrollbar-decoration-vertical-l'], ref: (e) => e && (this.decorationL = e) }),
|
|
269
|
-
react_1.default.createElement("div", { className: scroll_module_less_1.default['scrollbar-decoration-vertical-r'], ref: (e) => e && (this.decorationR = e) }),
|
|
270
|
-
react_1.default.createElement("div", { className: scroll_module_less_1.default['scroll-horizontal'] },
|
|
271
|
-
react_1.default.createElement("div", { className: scroll_module_less_1.default['track-horizontal'], ref: (e) => e && (this.trackH = e), onMouseDown: this.onMouseDownHorizontal.bind(this) }),
|
|
272
|
-
react_1.default.createElement("div", { className: 'thumb-horizontal', onMouseDown: this.onMouseDownHorizontal.bind(this), ref: (e) => e && (this.thumbH = e) })),
|
|
273
|
-
react_1.default.createElement("div", { className: scroll_module_less_1.default['scroll-vertical'] },
|
|
274
|
-
react_1.default.createElement("div", { className: scroll_module_less_1.default['track-vertical'], ref: (e) => e && (this.trackV = e), onMouseDown: this.onMouseDownVertical.bind(this) }),
|
|
275
|
-
react_1.default.createElement("div", { className: 'thumb-vertical', onMouseDown: this.onMouseDownVertical.bind(this), ref: (e) => e && (this.thumbV = e) }))));
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
exports.Scroll = Scroll;
|
|
279
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/scroll/index.tsx"],"names":[],"mappings":";;;;AAAA,oEAAoC;AACpC,0DAA0B;AAG1B,sFAA0C;AA2B1C,MAAa,MAAO,SAAQ,eAAK,CAAC,SAA+B;IAAjE;;QAkBU,aAAQ,GAAmB;YACjC,GAAG,EAAE,CAAC;YACN,IAAI,EAAE,CAAC;SACR,CAAC;QAEM,aAAQ,GAAG,KAAK,CAAC;QAEjB,kBAAa,GAAG,CAAC,CAAC;QAElB,qBAAgB,GAAG,CAAC,CAAC;QAIrB,oBAAe,GAAG,IAAI,CAAC;QAEvB,YAAO,GAAG,IAAI,CAAC;QAyDvB,0BAAqB,GAAG,CAAC,CAAC,EAAE,EAAE;YAC5B,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;gBAClB,OAAO;aACR;YACD,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC;YAC1C,IAAI,CAAC,GAAG,CAAC,UAAU,GAAG,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC5E,CAAC,CAAC;QAEF,wBAAmB,GAAG,CAAC,CAAC,EAAE,EAAE;YAC1B,IAAI,CAAC,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
|
-
right: 0;
|
|
6
|
-
top: 0;
|
|
7
|
-
height: 100%;
|
|
8
|
-
width: 10px;
|
|
9
|
-
}
|
|
10
|
-
.scroll-vertical {
|
|
11
|
-
position: absolute;
|
|
12
|
-
right: 0;
|
|
13
|
-
top: 0;
|
|
14
|
-
height: 100%;
|
|
15
|
-
width: 10px;
|
|
16
|
-
z-index: 2;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.track-horizontal {
|
|
20
|
-
position: absolute;
|
|
21
|
-
bottom: 0;
|
|
22
|
-
left: 0;
|
|
23
|
-
width: 100%;
|
|
24
|
-
height: 5px;
|
|
25
|
-
}
|
|
26
|
-
.scroll-horizontal {
|
|
27
|
-
position: absolute;
|
|
28
|
-
bottom: 0;
|
|
29
|
-
left: 0;
|
|
30
|
-
width: 100%;
|
|
31
|
-
height: 5px;
|
|
32
|
-
z-index: 2;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
:global(.thumb-vertical) {
|
|
36
|
-
position: absolute;
|
|
37
|
-
width: 5px;
|
|
38
|
-
opacity: 0.8;
|
|
39
|
-
top: 0;
|
|
40
|
-
right: 0;
|
|
41
|
-
transition: opacity 200ms ease-out;
|
|
42
|
-
background: var(--scrollbarSlider-background);
|
|
43
|
-
box-shadow: 1px 0 0 var(--scrollbar-shadow);
|
|
44
|
-
|
|
45
|
-
&:hover {
|
|
46
|
-
background: var(--scrollbarSlider-hoverBackground);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
:global(.thumb-horizontal) {
|
|
51
|
-
position: absolute;
|
|
52
|
-
height: 5px;
|
|
53
|
-
left: 0;
|
|
54
|
-
bottom: 0;
|
|
55
|
-
opacity: 0.8;
|
|
56
|
-
transition: opacity 200ms ease-out 200ms;
|
|
57
|
-
background: var(--scrollbarSlider-background);
|
|
58
|
-
box-shadow: 1px 0 0 var(--scrollbar-shadow);
|
|
59
|
-
|
|
60
|
-
&:hover {
|
|
61
|
-
background: var(--scrollbarSlider-hoverBackground);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.scroll {
|
|
66
|
-
position: relative;
|
|
67
|
-
height: 100%;
|
|
68
|
-
> *:first-child::-webkit-scrollbar {
|
|
69
|
-
display: none !important;
|
|
70
|
-
background: rgb(50, 50, 50);
|
|
71
|
-
}
|
|
72
|
-
> *:first-child {
|
|
73
|
-
overflow: auto;
|
|
74
|
-
height: 100%;
|
|
75
|
-
width: 100%;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.scrollbar-decoration-vertical-l,
|
|
79
|
-
.scrollbar-decoration-vertical-r {
|
|
80
|
-
position: absolute;
|
|
81
|
-
width: 6px;
|
|
82
|
-
height: 100%;
|
|
83
|
-
z-index: 999;
|
|
84
|
-
top: 0px;
|
|
85
|
-
opacity: 0;
|
|
86
|
-
}
|
|
87
|
-
// rgba(106, 115, 125, 0.2) 0 6px 6px -6px inset
|
|
88
|
-
.scrollbar-decoration-vertical-l {
|
|
89
|
-
left: 0px;
|
|
90
|
-
border-left: 1px solid var(--kt-panelTab-border);
|
|
91
|
-
box-shadow: 6px 0 4px -4px rgba(106, 115, 125, 0.2) inset;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.scrollbar-decoration-vertical-r {
|
|
95
|
-
right: 0px;
|
|
96
|
-
border-right: 1px solid var(--kt-panelTab-border);
|
|
97
|
-
box-shadow: -6px 0 4px -4px rgba(106, 115, 125, 0.2) inset;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.hide-thumb {
|
|
102
|
-
:global(.thumb-horizontal) {
|
|
103
|
-
opacity: 0 !important;
|
|
104
|
-
}
|
|
105
|
-
:global(.thumb-vertical) {
|
|
106
|
-
opacity: 0 !important;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/scrollbar/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/scrollbar/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
@import '../../style/variable.less';
|
|
2
|
-
@import '~react-perfect-scrollbar/dist/css/styles.css';
|
|
3
|
-
|
|
4
|
-
.ps__rail-x {
|
|
5
|
-
background-color: transparent !important;
|
|
6
|
-
z-index: 20;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.ps__rail-y {
|
|
10
|
-
background-color: transparent !important;
|
|
11
|
-
z-index: 20;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.ps__rail-x:hover > .ps__thumb-x,
|
|
15
|
-
.ps__rail-x:focus > .ps__thumb-x {
|
|
16
|
-
background: var(--scrollbarSlider-hoverBackground);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.ps__rail-x.ps--clicking .ps__thumb-x {
|
|
20
|
-
background: var(--scrollbarSlider-activeBackground);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.ps__thumb-y {
|
|
24
|
-
width: 10px;
|
|
25
|
-
border-radius: 0;
|
|
26
|
-
right: 0;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.ps__rail-y {
|
|
30
|
-
&:hover {
|
|
31
|
-
& > .ps__thumb-y {
|
|
32
|
-
width: 10px;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
width: 10px;
|
|
36
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scrollbar.view.d.ts","sourceRoot":"","sources":["../../../src/components/scrollbar/scrollbar.view.ts"],"names":[],"mappings":"AACA,OAAO,kBAAkB,CAAC;AAE1B;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,GAAsB,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PerfectScrollbar = void 0;
|
|
4
|
-
const perfectScrollbar = require("react-perfect-scrollbar");
|
|
5
|
-
require("./scrollbar.less");
|
|
6
|
-
/**
|
|
7
|
-
* 绕开Tslint类型检查的不得已操作
|
|
8
|
-
* 原因:react-perfect-scrollbar 模块引入存在问题
|
|
9
|
-
*/
|
|
10
|
-
exports.PerfectScrollbar = perfectScrollbar;
|
|
11
|
-
//# sourceMappingURL=scrollbar.view.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scrollbar.view.js","sourceRoot":"","sources":["../../../src/components/scrollbar/scrollbar.view.ts"],"names":[],"mappings":";;;AAAA,4DAA6D;AAC7D,4BAA0B;AAE1B;;;GAGG;AACU,QAAA,gBAAgB,GAAQ,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/tree/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("../../tree"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./tree.view"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./tree-node.view"), exports);
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/tree/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B;AAC3B,sDAA4B;AAC5B,2DAAiC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TreeViewAction } from '../../tree';
|
|
3
|
-
import { TreeNode } from './';
|
|
4
|
-
export declare type CommandActuator<T = any> = (commandId: string, params: T) => void;
|
|
5
|
-
export interface TreeNodeProps extends React.PropsWithChildren<any> {
|
|
6
|
-
node: TreeNode;
|
|
7
|
-
leftPadding?: number;
|
|
8
|
-
defaultLeftPadding?: number;
|
|
9
|
-
onSelect?: any;
|
|
10
|
-
onTwistieClick?: any;
|
|
11
|
-
onContextMenu?: any;
|
|
12
|
-
onDragStart?: any;
|
|
13
|
-
onDragEnter?: any;
|
|
14
|
-
onDragOver?: any;
|
|
15
|
-
onDragLeave?: any;
|
|
16
|
-
onDrag?: any;
|
|
17
|
-
validate?: any;
|
|
18
|
-
draggable?: boolean;
|
|
19
|
-
isEdited?: boolean;
|
|
20
|
-
isComplex?: boolean;
|
|
21
|
-
actions?: TreeViewAction[];
|
|
22
|
-
replace?: string;
|
|
23
|
-
commandActuator?: CommandActuator;
|
|
24
|
-
}
|
|
25
|
-
export declare const TreeContainerNode: ({ node, leftPadding, defaultLeftPadding, onSelect, onTwistieClick, onContextMenu, onDragStart, onDragEnter, onDragOver, onDragLeave, onDragEnd, onDrag, onDrop, onChange, draggable, foldable, isEdited, isComplex, actions, alwaysShowActions, commandActuator, replace, itemLineHeight, validate, }: TreeNodeProps) => JSX.Element;
|
|
26
|
-
//# sourceMappingURL=tree-node.view.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tree-node.view.d.ts","sourceRoot":"","sources":["../../../src/components/tree/tree-node.view.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EAAE,cAAc,EAA6B,MAAM,YAAY,CAAC;AAKvE,OAAO,EAAE,QAAQ,EAAuF,MAAM,IAAI,CAAC;AAEnH,oBAAY,eAAe,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;AAE9E,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,iBAAiB,CAAC,GAAG,CAAC;IACjE,IAAI,EAAE,QAAQ,CAAC;IAEf,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,QAAQ,CAAC,EAAE,GAAG,CAAC;IAEf,cAAc,CAAC,EAAE,GAAG,CAAC;IAErB,aAAa,CAAC,EAAE,GAAG,CAAC;IAEpB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,MAAM,CAAC,EAAE,GAAG,CAAC;IAEb,QAAQ,CAAC,EAAE,GAAG,CAAC;IAEf,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAE3B,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC;AA4ED,eAAO,MAAM,iBAAiB,0SAyB3B,aAAa,gBA0Yf,CAAC"}
|