@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
package/lib/tree/tree.d.ts
DELETED
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface TreeNodeHighlightRange {
|
|
3
|
-
start: number;
|
|
4
|
-
end: number;
|
|
5
|
-
}
|
|
6
|
-
export declare type themeColorId = string;
|
|
7
|
-
export interface IFileDecoration {
|
|
8
|
-
badge: string;
|
|
9
|
-
tooltip: string;
|
|
10
|
-
color: themeColorId;
|
|
11
|
-
weight?: number;
|
|
12
|
-
}
|
|
13
|
-
export interface FileDecorationsProvider {
|
|
14
|
-
getDecoration: (uri: any, hasChildren?: boolean) => IFileDecoration;
|
|
15
|
-
}
|
|
16
|
-
export interface ThemeProvider {
|
|
17
|
-
getColor: ({ id: themeColorId }: {
|
|
18
|
-
id: any;
|
|
19
|
-
}) => string;
|
|
20
|
-
}
|
|
21
|
-
export interface TreeNode<T extends TreeNode<any> = TreeNode<any>> {
|
|
22
|
-
/**
|
|
23
|
-
* 节点唯一ID
|
|
24
|
-
*/
|
|
25
|
-
readonly id: number | string;
|
|
26
|
-
/**
|
|
27
|
-
* 可读的节点名称
|
|
28
|
-
* 可能为ReactComponent
|
|
29
|
-
*/
|
|
30
|
-
readonly name: string | React.JSXElementConstructor<any>;
|
|
31
|
-
/**
|
|
32
|
-
* 节点头部,会影响节点计算逻辑
|
|
33
|
-
* 不适用于RecycleTree面板
|
|
34
|
-
*/
|
|
35
|
-
readonly title?: string;
|
|
36
|
-
/**
|
|
37
|
-
* 顺序
|
|
38
|
-
*/
|
|
39
|
-
readonly order?: number;
|
|
40
|
-
/**
|
|
41
|
-
* 节点深度
|
|
42
|
-
*/
|
|
43
|
-
readonly depth?: number;
|
|
44
|
-
/**
|
|
45
|
-
* 图标的classname
|
|
46
|
-
*/
|
|
47
|
-
readonly icon?: string;
|
|
48
|
-
/**
|
|
49
|
-
* 图标的样式
|
|
50
|
-
*/
|
|
51
|
-
readonly iconStyle?: React.CSSProperties;
|
|
52
|
-
/**
|
|
53
|
-
* 节点描述
|
|
54
|
-
* 可能为ReactComponent
|
|
55
|
-
*/
|
|
56
|
-
readonly description?: string | React.JSXElementConstructor<any>;
|
|
57
|
-
/**
|
|
58
|
-
* 当该值为false时节点不渲染,否则渲染
|
|
59
|
-
*/
|
|
60
|
-
readonly visible?: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* 节点的父节点,当节点为根节点时为undefined
|
|
63
|
-
*/
|
|
64
|
-
readonly parent: Readonly<T> | undefined;
|
|
65
|
-
/**
|
|
66
|
-
* 节点尾部标志,如M,C等
|
|
67
|
-
*/
|
|
68
|
-
readonly badge?: number | string;
|
|
69
|
-
/**
|
|
70
|
-
* badge限制
|
|
71
|
-
* 当badge为number时
|
|
72
|
-
* badgeLimit = 99,badge最多显示为99+
|
|
73
|
-
* 当badge为string时
|
|
74
|
-
* badgeLimit = 2,badge最多显示不超过2个字符
|
|
75
|
-
*/
|
|
76
|
-
readonly badgeLimit?: number;
|
|
77
|
-
/**
|
|
78
|
-
* 节点字体颜色
|
|
79
|
-
*/
|
|
80
|
-
readonly color?: string;
|
|
81
|
-
/**
|
|
82
|
-
* 节点背景颜色
|
|
83
|
-
*/
|
|
84
|
-
readonly background?: string;
|
|
85
|
-
/**
|
|
86
|
-
* 节点字体颜色样式
|
|
87
|
-
*/
|
|
88
|
-
readonly style?: React.CSSProperties;
|
|
89
|
-
/**
|
|
90
|
-
* 节点尾部标志样式,如M,C等
|
|
91
|
-
*/
|
|
92
|
-
readonly badgeStyle?: React.CSSProperties;
|
|
93
|
-
/**
|
|
94
|
-
* 文本提示
|
|
95
|
-
*/
|
|
96
|
-
readonly tooltip?: string;
|
|
97
|
-
/**
|
|
98
|
-
* 节点上的 inline actions, 可以传自定义 react 组件
|
|
99
|
-
*/
|
|
100
|
-
readonly actions?: TreeViewAction[];
|
|
101
|
-
/**
|
|
102
|
-
* 节点上 inline actions 是否一直显示,默认为 hover 出现
|
|
103
|
-
*/
|
|
104
|
-
readonly alwaysShowActions?: boolean;
|
|
105
|
-
/**
|
|
106
|
-
* 高亮区域
|
|
107
|
-
*/
|
|
108
|
-
readonly highLightRanges?: {
|
|
109
|
-
name?: TreeNodeHighlightRange[];
|
|
110
|
-
description?: TreeNodeHighlightRange[];
|
|
111
|
-
};
|
|
112
|
-
/**
|
|
113
|
-
* 高亮区域替换文本
|
|
114
|
-
*/
|
|
115
|
-
readonly replace?: string;
|
|
116
|
-
/**
|
|
117
|
-
* 名称显示后部部分补充文本
|
|
118
|
-
*/
|
|
119
|
-
readonly afterLabel?: string;
|
|
120
|
-
/**
|
|
121
|
-
* 名称显示前部部分补充文本
|
|
122
|
-
*/
|
|
123
|
-
readonly beforeLabel?: string;
|
|
124
|
-
/**
|
|
125
|
-
* 名称显示样式
|
|
126
|
-
*/
|
|
127
|
-
readonly labelClass?: string;
|
|
128
|
-
/**
|
|
129
|
-
* 描述信息样式
|
|
130
|
-
*/
|
|
131
|
-
readonly descriptionClass?: string;
|
|
132
|
-
/**
|
|
133
|
-
* 节点头部的图标样式,如,dirty状态文件的小圆点
|
|
134
|
-
*/
|
|
135
|
-
readonly headIconClass?: string;
|
|
136
|
-
/**
|
|
137
|
-
* 是否为临时文件,如可编辑节点
|
|
138
|
-
*/
|
|
139
|
-
readonly isTemporary?: boolean;
|
|
140
|
-
/**
|
|
141
|
-
* 仅对可折叠节点有效,控制loading样式
|
|
142
|
-
*/
|
|
143
|
-
readonly isLoading?: boolean;
|
|
144
|
-
[key: string]: any;
|
|
145
|
-
}
|
|
146
|
-
export declare namespace TreeNode {
|
|
147
|
-
function equals(left: TreeNode | undefined, right: TreeNode | undefined): boolean;
|
|
148
|
-
function isVisible(node: TreeNode | undefined): boolean;
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* 拓展树节点.
|
|
152
|
-
*/
|
|
153
|
-
export interface CompositeTreeNode extends TreeNode {
|
|
154
|
-
/**
|
|
155
|
-
* 树的子节点数组.
|
|
156
|
-
*/
|
|
157
|
-
children: ReadonlyArray<TreeNode>;
|
|
158
|
-
}
|
|
159
|
-
export declare namespace CompositeTreeNode {
|
|
160
|
-
function is(node: object | undefined): node is CompositeTreeNode;
|
|
161
|
-
function getFirstChild(parent: CompositeTreeNode): TreeNode | undefined;
|
|
162
|
-
function getLastChild(parent: CompositeTreeNode): TreeNode | undefined;
|
|
163
|
-
function isAncestor(parent: CompositeTreeNode, child: TreeNode | undefined): boolean;
|
|
164
|
-
function indexOf(parent: CompositeTreeNode, node: TreeNode | undefined): number;
|
|
165
|
-
function addChildren(parent: CompositeTreeNode, children: TreeNode[]): CompositeTreeNode;
|
|
166
|
-
function addChild(parent: CompositeTreeNode, child: TreeNode): CompositeTreeNode;
|
|
167
|
-
function removeChild(parent: CompositeTreeNode, child: TreeNode): void;
|
|
168
|
-
function setParent(child: TreeNode, index: number, parent: CompositeTreeNode): void;
|
|
169
|
-
}
|
|
170
|
-
export declare function isTreeViewActionComponent(action: TreeViewAction): action is TreeViewActionComponent;
|
|
171
|
-
export declare type TreeViewAction = TreeViewActionConfig | TreeViewActionComponent;
|
|
172
|
-
export interface TreeViewActionConfig {
|
|
173
|
-
icon: {
|
|
174
|
-
dark?: string;
|
|
175
|
-
light?: string;
|
|
176
|
-
} | string;
|
|
177
|
-
title: string;
|
|
178
|
-
command: string;
|
|
179
|
-
location: TreeViewActionTypes;
|
|
180
|
-
/**
|
|
181
|
-
* paramsKey 支持从 node 直接取指定的 key
|
|
182
|
-
* 同时也支持从 node 变换成一个新的格式
|
|
183
|
-
*/
|
|
184
|
-
paramsKey?: string | ((node: TreeNode) => any);
|
|
185
|
-
}
|
|
186
|
-
export interface TreeViewActionComponent {
|
|
187
|
-
component: React.ReactNode;
|
|
188
|
-
location: TreeViewActionTypes;
|
|
189
|
-
}
|
|
190
|
-
export declare enum TreeViewActionTypes {
|
|
191
|
-
TreeNode_Left = 0,
|
|
192
|
-
TreeNode_Right = 1,
|
|
193
|
-
TreeContainer = 2
|
|
194
|
-
}
|
|
195
|
-
//# sourceMappingURL=tree.d.ts.map
|
package/lib/tree/tree.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["../../src/tree/tree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb;AAED,oBAAY,YAAY,GAAG,MAAM,CAAC;AAElC,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,YAAY,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,uBAAuB;IACtC,aAAa,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,WAAW,CAAC,EAAE,OAAO,KAAK,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EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,GACD,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,mBAAmB,CAAC;IAC9B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,QAAQ,KAAK,GAAG,CAAC,CAAC;CAChD;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,QAAQ,EAAE,mBAAmB,CAAC;CAC/B;AAED,oBAAY,mBAAmB;IAC7B,aAAa,IAAI;IACjB,cAAc,IAAA;IACd,aAAa,IAAA;CACd"}
|
package/lib/tree/tree.js
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TreeViewActionTypes = exports.isTreeViewActionComponent = exports.CompositeTreeNode = exports.TreeNode = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
var TreeNode;
|
|
7
|
-
(function (TreeNode) {
|
|
8
|
-
function equals(left, right) {
|
|
9
|
-
return left === right || (!!left && !!right && left.id === right.id);
|
|
10
|
-
}
|
|
11
|
-
TreeNode.equals = equals;
|
|
12
|
-
function isVisible(node) {
|
|
13
|
-
return !!node && (node.visible === undefined || node.visible);
|
|
14
|
-
}
|
|
15
|
-
TreeNode.isVisible = isVisible;
|
|
16
|
-
})(TreeNode = exports.TreeNode || (exports.TreeNode = {}));
|
|
17
|
-
var CompositeTreeNode;
|
|
18
|
-
(function (CompositeTreeNode) {
|
|
19
|
-
function is(node) {
|
|
20
|
-
return !!node && 'children' in node;
|
|
21
|
-
}
|
|
22
|
-
CompositeTreeNode.is = is;
|
|
23
|
-
function getFirstChild(parent) {
|
|
24
|
-
return parent.children[0];
|
|
25
|
-
}
|
|
26
|
-
CompositeTreeNode.getFirstChild = getFirstChild;
|
|
27
|
-
function getLastChild(parent) {
|
|
28
|
-
return parent.children[parent.children.length - 1];
|
|
29
|
-
}
|
|
30
|
-
CompositeTreeNode.getLastChild = getLastChild;
|
|
31
|
-
function isAncestor(parent, child) {
|
|
32
|
-
if (!child) {
|
|
33
|
-
return false;
|
|
34
|
-
}
|
|
35
|
-
if (TreeNode.equals(parent, child.parent)) {
|
|
36
|
-
return true;
|
|
37
|
-
}
|
|
38
|
-
return isAncestor(parent, child.parent);
|
|
39
|
-
}
|
|
40
|
-
CompositeTreeNode.isAncestor = isAncestor;
|
|
41
|
-
function indexOf(parent, node) {
|
|
42
|
-
if (!node) {
|
|
43
|
-
return -1;
|
|
44
|
-
}
|
|
45
|
-
return parent.children.findIndex((child) => TreeNode.equals(node, child));
|
|
46
|
-
}
|
|
47
|
-
CompositeTreeNode.indexOf = indexOf;
|
|
48
|
-
function addChildren(parent, children) {
|
|
49
|
-
for (const child of children) {
|
|
50
|
-
addChild(parent, child);
|
|
51
|
-
}
|
|
52
|
-
return parent;
|
|
53
|
-
}
|
|
54
|
-
CompositeTreeNode.addChildren = addChildren;
|
|
55
|
-
function addChild(parent, child) {
|
|
56
|
-
const children = parent.children;
|
|
57
|
-
const index = children.findIndex((value) => value.id === child.id);
|
|
58
|
-
if (index !== -1) {
|
|
59
|
-
children.splice(index, 1, child);
|
|
60
|
-
setParent(child, index, parent);
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
children.push(child);
|
|
64
|
-
setParent(child, parent.children.length - 1, parent);
|
|
65
|
-
}
|
|
66
|
-
return parent;
|
|
67
|
-
}
|
|
68
|
-
CompositeTreeNode.addChild = addChild;
|
|
69
|
-
function removeChild(parent, child) {
|
|
70
|
-
const children = parent.children;
|
|
71
|
-
const index = children.findIndex((value) => value.id === child.id);
|
|
72
|
-
if (index === -1) {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
children.splice(index, 1);
|
|
76
|
-
const { previousSibling, nextSibling } = child;
|
|
77
|
-
if (previousSibling) {
|
|
78
|
-
Object.assign(previousSibling, { nextSibling });
|
|
79
|
-
}
|
|
80
|
-
if (nextSibling) {
|
|
81
|
-
Object.assign(nextSibling, { previousSibling });
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
CompositeTreeNode.removeChild = removeChild;
|
|
85
|
-
function setParent(child, index, parent) {
|
|
86
|
-
const previousSibling = parent.children[index - 1];
|
|
87
|
-
const nextSibling = parent.children[index + 1];
|
|
88
|
-
Object.assign(child, { parent, previousSibling, nextSibling });
|
|
89
|
-
if (previousSibling) {
|
|
90
|
-
Object.assign(previousSibling, { nextSibling: child });
|
|
91
|
-
}
|
|
92
|
-
if (nextSibling) {
|
|
93
|
-
Object.assign(nextSibling, { previousSibling: child });
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
CompositeTreeNode.setParent = setParent;
|
|
97
|
-
})(CompositeTreeNode = exports.CompositeTreeNode || (exports.CompositeTreeNode = {}));
|
|
98
|
-
function isTreeViewActionComponent(action) {
|
|
99
|
-
return 'component' in action && react_1.default.isValidElement(action.component);
|
|
100
|
-
}
|
|
101
|
-
exports.isTreeViewActionComponent = isTreeViewActionComponent;
|
|
102
|
-
var TreeViewActionTypes;
|
|
103
|
-
(function (TreeViewActionTypes) {
|
|
104
|
-
TreeViewActionTypes[TreeViewActionTypes["TreeNode_Left"] = 0] = "TreeNode_Left";
|
|
105
|
-
TreeViewActionTypes[TreeViewActionTypes["TreeNode_Right"] = 1] = "TreeNode_Right";
|
|
106
|
-
TreeViewActionTypes[TreeViewActionTypes["TreeContainer"] = 2] = "TreeContainer";
|
|
107
|
-
})(TreeViewActionTypes = exports.TreeViewActionTypes || (exports.TreeViewActionTypes = {}));
|
|
108
|
-
//# sourceMappingURL=tree.js.map
|
package/lib/tree/tree.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"t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