@difizen/libro-common 0.3.3 → 1.0.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/es/app/app.d.ts +7 -0
- package/es/app/app.d.ts.map +1 -0
- package/es/app/app.js +51 -0
- package/es/app/file-tree/file-selection.d.ts +15 -0
- package/es/app/file-tree/file-selection.d.ts.map +1 -0
- package/es/app/file-tree/file-selection.js +38 -0
- package/es/app/file-tree/file-service.d.ts +19 -0
- package/es/app/file-tree/file-service.d.ts.map +1 -0
- package/es/app/file-tree/file-service.js +105 -0
- package/es/app/file-tree/file-tree-component.d.ts +6 -0
- package/es/app/file-tree/file-tree-component.d.ts.map +1 -0
- package/es/app/file-tree/file-tree-component.js +14 -0
- package/es/app/file-tree/file-tree-icon.d.ts +3 -0
- package/es/app/file-tree/file-tree-icon.d.ts.map +1 -0
- package/es/app/file-tree/file-tree-icon.js +14 -0
- package/es/app/file-tree/file-tree-label-provider.d.ts +18 -0
- package/es/app/file-tree/file-tree-label-provider.d.ts.map +1 -0
- package/es/app/file-tree/file-tree-label-provider.js +54 -0
- package/es/app/file-tree/file-tree-model.d.ts +40 -0
- package/es/app/file-tree/file-tree-model.d.ts.map +1 -0
- package/es/app/file-tree/file-tree-model.js +358 -0
- package/es/app/file-tree/file-tree-protocol.d.ts +12 -0
- package/es/app/file-tree/file-tree-protocol.d.ts.map +1 -0
- package/es/app/file-tree/file-tree-protocol.js +33 -0
- package/es/app/file-tree/file-tree-view.d.ts +51 -0
- package/es/app/file-tree/file-tree-view.d.ts.map +1 -0
- package/es/app/file-tree/file-tree-view.js +420 -0
- package/es/app/file-tree/file-tree.d.ts +48 -0
- package/es/app/file-tree/file-tree.d.ts.map +1 -0
- package/es/app/file-tree/file-tree.js +279 -0
- package/es/app/file-tree/files.d.ts +575 -0
- package/es/app/file-tree/files.d.ts.map +1 -0
- package/es/app/file-tree/files.js +478 -0
- package/es/app/file-tree/filesystem-utils.d.ts +14 -0
- package/es/app/file-tree/filesystem-utils.d.ts.map +1 -0
- package/es/app/file-tree/filesystem-utils.js +20 -0
- package/es/app/file-tree/index.d.ts +7 -0
- package/es/app/file-tree/index.d.ts.map +1 -0
- package/es/app/file-tree/index.js +6 -0
- package/es/app/file-tree/module.d.ts +3 -0
- package/es/app/file-tree/module.d.ts.map +1 -0
- package/es/app/file-tree/module.js +18 -0
- package/es/app/file-tree/selection-command-handler.d.ts +25 -0
- package/es/app/file-tree/selection-command-handler.d.ts.map +1 -0
- package/es/app/file-tree/selection-command-handler.js +124 -0
- package/es/app/file-tree/style/file-icon.less +51 -0
- package/es/app/index.d.ts +15 -0
- package/es/app/index.d.ts.map +1 -0
- package/es/app/index.js +22 -0
- package/es/app/label/index.d.ts +4 -0
- package/es/app/label/index.d.ts.map +1 -0
- package/es/app/label/index.js +4 -0
- package/es/app/label/label-provider.d.ts +169 -0
- package/es/app/label/label-provider.d.ts.map +1 -0
- package/es/app/label/label-provider.js +488 -0
- package/es/app/menu/index.d.ts +8 -0
- package/es/app/menu/index.d.ts.map +1 -0
- package/es/app/menu/index.js +21 -0
- package/es/app/menu/menu-bar-render.d.ts +11 -0
- package/es/app/menu/menu-bar-render.d.ts.map +1 -0
- package/es/app/menu/menu-bar-render.js +46 -0
- package/es/app/menu/menu-color-registry.d.ts +6 -0
- package/es/app/menu/menu-color-registry.d.ts.map +1 -0
- package/es/app/menu/menu-color-registry.js +59 -0
- package/es/app/menu/menu-context.d.ts +13 -0
- package/es/app/menu/menu-context.d.ts.map +1 -0
- package/es/app/menu/menu-context.js +7 -0
- package/es/app/menu/menu-item-keeper.d.ts +12 -0
- package/es/app/menu/menu-item-keeper.d.ts.map +1 -0
- package/es/app/menu/menu-item-keeper.js +68 -0
- package/es/app/menu/menu-item-render.d.ts +4 -0
- package/es/app/menu/menu-item-render.d.ts.map +1 -0
- package/es/app/menu/menu-item-render.js +13 -0
- package/es/app/menu/menu-protocol.d.ts +18 -0
- package/es/app/menu/menu-protocol.d.ts.map +1 -0
- package/es/app/menu/menu-protocol.js +5 -0
- package/es/app/menu/menu-render.d.ts +30 -0
- package/es/app/menu/menu-render.d.ts.map +1 -0
- package/es/app/menu/menu-render.js +85 -0
- package/es/app/menu/menu.d.ts +47 -0
- package/es/app/menu/menu.d.ts.map +1 -0
- package/es/app/menu/menu.js +234 -0
- package/es/app/modal/index.d.ts +9 -0
- package/es/app/modal/index.d.ts.map +1 -0
- package/es/app/modal/index.js +19 -0
- package/es/app/modal/modal-contribution.d.ts +7 -0
- package/es/app/modal/modal-contribution.d.ts.map +1 -0
- package/es/app/modal/modal-contribution.js +34 -0
- package/es/app/modal/modal-protocol.d.ts +22 -0
- package/es/app/modal/modal-protocol.d.ts.map +1 -0
- package/es/app/modal/modal-protocol.js +13 -0
- package/es/app/modal/modal-render.d.ts +6 -0
- package/es/app/modal/modal-render.d.ts.map +1 -0
- package/es/app/modal/modal-render.js +44 -0
- package/es/app/modal/modal-service.d.ts +41 -0
- package/es/app/modal/modal-service.d.ts.map +1 -0
- package/es/app/modal/modal-service.js +200 -0
- package/es/app/notification/index.d.ts +5 -0
- package/es/app/notification/index.d.ts.map +1 -0
- package/es/app/notification/index.js +5 -0
- package/es/app/notification/index.less +20 -0
- package/es/app/notification/protocol.d.ts +15 -0
- package/es/app/notification/protocol.d.ts.map +1 -0
- package/es/app/notification/protocol.js +1 -0
- package/es/app/notification/service.d.ts +11 -0
- package/es/app/notification/service.d.ts.map +1 -0
- package/es/app/notification/service.js +87 -0
- package/es/app/style/index.less +181 -0
- package/es/app/style/style-protocol.d.ts +10 -0
- package/es/app/style/style-protocol.d.ts.map +1 -0
- package/es/app/style/style-protocol.js +11 -0
- package/es/app/toolbar/index.d.ts +7 -0
- package/es/app/toolbar/index.d.ts.map +1 -0
- package/es/app/toolbar/index.js +15 -0
- package/es/app/toolbar/index.less +40 -0
- package/es/app/toolbar/toolbar-item-keeper.d.ts +12 -0
- package/es/app/toolbar/toolbar-item-keeper.d.ts.map +1 -0
- package/es/app/toolbar/toolbar-item-keeper.js +49 -0
- package/es/app/toolbar/toolbar-item-render.d.ts +13 -0
- package/es/app/toolbar/toolbar-item-render.d.ts.map +1 -0
- package/es/app/toolbar/toolbar-item-render.js +14 -0
- package/es/app/toolbar/toolbar-protocol.d.ts +9 -0
- package/es/app/toolbar/toolbar-protocol.d.ts.map +1 -0
- package/es/app/toolbar/toolbar-protocol.js +1 -0
- package/es/app/toolbar/toolbar-render.d.ts +29 -0
- package/es/app/toolbar/toolbar-render.d.ts.map +1 -0
- package/es/app/toolbar/toolbar-render.js +93 -0
- package/es/app/toolbar/toolbar-visible-render.d.ts +8 -0
- package/es/app/toolbar/toolbar-visible-render.d.ts.map +1 -0
- package/es/app/toolbar/toolbar-visible-render.js +12 -0
- package/es/app/toolbar/toolbar.d.ts +51 -0
- package/es/app/toolbar/toolbar.d.ts.map +1 -0
- package/es/app/toolbar/toolbar.js +275 -0
- package/es/app/tree/components/index.d.ts +3 -0
- package/es/app/tree/components/index.d.ts.map +1 -0
- package/es/app/tree/components/index.js +20 -0
- package/es/app/tree/components/tree-ident.d.ts +4 -0
- package/es/app/tree/components/tree-ident.d.ts.map +1 -0
- package/es/app/tree/components/tree-ident.js +40 -0
- package/es/app/tree/components/tree-node-caption-affix.d.ts +4 -0
- package/es/app/tree/components/tree-node-caption-affix.d.ts.map +1 -0
- package/es/app/tree/components/tree-node-caption-affix.js +39 -0
- package/es/app/tree/components/tree-node-caption.d.ts +3 -0
- package/es/app/tree/components/tree-node-caption.d.ts.map +1 -0
- package/es/app/tree/components/tree-node-caption.js +103 -0
- package/es/app/tree/components/tree-node-expansion.d.ts +3 -0
- package/es/app/tree/components/tree-node-expansion.d.ts.map +1 -0
- package/es/app/tree/components/tree-node-expansion.js +36 -0
- package/es/app/tree/components/tree-node-icon-decorator.d.ts +4 -0
- package/es/app/tree/components/tree-node-icon-decorator.d.ts.map +1 -0
- package/es/app/tree/components/tree-node-icon-decorator.js +46 -0
- package/es/app/tree/components/tree-node-icon.d.ts +2 -0
- package/es/app/tree/components/tree-node-icon.d.ts.map +1 -0
- package/es/app/tree/components/tree-node-icon.js +3 -0
- package/es/app/tree/components/tree-node-tail-decoration.d.ts +3 -0
- package/es/app/tree/components/tree-node-tail-decoration.d.ts.map +1 -0
- package/es/app/tree/components/tree-node-tail-decoration.js +39 -0
- package/es/app/tree/components/tree-node.d.ts +4 -0
- package/es/app/tree/components/tree-node.d.ts.map +1 -0
- package/es/app/tree/components/tree-node.js +40 -0
- package/es/app/tree/components/tree-switch-icon.d.ts +4 -0
- package/es/app/tree/components/tree-switch-icon.d.ts.map +1 -0
- package/es/app/tree/components/tree-switch-icon.js +14 -0
- package/es/app/tree/index.d.ts +16 -0
- package/es/app/tree/index.d.ts.map +1 -0
- package/es/app/tree/index.js +15 -0
- package/es/app/tree/module.d.ts +5 -0
- package/es/app/tree/module.d.ts.map +1 -0
- package/es/app/tree/module.js +19 -0
- package/es/app/tree/style/index.less +206 -0
- package/es/app/tree/style/tree-decorator.less +65 -0
- package/es/app/tree/tree-decorator.d.ts +141 -0
- package/es/app/tree/tree-decorator.d.ts.map +1 -0
- package/es/app/tree/tree-decorator.js +248 -0
- package/es/app/tree/tree-expansion.d.ts +69 -0
- package/es/app/tree/tree-expansion.d.ts.map +1 -0
- package/es/app/tree/tree-expansion.js +250 -0
- package/es/app/tree/tree-impl.d.ts +40 -0
- package/es/app/tree/tree-impl.d.ts.map +1 -0
- package/es/app/tree/tree-impl.js +292 -0
- package/es/app/tree/tree-iterator.d.ts +94 -0
- package/es/app/tree/tree-iterator.d.ts.map +1 -0
- package/es/app/tree/tree-iterator.js +368 -0
- package/es/app/tree/tree-label-provider.d.ts +9 -0
- package/es/app/tree/tree-label-provider.d.ts.map +1 -0
- package/es/app/tree/tree-label-provider.js +39 -0
- package/es/app/tree/tree-model.d.ts +163 -0
- package/es/app/tree/tree-model.d.ts.map +1 -0
- package/es/app/tree/tree-model.js +616 -0
- package/es/app/tree/tree-navigation.d.ts +11 -0
- package/es/app/tree/tree-navigation.d.ts.map +1 -0
- package/es/app/tree/tree-navigation.js +54 -0
- package/es/app/tree/tree-protocol.d.ts +67 -0
- package/es/app/tree/tree-protocol.d.ts.map +1 -0
- package/es/app/tree/tree-protocol.js +24 -0
- package/es/app/tree/tree-selection-impl.d.ts +45 -0
- package/es/app/tree/tree-selection-impl.d.ts.map +1 -0
- package/es/app/tree/tree-selection-impl.js +192 -0
- package/es/app/tree/tree-selection-state.d.ts +48 -0
- package/es/app/tree/tree-selection-state.d.ts.map +1 -0
- package/es/app/tree/tree-selection-state.js +276 -0
- package/es/app/tree/tree-selection.d.ts +79 -0
- package/es/app/tree/tree-selection.d.ts.map +1 -0
- package/es/app/tree/tree-selection.js +72 -0
- package/es/app/tree/tree-view-decoration.d.ts +286 -0
- package/es/app/tree/tree-view-decoration.d.ts.map +1 -0
- package/es/app/tree/tree-view-decoration.js +127 -0
- package/es/app/tree/tree.d.ts +166 -0
- package/es/app/tree/tree.d.ts.map +1 -0
- package/es/app/tree/tree.js +155 -0
- package/es/app/tree/view/index.d.ts +4 -0
- package/es/app/tree/view/index.d.ts.map +1 -0
- package/es/app/tree/view/index.js +3 -0
- package/es/app/tree/view/index.less +3 -0
- package/es/app/tree/view/tree-view-decorator.d.ts +38 -0
- package/es/app/tree/view/tree-view-decorator.d.ts.map +1 -0
- package/es/app/tree/view/tree-view-decorator.js +128 -0
- package/es/app/tree/view/tree-view-module.d.ts +3 -0
- package/es/app/tree/view/tree-view-module.d.ts.map +1 -0
- package/es/app/tree/view/tree-view-module.js +8 -0
- package/es/app/tree/view/tree-view-selection.d.ts +12 -0
- package/es/app/tree/view/tree-view-selection.d.ts.map +1 -0
- package/es/app/tree/view/tree-view-selection.js +23 -0
- package/es/app/tree/view/tree-view.d.ts +262 -0
- package/es/app/tree/view/tree-view.d.ts.map +1 -0
- package/es/app/tree/view/tree-view.js +943 -0
- package/es/app/typings/index.d.ts +7 -0
- package/es/app/view/box/index.d.ts +19 -0
- package/es/app/view/box/index.d.ts.map +1 -0
- package/es/app/view/box/index.js +76 -0
- package/es/app/view/components/index.d.ts +2 -0
- package/es/app/view/components/index.d.ts.map +1 -0
- package/es/app/view/components/index.js +1 -0
- package/es/app/view/components/loading/index.d.ts +3 -0
- package/es/app/view/components/loading/index.d.ts.map +1 -0
- package/es/app/view/components/loading/index.js +7 -0
- package/es/app/view/components/loading/index.less +10 -0
- package/es/app/view/flex/index.d.ts +16 -0
- package/es/app/view/flex/index.d.ts.map +1 -0
- package/es/app/view/flex/index.js +67 -0
- package/es/app/view/flex/index.less +3 -0
- package/es/app/view/header/header-view.d.ts +12 -0
- package/es/app/view/header/header-view.d.ts.map +1 -0
- package/es/app/view/header/header-view.js +68 -0
- package/es/app/view/header/index.d.ts +4 -0
- package/es/app/view/header/index.d.ts.map +1 -0
- package/es/app/view/header/index.js +23 -0
- package/es/app/view/header/index.less +43 -0
- package/es/app/view/index.d.ts +8 -0
- package/es/app/view/index.d.ts.map +1 -0
- package/es/app/view/index.js +11 -0
- package/es/app/view/tab/card-tab-view.d.ts +13 -0
- package/es/app/view/tab/card-tab-view.d.ts.map +1 -0
- package/es/app/view/tab/card-tab-view.js +49 -0
- package/es/app/view/tab/index.d.ts +4 -0
- package/es/app/view/tab/index.d.ts.map +1 -0
- package/es/app/view/tab/index.js +3 -0
- package/es/app/view/tab/index.less +70 -0
- package/es/app/view/tab/side-tab-view.d.ts +23 -0
- package/es/app/view/tab/side-tab-view.d.ts.map +1 -0
- package/es/app/view/tab/side-tab-view.js +121 -0
- package/es/app/view/tab/tab-menu.d.ts +9 -0
- package/es/app/view/tab/tab-menu.d.ts.map +1 -0
- package/es/app/view/tab/tab-menu.js +34 -0
- package/es/app/view/tab/tab-protocol.d.ts +3 -0
- package/es/app/view/tab/tab-protocol.d.ts.map +1 -0
- package/es/app/view/tab/tab-protocol.js +1 -0
- package/es/app/view/tab/tab-view.d.ts +27 -0
- package/es/app/view/tab/tab-view.d.ts.map +1 -0
- package/es/app/view/tab/tab-view.js +169 -0
- package/es/common/assert.d.ts +5 -0
- package/es/common/assert.d.ts.map +1 -0
- package/es/common/assert.js +13 -0
- package/es/common/cancellation.d.ts +20 -0
- package/es/common/cancellation.d.ts.map +1 -0
- package/es/common/cancellation.js +143 -0
- package/es/common/charCode.d.ts +416 -0
- package/es/common/charCode.d.ts.map +1 -0
- package/es/common/charCode.js +604 -0
- package/es/common/collections.d.ts +44 -0
- package/es/common/collections.d.ts.map +1 -0
- package/es/common/collections.js +220 -0
- package/es/common/deferred.d.ts +10 -0
- package/es/common/deferred.d.ts.map +1 -0
- package/es/common/deferred.js +21 -0
- package/es/common/disposable-collection.d.ts +24 -0
- package/es/common/disposable-collection.d.ts.map +1 -0
- package/es/common/disposable-collection.js +117 -0
- package/es/common/disposable.d.ts +19 -0
- package/es/common/disposable.d.ts.map +1 -0
- package/es/common/disposable.js +23 -0
- package/es/common/event.d.ts +75 -0
- package/es/common/event.d.ts.map +1 -0
- package/es/common/event.js +313 -0
- package/es/common/index.d.ts +27 -0
- package/es/common/index.d.ts.map +1 -0
- package/es/common/index.js +26 -0
- package/es/common/iterator.d.ts +39 -0
- package/es/common/iterator.d.ts.map +1 -0
- package/es/common/iterator.js +389 -0
- package/es/common/linkedList.d.ts +16 -0
- package/es/common/linkedList.d.ts.map +1 -0
- package/es/common/linkedList.js +159 -0
- package/es/common/objects.d.ts +36 -0
- package/es/common/objects.d.ts.map +1 -0
- package/es/common/objects.js +232 -0
- package/es/common/observable-disposable.d.ts +12 -0
- package/es/common/observable-disposable.d.ts.map +1 -0
- package/es/common/observable-disposable.js +1 -0
- package/es/common/path.d.ts +59 -0
- package/es/common/path.d.ts.map +1 -0
- package/es/common/path.js +258 -0
- package/es/common/platform.d.ts +72 -0
- package/es/common/platform.d.ts.map +1 -0
- package/es/common/platform.js +213 -0
- package/es/common/priority.d.ts +23 -0
- package/es/common/priority.d.ts.map +1 -0
- package/es/common/priority.js +97 -0
- package/es/common/promise-util.d.ts +8 -0
- package/es/common/promise-util.d.ts.map +1 -0
- package/es/common/promise-util.js +63 -0
- package/es/common/stopwatch.d.ts +11 -0
- package/es/common/stopwatch.d.ts.map +1 -0
- package/es/common/stopwatch.js +47 -0
- package/es/common/strings.d.ts +102 -0
- package/es/common/strings.d.ts.map +1 -0
- package/es/common/strings.js +433 -0
- package/es/common/types.d.ts +16 -0
- package/es/common/types.d.ts.map +1 -0
- package/es/common/types.js +13 -0
- package/es/common/uint.d.ts +32 -0
- package/es/common/uint.d.ts.map +1 -0
- package/es/common/uint.js +56 -0
- package/es/common/uri.d.ts +56 -0
- package/es/common/uri.d.ts.map +1 -0
- package/es/common/uri.js +244 -0
- package/es/common/utils.d.ts +4 -0
- package/es/common/utils.d.ts.map +1 -0
- package/es/common/utils.js +26 -0
- package/es/common/valueTypes.d.ts +102 -0
- package/es/common/valueTypes.d.ts.map +1 -0
- package/es/common/valueTypes.js +270 -0
- package/es/common/vscode-uri/char-code.d.ts +416 -0
- package/es/common/vscode-uri/char-code.d.ts.map +1 -0
- package/es/common/vscode-uri/char-code.js +608 -0
- package/es/common/vscode-uri/index.d.ts +6 -0
- package/es/common/vscode-uri/index.d.ts.map +1 -0
- package/es/common/vscode-uri/index.js +8 -0
- package/es/common/vscode-uri/platform.d.ts +2 -0
- package/es/common/vscode-uri/platform.d.ts.map +1 -0
- package/es/common/vscode-uri/platform.js +17 -0
- package/es/common/vscode-uri/uri.d.ts +155 -0
- package/es/common/vscode-uri/uri.d.ts.map +1 -0
- package/es/common/vscode-uri/uri.js +637 -0
- package/es/common/vscode-uri/utils.d.ts +59 -0
- package/es/common/vscode-uri/utils.d.ts.map +1 -0
- package/es/common/vscode-uri/utils.js +61 -0
- package/es/common/wait-until-event.d.ts +17 -0
- package/es/common/wait-until-event.d.ts.map +1 -0
- package/es/common/wait-until-event.js +65 -0
- package/es/core/application/application-protocol.d.ts +19 -0
- package/es/core/application/application-protocol.d.ts.map +1 -0
- package/es/core/application/application-protocol.js +4 -0
- package/es/core/application/application-state.d.ts +24 -0
- package/es/core/application/application-state.d.ts.map +1 -0
- package/es/core/application/application-state.js +87 -0
- package/es/core/application/application.d.ts +86 -0
- package/es/core/application/application.d.ts.map +1 -0
- package/es/core/application/application.js +554 -0
- package/es/core/application/default-window-service.d.ts +27 -0
- package/es/core/application/default-window-service.d.ts.map +1 -0
- package/es/core/application/default-window-service.js +83 -0
- package/es/core/application/index.d.ts +5 -0
- package/es/core/application/index.d.ts.map +1 -0
- package/es/core/application/index.js +7 -0
- package/es/core/application/mock-window-service.d.ts +8 -0
- package/es/core/application/mock-window-service.d.ts.map +1 -0
- package/es/core/application/mock-window-service.js +31 -0
- package/es/core/browser.d.ts +21 -0
- package/es/core/browser.d.ts.map +1 -0
- package/es/core/browser.js +118 -0
- package/es/core/command/command-protocol.d.ts +124 -0
- package/es/core/command/command-protocol.d.ts.map +1 -0
- package/es/core/command/command-protocol.js +44 -0
- package/es/core/command/command-registry.d.ts +144 -0
- package/es/core/command/command-registry.d.ts.map +1 -0
- package/es/core/command/command-registry.js +595 -0
- package/es/core/command/index.d.ts +5 -0
- package/es/core/command/index.d.ts.map +1 -0
- package/es/core/command/index.js +5 -0
- package/es/core/common/debug.d.ts +5 -0
- package/es/core/common/debug.d.ts.map +1 -0
- package/es/core/common/debug.js +3 -0
- package/es/core/common/index.d.ts +6 -0
- package/es/core/common/index.d.ts.map +1 -0
- package/es/core/common/index.js +17 -0
- package/es/core/common/storage-protocol.d.ts +21 -0
- package/es/core/common/storage-protocol.d.ts.map +1 -0
- package/es/core/common/storage-protocol.js +5 -0
- package/es/core/common/storage-service.d.ts +23 -0
- package/es/core/common/storage-service.d.ts.map +1 -0
- package/es/core/common/storage-service.js +91 -0
- package/es/core/components/application.d.ts +16 -0
- package/es/core/components/application.d.ts.map +1 -0
- package/es/core/components/application.js +159 -0
- package/es/core/components/context.d.ts +19 -0
- package/es/core/components/context.d.ts.map +1 -0
- package/es/core/components/context.js +101 -0
- package/es/core/components/hooks.d.ts +4 -0
- package/es/core/components/hooks.d.ts.map +1 -0
- package/es/core/components/hooks.js +14 -0
- package/es/core/components/index.d.ts +7 -0
- package/es/core/components/index.d.ts.map +1 -0
- package/es/core/components/index.js +8 -0
- package/es/core/components/index.less +28 -0
- package/es/core/components/root-view-render.d.ts +5 -0
- package/es/core/components/root-view-render.d.ts.map +1 -0
- package/es/core/components/root-view-render.js +14 -0
- package/es/core/configuration/configuration-cache.d.ts +15 -0
- package/es/core/configuration/configuration-cache.d.ts.map +1 -0
- package/es/core/configuration/configuration-cache.js +67 -0
- package/es/core/configuration/configuration-protocol.d.ts +46 -0
- package/es/core/configuration/configuration-protocol.d.ts.map +1 -0
- package/es/core/configuration/configuration-protocol.js +1 -0
- package/es/core/configuration/configuration-provider.d.ts +46 -0
- package/es/core/configuration/configuration-provider.d.ts.map +1 -0
- package/es/core/configuration/configuration-provider.js +95 -0
- package/es/core/configuration/configuration-registry.d.ts +53 -0
- package/es/core/configuration/configuration-registry.d.ts.map +1 -0
- package/es/core/configuration/configuration-registry.js +360 -0
- package/es/core/configuration/configuration-render-registry.d.ts +35 -0
- package/es/core/configuration/configuration-render-registry.d.ts.map +1 -0
- package/es/core/configuration/configuration-render-registry.js +118 -0
- package/es/core/configuration/configuration-service.d.ts +46 -0
- package/es/core/configuration/configuration-service.d.ts.map +1 -0
- package/es/core/configuration/configuration-service.js +411 -0
- package/es/core/configuration/configuration-storage.d.ts +19 -0
- package/es/core/configuration/configuration-storage.d.ts.map +1 -0
- package/es/core/configuration/configuration-storage.js +15 -0
- package/es/core/configuration/hooks.d.ts +3 -0
- package/es/core/configuration/hooks.d.ts.map +1 -0
- package/es/core/configuration/hooks.js +60 -0
- package/es/core/configuration/index.d.ts +11 -0
- package/es/core/configuration/index.d.ts.map +1 -0
- package/es/core/configuration/index.js +10 -0
- package/es/core/configuration/module.d.ts +3 -0
- package/es/core/configuration/module.d.ts.map +1 -0
- package/es/core/configuration/module.js +8 -0
- package/es/core/configuration/typings.d.ts +1 -0
- package/es/core/configuration/validation.d.ts +12 -0
- package/es/core/configuration/validation.d.ts.map +1 -0
- package/es/core/configuration/validation.js +45 -0
- package/es/core/context/data-context-manager.d.ts +16 -0
- package/es/core/context/data-context-manager.d.ts.map +1 -0
- package/es/core/context/data-context-manager.js +80 -0
- package/es/core/context/data-context-protocol.d.ts +16 -0
- package/es/core/context/data-context-protocol.d.ts.map +1 -0
- package/es/core/context/data-context-protocol.js +10 -0
- package/es/core/context/data-context.d.ts +7 -0
- package/es/core/context/data-context.d.ts.map +1 -0
- package/es/core/context/data-context.js +32 -0
- package/es/core/context/index.d.ts +6 -0
- package/es/core/context/index.d.ts.map +1 -0
- package/es/core/context/index.js +12 -0
- package/es/core/index.d.ts +32 -0
- package/es/core/index.d.ts.map +1 -0
- package/es/core/index.js +42 -0
- package/es/core/keybinding/context-key-service.d.ts +22 -0
- package/es/core/keybinding/context-key-service.d.ts.map +1 -0
- package/es/core/keybinding/context-key-service.js +79 -0
- package/es/core/keybinding/index.d.ts +6 -0
- package/es/core/keybinding/index.d.ts.map +1 -0
- package/es/core/keybinding/index.js +5 -0
- package/es/core/keybinding/keybinding-proocol.d.ts +14 -0
- package/es/core/keybinding/keybinding-proocol.d.ts.map +1 -0
- package/es/core/keybinding/keybinding-proocol.js +5 -0
- package/es/core/keybinding/keybinding.d.ts +333 -0
- package/es/core/keybinding/keybinding.d.ts.map +1 -0
- package/es/core/keybinding/keybinding.js +912 -0
- package/es/core/keybinding/module.d.ts +3 -0
- package/es/core/keybinding/module.d.ts.map +1 -0
- package/es/core/keybinding/module.js +12 -0
- package/es/core/keybinding/vs/configuration/configuration.d.ts +129 -0
- package/es/core/keybinding/vs/configuration/configuration.d.ts.map +1 -0
- package/es/core/keybinding/vs/configuration/configuration.js +328 -0
- package/es/core/keybinding/vs/configuration/configurationModels.d.ts +138 -0
- package/es/core/keybinding/vs/configuration/configurationModels.d.ts.map +1 -0
- package/es/core/keybinding/vs/configuration/configurationModels.js +974 -0
- package/es/core/keybinding/vs/configuration/configurationRegistry.d.ts +145 -0
- package/es/core/keybinding/vs/configuration/configurationRegistry.d.ts.map +1 -0
- package/es/core/keybinding/vs/configuration/configurationRegistry.js +500 -0
- package/es/core/keybinding/vs/configuration/configurationService.d.ts +36 -0
- package/es/core/keybinding/vs/configuration/configurationService.d.ts.map +1 -0
- package/es/core/keybinding/vs/configuration/configurationService.js +161 -0
- package/es/core/keybinding/vs/configuration/json.d.ts +216 -0
- package/es/core/keybinding/vs/configuration/json.d.ts.map +1 -0
- package/es/core/keybinding/vs/configuration/json.js +1303 -0
- package/es/core/keybinding/vs/contextKeyService.d.ts +73 -0
- package/es/core/keybinding/vs/contextKeyService.d.ts.map +1 -0
- package/es/core/keybinding/vs/contextKeyService.js +755 -0
- package/es/core/keybinding/vs/contextkey.d.ts +338 -0
- package/es/core/keybinding/vs/contextkey.d.ts.map +1 -0
- package/es/core/keybinding/vs/contextkey.js +1551 -0
- package/es/core/keybinding/vs/contextkeys.d.ts +10 -0
- package/es/core/keybinding/vs/contextkeys.d.ts.map +1 -0
- package/es/core/keybinding/vs/contextkeys.js +16 -0
- package/es/core/keybinding/vs/jsonContributionRegistry.d.ts +25 -0
- package/es/core/keybinding/vs/jsonContributionRegistry.d.ts.map +1 -0
- package/es/core/keybinding/vs/jsonContributionRegistry.js +52 -0
- package/es/core/keybinding/vs/jsonSchema.d.ts +65 -0
- package/es/core/keybinding/vs/jsonSchema.d.ts.map +1 -0
- package/es/core/keybinding/vs/jsonSchema.js +0 -0
- package/es/core/keybinding/vs/platform.d.ts +21 -0
- package/es/core/keybinding/vs/platform.d.ts.map +1 -0
- package/es/core/keybinding/vs/platform.js +39 -0
- package/es/core/keyboard/browser-keyboard-layout-provider.d.ts +101 -0
- package/es/core/keyboard/browser-keyboard-layout-provider.d.ts.map +1 -0
- package/es/core/keyboard/browser-keyboard-layout-provider.js +642 -0
- package/es/core/keyboard/index.d.ts +5 -0
- package/es/core/keyboard/index.d.ts.map +1 -0
- package/es/core/keyboard/index.js +4 -0
- package/es/core/keyboard/keyboard-layout-service.d.ts +51 -0
- package/es/core/keyboard/keyboard-layout-service.d.ts.map +1 -0
- package/es/core/keyboard/keyboard-layout-service.js +697 -0
- package/es/core/keyboard/keyboard-protocol.d.ts +26 -0
- package/es/core/keyboard/keyboard-protocol.d.ts.map +1 -0
- package/es/core/keyboard/keyboard-protocol.js +5 -0
- package/es/core/keyboard/keys.d.ts +254 -0
- package/es/core/keyboard/keys.d.ts.map +1 -0
- package/es/core/keyboard/keys.js +1070 -0
- package/es/core/keyboard/layouts/cs-Czech-mac.d.ts +269 -0
- package/es/core/keyboard/layouts/cs-Czech-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/cs-Czech-mac.js +267 -0
- package/es/core/keyboard/layouts/cs-Czech-mac.json +1 -0
- package/es/core/keyboard/layouts/cs-Czech-pc.d.ts +291 -0
- package/es/core/keyboard/layouts/cs-Czech-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/cs-Czech-pc.js +289 -0
- package/es/core/keyboard/layouts/cs-Czech-pc.json +1 -0
- package/es/core/keyboard/layouts/da-Danish-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/da-Danish-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/da-Danish-mac.js +296 -0
- package/es/core/keyboard/layouts/da-Danish-mac.json +1 -0
- package/es/core/keyboard/layouts/da-Danish-pc.d.ts +270 -0
- package/es/core/keyboard/layouts/da-Danish-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/da-Danish-pc.js +268 -0
- package/es/core/keyboard/layouts/da-Danish-pc.json +1 -0
- package/es/core/keyboard/layouts/de-German-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/de-German-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/de-German-mac.js +296 -0
- package/es/core/keyboard/layouts/de-German-mac.json +1 -0
- package/es/core/keyboard/layouts/de-German-pc.d.ts +270 -0
- package/es/core/keyboard/layouts/de-German-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/de-German-pc.js +268 -0
- package/es/core/keyboard/layouts/de-German-pc.json +1 -0
- package/es/core/keyboard/layouts/de-Swiss_German-mac.d.ts +296 -0
- package/es/core/keyboard/layouts/de-Swiss_German-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/de-Swiss_German-mac.js +294 -0
- package/es/core/keyboard/layouts/de-Swiss_German-mac.json +1 -0
- package/es/core/keyboard/layouts/de-Swiss_German-pc.d.ts +273 -0
- package/es/core/keyboard/layouts/de-Swiss_German-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/de-Swiss_German-pc.js +271 -0
- package/es/core/keyboard/layouts/de-Swiss_German-pc.json +1 -0
- package/es/core/keyboard/layouts/en-British-mac.d.ts +296 -0
- package/es/core/keyboard/layouts/en-British-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/en-British-mac.js +294 -0
- package/es/core/keyboard/layouts/en-British-mac.json +1 -0
- package/es/core/keyboard/layouts/en-British-pc.d.ts +271 -0
- package/es/core/keyboard/layouts/en-British-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/en-British-pc.js +269 -0
- package/es/core/keyboard/layouts/en-British-pc.json +1 -0
- package/es/core/keyboard/layouts/en-Colemak-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/en-Colemak-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/en-Colemak-mac.js +296 -0
- package/es/core/keyboard/layouts/en-Colemak-mac.json +1 -0
- package/es/core/keyboard/layouts/en-Dvorak-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/en-Dvorak-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/en-Dvorak-mac.js +296 -0
- package/es/core/keyboard/layouts/en-Dvorak-mac.json +1 -0
- package/es/core/keyboard/layouts/en-Dvorak-pc.d.ts +257 -0
- package/es/core/keyboard/layouts/en-Dvorak-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/en-Dvorak-pc.js +255 -0
- package/es/core/keyboard/layouts/en-Dvorak-pc.json +1 -0
- package/es/core/keyboard/layouts/en-Dvorak_Lefthanded-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/en-Dvorak_Lefthanded-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/en-Dvorak_Lefthanded-mac.js +296 -0
- package/es/core/keyboard/layouts/en-Dvorak_Lefthanded-mac.json +1 -0
- package/es/core/keyboard/layouts/en-Dvorak_Lefthanded-pc.d.ts +257 -0
- package/es/core/keyboard/layouts/en-Dvorak_Lefthanded-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/en-Dvorak_Lefthanded-pc.js +255 -0
- package/es/core/keyboard/layouts/en-Dvorak_Lefthanded-pc.json +1 -0
- package/es/core/keyboard/layouts/en-Dvorak_Righthanded-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/en-Dvorak_Righthanded-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/en-Dvorak_Righthanded-mac.js +296 -0
- package/es/core/keyboard/layouts/en-Dvorak_Righthanded-mac.json +1 -0
- package/es/core/keyboard/layouts/en-Dvorak_Righthanded-pc.d.ts +257 -0
- package/es/core/keyboard/layouts/en-Dvorak_Righthanded-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/en-Dvorak_Righthanded-pc.js +255 -0
- package/es/core/keyboard/layouts/en-Dvorak_Righthanded-pc.json +1 -0
- package/es/core/keyboard/layouts/en-US-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/en-US-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/en-US-mac.js +296 -0
- package/es/core/keyboard/layouts/en-US-mac.json +1 -0
- package/es/core/keyboard/layouts/en-US-pc.d.ts +257 -0
- package/es/core/keyboard/layouts/en-US-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/en-US-pc.js +255 -0
- package/es/core/keyboard/layouts/en-US-pc.json +1 -0
- package/es/core/keyboard/layouts/es-Spanish-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/es-Spanish-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/es-Spanish-mac.js +296 -0
- package/es/core/keyboard/layouts/es-Spanish-mac.json +1 -0
- package/es/core/keyboard/layouts/es-Spanish-pc.d.ts +269 -0
- package/es/core/keyboard/layouts/es-Spanish-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/es-Spanish-pc.js +267 -0
- package/es/core/keyboard/layouts/es-Spanish-pc.json +1 -0
- package/es/core/keyboard/layouts/fr-Bepo-pc.d.ts +344 -0
- package/es/core/keyboard/layouts/fr-Bepo-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/fr-Bepo-pc.js +342 -0
- package/es/core/keyboard/layouts/fr-Bepo-pc.json +1 -0
- package/es/core/keyboard/layouts/fr-Canadian_French-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/fr-Canadian_French-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/fr-Canadian_French-mac.js +296 -0
- package/es/core/keyboard/layouts/fr-Canadian_French-mac.json +1 -0
- package/es/core/keyboard/layouts/fr-Canadian_French-pc.d.ts +281 -0
- package/es/core/keyboard/layouts/fr-Canadian_French-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/fr-Canadian_French-pc.js +279 -0
- package/es/core/keyboard/layouts/fr-Canadian_French-pc.json +1 -0
- package/es/core/keyboard/layouts/fr-French-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/fr-French-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/fr-French-mac.js +296 -0
- package/es/core/keyboard/layouts/fr-French-mac.json +1 -0
- package/es/core/keyboard/layouts/fr-French-pc.d.ts +269 -0
- package/es/core/keyboard/layouts/fr-French-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/fr-French-pc.js +267 -0
- package/es/core/keyboard/layouts/fr-French-pc.json +1 -0
- package/es/core/keyboard/layouts/fr-Swiss_French-mac.d.ts +296 -0
- package/es/core/keyboard/layouts/fr-Swiss_French-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/fr-Swiss_French-mac.js +294 -0
- package/es/core/keyboard/layouts/fr-Swiss_French-mac.json +1 -0
- package/es/core/keyboard/layouts/fr-Swiss_French-pc.d.ts +273 -0
- package/es/core/keyboard/layouts/fr-Swiss_French-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/fr-Swiss_French-pc.js +271 -0
- package/es/core/keyboard/layouts/fr-Swiss_French-pc.json +1 -0
- package/es/core/keyboard/layouts/hu-Hungarian-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/hu-Hungarian-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/hu-Hungarian-mac.js +296 -0
- package/es/core/keyboard/layouts/hu-Hungarian-mac.json +1 -0
- package/es/core/keyboard/layouts/hu-Hungarian-pc.d.ts +298 -0
- package/es/core/keyboard/layouts/hu-Hungarian-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/hu-Hungarian-pc.js +296 -0
- package/es/core/keyboard/layouts/hu-Hungarian-pc.json +1 -0
- package/es/core/keyboard/layouts/index.d.ts +4 -0
- package/es/core/keyboard/layouts/index.d.ts.map +1 -0
- package/es/core/keyboard/layouts/index.js +57 -0
- package/es/core/keyboard/layouts/it-Italian-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/it-Italian-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/it-Italian-mac.js +296 -0
- package/es/core/keyboard/layouts/it-Italian-mac.json +1 -0
- package/es/core/keyboard/layouts/it-Italian-pc.d.ts +265 -0
- package/es/core/keyboard/layouts/it-Italian-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/it-Italian-pc.js +263 -0
- package/es/core/keyboard/layouts/it-Italian-pc.json +1 -0
- package/es/core/keyboard/layouts/nb-Norwegian-mac.d.ts +293 -0
- package/es/core/keyboard/layouts/nb-Norwegian-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/nb-Norwegian-mac.js +291 -0
- package/es/core/keyboard/layouts/nb-Norwegian-mac.json +1 -0
- package/es/core/keyboard/layouts/nb-Norwegian-pc.d.ts +269 -0
- package/es/core/keyboard/layouts/nb-Norwegian-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/nb-Norwegian-pc.js +267 -0
- package/es/core/keyboard/layouts/nb-Norwegian-pc.json +1 -0
- package/es/core/keyboard/layouts/nl-Dutch-mac.d.ts +296 -0
- package/es/core/keyboard/layouts/nl-Dutch-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/nl-Dutch-mac.js +294 -0
- package/es/core/keyboard/layouts/nl-Dutch-mac.json +1 -0
- package/es/core/keyboard/layouts/nl-Dutch-pc.d.ts +278 -0
- package/es/core/keyboard/layouts/nl-Dutch-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/nl-Dutch-pc.js +276 -0
- package/es/core/keyboard/layouts/nl-Dutch-pc.json +1 -0
- package/es/core/keyboard/layouts/pl-Polish-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/pl-Polish-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/pl-Polish-mac.js +296 -0
- package/es/core/keyboard/layouts/pl-Polish-mac.json +1 -0
- package/es/core/keyboard/layouts/pl-Polish-pc.d.ts +284 -0
- package/es/core/keyboard/layouts/pl-Polish-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/pl-Polish-pc.js +282 -0
- package/es/core/keyboard/layouts/pl-Polish-pc.json +1 -0
- package/es/core/keyboard/layouts/pt-Brazilian-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/pt-Brazilian-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/pt-Brazilian-mac.js +296 -0
- package/es/core/keyboard/layouts/pt-Brazilian-mac.json +1 -0
- package/es/core/keyboard/layouts/pt-Portuguese-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/pt-Portuguese-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/pt-Portuguese-mac.js +296 -0
- package/es/core/keyboard/layouts/pt-Portuguese-mac.json +1 -0
- package/es/core/keyboard/layouts/pt-Portuguese-pc.d.ts +268 -0
- package/es/core/keyboard/layouts/pt-Portuguese-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/pt-Portuguese-pc.js +266 -0
- package/es/core/keyboard/layouts/pt-Portuguese-pc.json +65 -0
- package/es/core/keyboard/layouts/ro-Romanian-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/ro-Romanian-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/ro-Romanian-mac.js +296 -0
- package/es/core/keyboard/layouts/ro-Romanian-mac.json +1 -0
- package/es/core/keyboard/layouts/ro-Romanian-pc.d.ts +295 -0
- package/es/core/keyboard/layouts/ro-Romanian-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/ro-Romanian-pc.js +293 -0
- package/es/core/keyboard/layouts/ro-Romanian-pc.json +1 -0
- package/es/core/keyboard/layouts/sv-Swedish-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/sv-Swedish-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/sv-Swedish-mac.js +296 -0
- package/es/core/keyboard/layouts/sv-Swedish-mac.json +1 -0
- package/es/core/keyboard/layouts/sv-Swedish-pc.d.ts +270 -0
- package/es/core/keyboard/layouts/sv-Swedish-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/sv-Swedish-pc.js +268 -0
- package/es/core/keyboard/layouts/sv-Swedish-pc.json +1 -0
- package/es/core/keyboard/layouts/tr-Turkish_Q-mac.d.ts +297 -0
- package/es/core/keyboard/layouts/tr-Turkish_Q-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/tr-Turkish_Q-mac.js +295 -0
- package/es/core/keyboard/layouts/tr-Turkish_Q-mac.json +1 -0
- package/es/core/keyboard/layouts/tr-Turkish_Q-pc.d.ts +282 -0
- package/es/core/keyboard/layouts/tr-Turkish_Q-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/tr-Turkish_Q-pc.js +280 -0
- package/es/core/keyboard/layouts/tr-Turkish_Q-pc.json +1 -0
- package/es/core/menu/default-menu-node.d.ts +82 -0
- package/es/core/menu/default-menu-node.d.ts.map +1 -0
- package/es/core/menu/default-menu-node.js +205 -0
- package/es/core/menu/index.d.ts +5 -0
- package/es/core/menu/index.d.ts.map +1 -0
- package/es/core/menu/index.js +39 -0
- package/es/core/menu/menu-protocol.d.ts +101 -0
- package/es/core/menu/menu-protocol.d.ts.map +1 -0
- package/es/core/menu/menu-protocol.js +72 -0
- package/es/core/menu/menu-registry.d.ts +92 -0
- package/es/core/menu/menu-registry.d.ts.map +1 -0
- package/es/core/menu/menu-registry.js +296 -0
- package/es/core/menu/module.d.ts +3 -0
- package/es/core/menu/module.d.ts.map +1 -0
- package/es/core/menu/module.js +31 -0
- package/es/core/module/index.d.ts +4 -0
- package/es/core/module/index.d.ts.map +1 -0
- package/es/core/module/index.js +3 -0
- package/es/core/module/mana-module-context.d.ts +7 -0
- package/es/core/module/mana-module-context.d.ts.map +1 -0
- package/es/core/module/mana-module-context.js +111 -0
- package/es/core/module/mana-module.d.ts +21 -0
- package/es/core/module/mana-module.d.ts.map +1 -0
- package/es/core/module/mana-module.js +71 -0
- package/es/core/module/module-protocol.d.ts +10 -0
- package/es/core/module/module-protocol.d.ts.map +1 -0
- package/es/core/module/module-protocol.js +1 -0
- package/es/core/nls.d.ts +19 -0
- package/es/core/nls.d.ts.map +1 -0
- package/es/core/nls.js +25 -0
- package/es/core/selection/index.d.ts +4 -0
- package/es/core/selection/index.d.ts.map +1 -0
- package/es/core/selection/index.js +4 -0
- package/es/core/selection/selection-service.d.ts +13 -0
- package/es/core/selection/selection-service.d.ts.map +1 -0
- package/es/core/selection/selection-service.js +27 -0
- package/es/core/theme/base-variable-registry.d.ts +31 -0
- package/es/core/theme/base-variable-registry.d.ts.map +1 -0
- package/es/core/theme/base-variable-registry.js +180 -0
- package/es/core/theme/basic/antd-variable-contribution.d.ts +6 -0
- package/es/core/theme/basic/antd-variable-contribution.d.ts.map +1 -0
- package/es/core/theme/basic/antd-variable-contribution.js +667 -0
- package/es/core/theme/basic/default-variable-contribution.d.ts +6 -0
- package/es/core/theme/basic/default-variable-contribution.d.ts.map +1 -0
- package/es/core/theme/basic/default-variable-contribution.js +212 -0
- package/es/core/theme/basic/index.d.ts +3 -0
- package/es/core/theme/basic/index.d.ts.map +1 -0
- package/es/core/theme/basic/index.js +2 -0
- package/es/core/theme/basic/variable-protocol.d.ts +7 -0
- package/es/core/theme/basic/variable-protocol.d.ts.map +1 -0
- package/es/core/theme/basic/variable-protocol.js +2 -0
- package/es/core/theme/basic/variable-registry.d.ts +13 -0
- package/es/core/theme/basic/variable-registry.d.ts.map +1 -0
- package/es/core/theme/basic/variable-registry.js +62 -0
- package/es/core/theme/color/antd-color-contribution.d.ts +6 -0
- package/es/core/theme/color/antd-color-contribution.d.ts.map +1 -0
- package/es/core/theme/color/antd-color-contribution.js +787 -0
- package/es/core/theme/color/color-protocol.d.ts +10 -0
- package/es/core/theme/color/color-protocol.d.ts.map +1 -0
- package/es/core/theme/color/color-protocol.js +2 -0
- package/es/core/theme/color/color-registry.d.ts +72 -0
- package/es/core/theme/color/color-registry.d.ts.map +1 -0
- package/es/core/theme/color/color-registry.js +176 -0
- package/es/core/theme/color/color.d.ts +165 -0
- package/es/core/theme/color/color.d.ts.map +1 -0
- package/es/core/theme/color/color.js +658 -0
- package/es/core/theme/color/default-color-contribution.d.ts +6 -0
- package/es/core/theme/color/default-color-contribution.d.ts.map +1 -0
- package/es/core/theme/color/default-color-contribution.js +550 -0
- package/es/core/theme/color/index.d.ts +3 -0
- package/es/core/theme/color/index.d.ts.map +1 -0
- package/es/core/theme/color/index.js +2 -0
- package/es/core/theme/index.d.ts +8 -0
- package/es/core/theme/index.d.ts.map +1 -0
- package/es/core/theme/index.js +22 -0
- package/es/core/theme/protocol.d.ts +16 -0
- package/es/core/theme/protocol.d.ts.map +1 -0
- package/es/core/theme/protocol.js +1 -0
- package/es/core/theme/style/mana-logo.png +0 -0
- package/es/core/theme/style/theme-base.less +3 -0
- package/es/core/theme/theme-app.d.ts +24 -0
- package/es/core/theme/theme-app.d.ts.map +1 -0
- package/es/core/theme/theme-app.js +151 -0
- package/es/core/theme/theme-service.d.ts +50 -0
- package/es/core/theme/theme-service.d.ts.map +1 -0
- package/es/core/theme/theme-service.js +181 -0
- package/es/core/toolbar/default-toolbar-item.d.ts +38 -0
- package/es/core/toolbar/default-toolbar-item.d.ts.map +1 -0
- package/es/core/toolbar/default-toolbar-item.js +82 -0
- package/es/core/toolbar/index.d.ts +6 -0
- package/es/core/toolbar/index.d.ts.map +1 -0
- package/es/core/toolbar/index.js +20 -0
- package/es/core/toolbar/toolbar-protocol.d.ts +77 -0
- package/es/core/toolbar/toolbar-protocol.d.ts.map +1 -0
- package/es/core/toolbar/toolbar-protocol.js +32 -0
- package/es/core/toolbar/toolbar-registry.d.ts +37 -0
- package/es/core/toolbar/toolbar-registry.d.ts.map +1 -0
- package/es/core/toolbar/toolbar-registry.js +96 -0
- package/es/core/typings/native-keymap.d.ts +72 -0
- package/es/core/utils/hooks.d.ts +12 -0
- package/es/core/utils/hooks.d.ts.map +1 -0
- package/es/core/utils/hooks.js +103 -0
- package/es/core/utils/index.d.ts +4 -0
- package/es/core/utils/index.d.ts.map +1 -0
- package/es/core/utils/index.js +3 -0
- package/es/core/utils/lifecycle.d.ts +75 -0
- package/es/core/utils/lifecycle.d.ts.map +1 -0
- package/es/core/utils/lifecycle.js +350 -0
- package/es/core/utils/map.d.ts +148 -0
- package/es/core/utils/map.d.ts.map +1 -0
- package/es/core/utils/map.js +1196 -0
- package/es/core/view/decorator.d.ts +19 -0
- package/es/core/view/decorator.d.ts.map +1 -0
- package/es/core/view/decorator.js +106 -0
- package/es/core/view/default-slot-view.d.ts +48 -0
- package/es/core/view/default-slot-view.d.ts.map +1 -0
- package/es/core/view/default-slot-view.js +289 -0
- package/es/core/view/default-view.d.ts +35 -0
- package/es/core/view/default-view.d.ts.map +1 -0
- package/es/core/view/default-view.js +90 -0
- package/es/core/view/focus-tracker.d.ts +165 -0
- package/es/core/view/focus-tracker.d.ts.map +1 -0
- package/es/core/view/focus-tracker.js +411 -0
- package/es/core/view/hooks.d.ts +8 -0
- package/es/core/view/hooks.d.ts.map +1 -0
- package/es/core/view/hooks.js +35 -0
- package/es/core/view/index.d.ts +23 -0
- package/es/core/view/index.d.ts.map +1 -0
- package/es/core/view/index.js +22 -0
- package/es/core/view/index.less +4 -0
- package/es/core/view/module.d.ts +3 -0
- package/es/core/view/module.d.ts.map +1 -0
- package/es/core/view/module.js +22 -0
- package/es/core/view/navigatable-types.d.ts +33 -0
- package/es/core/view/navigatable-types.d.ts.map +1 -0
- package/es/core/view/navigatable-types.js +34 -0
- package/es/core/view/navigatable.d.ts +9 -0
- package/es/core/view/navigatable.d.ts.map +1 -0
- package/es/core/view/navigatable.js +47 -0
- package/es/core/view/open-handler.d.ts +71 -0
- package/es/core/view/open-handler.d.ts.map +1 -0
- package/es/core/view/open-handler.js +167 -0
- package/es/core/view/portal-slot-view.d.ts +21 -0
- package/es/core/view/portal-slot-view.d.ts.map +1 -0
- package/es/core/view/portal-slot-view.js +157 -0
- package/es/core/view/root-view.d.ts +26 -0
- package/es/core/view/root-view.d.ts.map +1 -0
- package/es/core/view/root-view.js +139 -0
- package/es/core/view/saveable.d.ts +40 -0
- package/es/core/view/saveable.d.ts.map +1 -0
- package/es/core/view/saveable.js +152 -0
- package/es/core/view/slot-view-manager.d.ts +57 -0
- package/es/core/view/slot-view-manager.d.ts.map +1 -0
- package/es/core/view/slot-view-manager.js +321 -0
- package/es/core/view/slot.d.ts +11 -0
- package/es/core/view/slot.d.ts.map +1 -0
- package/es/core/view/slot.js +57 -0
- package/es/core/view/stateful-view.d.ts +12 -0
- package/es/core/view/stateful-view.d.ts.map +1 -0
- package/es/core/view/stateful-view.js +38 -0
- package/es/core/view/title.d.ts +13 -0
- package/es/core/view/title.d.ts.map +1 -0
- package/es/core/view/title.js +48 -0
- package/es/core/view/utils.d.ts +15 -0
- package/es/core/view/utils.d.ts.map +1 -0
- package/es/core/view/utils.js +35 -0
- package/es/core/view/view-application.d.ts +18 -0
- package/es/core/view/view-application.d.ts.map +1 -0
- package/es/core/view/view-application.js +171 -0
- package/es/core/view/view-container.d.ts +20 -0
- package/es/core/view/view-container.d.ts.map +1 -0
- package/es/core/view/view-container.js +82 -0
- package/es/core/view/view-context.d.ts +8 -0
- package/es/core/view/view-context.d.ts.map +1 -0
- package/es/core/view/view-context.js +29 -0
- package/es/core/view/view-decoration.d.ts +149 -0
- package/es/core/view/view-decoration.d.ts.map +1 -0
- package/es/core/view/view-decoration.js +4 -0
- package/es/core/view/view-manager.d.ts +66 -0
- package/es/core/view/view-manager.d.ts.map +1 -0
- package/es/core/view/view-manager.js +434 -0
- package/es/core/view/view-meta.d.ts +12 -0
- package/es/core/view/view-meta.d.ts.map +1 -0
- package/es/core/view/view-meta.js +35 -0
- package/es/core/view/view-open-handler.d.ts +76 -0
- package/es/core/view/view-open-handler.d.ts.map +1 -0
- package/es/core/view/view-open-handler.js +227 -0
- package/es/core/view/view-protocol.d.ts +171 -0
- package/es/core/view/view-protocol.d.ts.map +1 -0
- package/es/core/view/view-protocol.js +58 -0
- package/es/core/view/view-render.d.ts +9 -0
- package/es/core/view/view-render.d.ts.map +1 -0
- package/es/core/view/view-render.js +37 -0
- package/es/core/view/view-storage.d.ts +40 -0
- package/es/core/view/view-storage.d.ts.map +1 -0
- package/es/core/view/view-storage.js +310 -0
- package/es/index.js +2 -1
- package/es/ioc/container-api.d.ts +9 -0
- package/es/ioc/container-api.d.ts.map +1 -0
- package/es/ioc/container-api.js +32 -0
- package/es/ioc/container.d.ts +37 -0
- package/es/ioc/container.d.ts.map +1 -0
- package/es/ioc/container.js +191 -0
- package/es/ioc/contribution/contribution-protocol.d.ts +24 -0
- package/es/ioc/contribution/contribution-protocol.d.ts.map +1 -0
- package/es/ioc/contribution/contribution-protocol.js +16 -0
- package/es/ioc/contribution/contribution-provider.d.ts +21 -0
- package/es/ioc/contribution/contribution-provider.d.ts.map +1 -0
- package/es/ioc/contribution/contribution-provider.js +81 -0
- package/es/ioc/contribution/contribution-register.d.ts +5 -0
- package/es/ioc/contribution/contribution-register.d.ts.map +1 -0
- package/es/ioc/contribution/contribution-register.js +27 -0
- package/es/ioc/contribution/decorator.d.ts +3 -0
- package/es/ioc/contribution/decorator.d.ts.map +1 -0
- package/es/ioc/contribution/decorator.js +8 -0
- package/es/ioc/contribution/index.d.ts +12 -0
- package/es/ioc/contribution/index.d.ts.map +1 -0
- package/es/ioc/contribution/index.js +10 -0
- package/es/ioc/core.d.ts +105 -0
- package/es/ioc/core.d.ts.map +1 -0
- package/es/ioc/core.js +104 -0
- package/es/ioc/decorator.d.ts +9 -0
- package/es/ioc/decorator.d.ts.map +1 -0
- package/es/ioc/decorator.js +56 -0
- package/es/ioc/features/auto-factory.d.ts +8 -0
- package/es/ioc/features/auto-factory.d.ts.map +1 -0
- package/es/ioc/features/auto-factory.js +34 -0
- package/es/ioc/features/prioritized-contribution.d.ts +12 -0
- package/es/ioc/features/prioritized-contribution.d.ts.map +1 -0
- package/es/ioc/features/prioritized-contribution.js +40 -0
- package/es/ioc/index.d.ts +9 -0
- package/es/ioc/index.d.ts.map +1 -0
- package/es/ioc/index.js +8 -0
- package/es/ioc/inversify-api/index.d.ts +15 -0
- package/es/ioc/inversify-api/index.d.ts.map +1 -0
- package/es/ioc/inversify-api/index.js +48 -0
- package/es/ioc/inversify-api/inversify-protocol.d.ts +13 -0
- package/es/ioc/inversify-api/inversify-protocol.d.ts.map +1 -0
- package/es/ioc/inversify-api/inversify-protocol.js +7 -0
- package/es/ioc/module/index.d.ts +4 -0
- package/es/ioc/module/index.d.ts.map +1 -0
- package/es/ioc/module/index.js +5 -0
- package/es/ioc/module/syringe-module.d.ts +29 -0
- package/es/ioc/module/syringe-module.d.ts.map +1 -0
- package/es/ioc/module/syringe-module.js +110 -0
- package/es/ioc/register.d.ts +33 -0
- package/es/ioc/register.d.ts.map +1 -0
- package/es/ioc/register.js +194 -0
- package/es/ioc/side-option.d.ts +4 -0
- package/es/ioc/side-option.d.ts.map +1 -0
- package/es/ioc/side-option.js +4 -0
- package/es/l10n/index.d.ts +3 -0
- package/es/l10n/index.d.ts.map +1 -0
- package/es/l10n/index.js +2 -0
- package/es/l10n/l10n/index.d.ts +144 -0
- package/es/l10n/l10n/index.d.ts.map +1 -0
- package/es/l10n/l10n/index.js +269 -0
- package/es/l10n/l10n/platform.d.ts +3 -0
- package/es/l10n/l10n/platform.d.ts.map +1 -0
- package/es/l10n/l10n/platform.js +20 -0
- package/es/l10n/lang/bundle.l10n.en-US.json +5 -0
- package/es/l10n/lang/bundle.l10n.zh-CN.json +5 -0
- package/es/l10n/lang/index.d.ts +3 -0
- package/es/l10n/lang/index.d.ts.map +1 -0
- package/es/l10n/lang/index.js +6 -0
- package/es/observable/async-event.d.ts +28 -0
- package/es/observable/async-event.d.ts.map +1 -0
- package/es/observable/async-event.js +158 -0
- package/es/observable/config.d.ts +10 -0
- package/es/observable/config.d.ts.map +1 -0
- package/es/observable/config.js +58 -0
- package/es/observable/context.d.ts +15 -0
- package/es/observable/context.d.ts.map +1 -0
- package/es/observable/context.js +44 -0
- package/es/observable/core.d.ts +24 -0
- package/es/observable/core.d.ts.map +1 -0
- package/es/observable/core.js +11 -0
- package/es/observable/decorator.d.ts +9 -0
- package/es/observable/decorator.d.ts.map +1 -0
- package/es/observable/decorator.js +19 -0
- package/es/observable/hooks.d.ts +6 -0
- package/es/observable/hooks.d.ts.map +1 -0
- package/es/observable/hooks.js +44 -0
- package/es/observable/index.d.ts +12 -0
- package/es/observable/index.d.ts.map +1 -0
- package/es/observable/index.js +11 -0
- package/es/observable/notifiable.d.ts +19 -0
- package/es/observable/notifiable.d.ts.map +1 -0
- package/es/observable/notifiable.js +198 -0
- package/es/observable/notifier.d.ts +33 -0
- package/es/observable/notifier.d.ts.map +1 -0
- package/es/observable/notifier.js +154 -0
- package/es/observable/observable.d.ts +3 -0
- package/es/observable/observable.d.ts.map +1 -0
- package/es/observable/observable.js +87 -0
- package/es/observable/tracker.d.ts +27 -0
- package/es/observable/tracker.d.ts.map +1 -0
- package/es/observable/tracker.js +225 -0
- package/es/observable/utils.d.ts +31 -0
- package/es/observable/utils.d.ts.map +1 -0
- package/es/observable/utils.js +139 -0
- package/es/observable/watch.d.ts +5 -0
- package/es/observable/watch.d.ts.map +1 -0
- package/es/observable/watch.js +56 -0
- package/es/polling/poll.d.ts +3 -3
- package/es/polling/poll.d.ts.map +1 -1
- package/es/polling/poll.js +1 -1
- package/es/polling/protocol.d.ts +1 -1
- package/es/polling/protocol.d.ts.map +1 -1
- package/es/protocol/cell-protocol.d.ts +1 -1
- package/es/protocol/cell-protocol.d.ts.map +1 -1
- package/es/protocol/cell-protocol.js +1 -1
- package/es/react/constant.d.ts +2 -0
- package/es/react/constant.d.ts.map +1 -0
- package/es/react/constant.js +1 -0
- package/es/react/dropdown/index.d.ts +23 -0
- package/es/react/dropdown/index.d.ts.map +1 -0
- package/es/react/dropdown/index.js +53 -0
- package/es/react/dropdown/styles/index.less +121 -0
- package/es/react/index.d.ts +8 -0
- package/es/react/index.d.ts.map +1 -0
- package/es/react/index.js +7 -0
- package/es/react/layout/boxpanel/Pane.d.ts +13 -0
- package/es/react/layout/boxpanel/Pane.d.ts.map +1 -0
- package/es/react/layout/boxpanel/Pane.js +37 -0
- package/es/react/layout/boxpanel/context.d.ts +8 -0
- package/es/react/layout/boxpanel/context.d.ts.map +1 -0
- package/es/react/layout/boxpanel/context.js +4 -0
- package/es/react/layout/boxpanel/index.d.ts +19 -0
- package/es/react/layout/boxpanel/index.d.ts.map +1 -0
- package/es/react/layout/boxpanel/index.js +46 -0
- package/es/react/layout/boxpanel/styles/index.less +14 -0
- package/es/react/layout/layout.d.ts +12 -0
- package/es/react/layout/layout.d.ts.map +1 -0
- package/es/react/layout/layout.js +68 -0
- package/es/react/layout/splitpanel/context.d.ts +15 -0
- package/es/react/layout/splitpanel/context.d.ts.map +1 -0
- package/es/react/layout/splitpanel/context.js +24 -0
- package/es/react/layout/splitpanel/index.d.ts +23 -0
- package/es/react/layout/splitpanel/index.d.ts.map +1 -0
- package/es/react/layout/splitpanel/index.js +287 -0
- package/es/react/layout/splitpanel/pane.d.ts +18 -0
- package/es/react/layout/splitpanel/pane.d.ts.map +1 -0
- package/es/react/layout/splitpanel/pane.js +8 -0
- package/es/react/layout/splitpanel/styles/index.less +10 -0
- package/es/react/menu/context.d.ts +8 -0
- package/es/react/menu/context.d.ts.map +1 -0
- package/es/react/menu/context.js +4 -0
- package/es/react/menu/divider.d.ts +3 -0
- package/es/react/menu/divider.d.ts.map +1 -0
- package/es/react/menu/divider.js +10 -0
- package/es/react/menu/index.d.ts +4 -0
- package/es/react/menu/index.d.ts.map +1 -0
- package/es/react/menu/index.js +3 -0
- package/es/react/menu/item.d.ts +19 -0
- package/es/react/menu/item.d.ts.map +1 -0
- package/es/react/menu/item.js +69 -0
- package/es/react/menu/menu.d.ts +17 -0
- package/es/react/menu/menu.d.ts.map +1 -0
- package/es/react/menu/menu.js +35 -0
- package/es/react/menu/styles/index.less +163 -0
- package/es/react/menu/submenu.d.ts +5 -0
- package/es/react/menu/submenu.d.ts.map +1 -0
- package/es/react/menu/submenu.js +33 -0
- package/es/react/menubar/context.d.ts +14 -0
- package/es/react/menubar/context.d.ts.map +1 -0
- package/es/react/menubar/context.js +2 -0
- package/es/react/menubar/index.d.ts +2 -0
- package/es/react/menubar/index.d.ts.map +1 -0
- package/es/react/menubar/index.js +1 -0
- package/es/react/menubar/item.d.ts +8 -0
- package/es/react/menubar/item.d.ts.map +1 -0
- package/es/react/menubar/item.js +94 -0
- package/es/react/menubar/menubar.d.ts +15 -0
- package/es/react/menubar/menubar.d.ts.map +1 -0
- package/es/react/menubar/menubar.js +119 -0
- package/es/react/menubar/styles/index.less +113 -0
- package/es/react/notification/index.d.ts +20 -0
- package/es/react/notification/index.d.ts.map +1 -0
- package/es/react/notification/index.js +154 -0
- package/es/react/notification/protocol.d.ts +111 -0
- package/es/react/notification/protocol.d.ts.map +1 -0
- package/es/react/notification/protocol.js +61 -0
- package/es/react/notification/pure-panel.d.ts +28 -0
- package/es/react/notification/pure-panel.d.ts.map +1 -0
- package/es/react/notification/pure-panel.js +115 -0
- package/es/react/notification/render.d.ts +10 -0
- package/es/react/notification/render.d.ts.map +1 -0
- package/es/react/notification/render.js +101 -0
- package/es/react/notification/style/index.d.ts +2 -0
- package/es/react/notification/style/index.d.ts.map +1 -0
- package/es/react/notification/style/index.js +1 -0
- package/es/react/notification/style/index.less +192 -0
- package/es/react/notification/style/placement.less +68 -0
- package/es/react/notification/use-notification.d.ts +9 -0
- package/es/react/notification/use-notification.d.ts.map +1 -0
- package/es/react/notification/use-notification.js +173 -0
- package/es/react/resize/index.d.ts +41 -0
- package/es/react/resize/index.d.ts.map +1 -0
- package/es/react/resize/index.js +640 -0
- package/es/react/resize/styles/index.less +83 -0
- package/es/react/styles/variables.less +2 -0
- package/es/react/tabs/index.d.ts +19 -0
- package/es/react/tabs/index.d.ts.map +1 -0
- package/es/react/tabs/index.js +51 -0
- package/es/react/tabs/styles/card.less +111 -0
- package/es/react/tabs/styles/dropdown.less +70 -0
- package/es/react/tabs/styles/index.less +231 -0
- package/es/react/tabs/styles/position.less +217 -0
- package/es/react/typings/index.d.ts +5 -0
- package/es/react/util.d.ts +2 -0
- package/es/react/util.d.ts.map +1 -0
- package/es/react/util.js +4 -0
- package/es/url.js +1 -1
- package/package.json +55 -11
- package/src/app/app.tsx +23 -0
- package/src/app/file-tree/file-selection.ts +33 -0
- package/src/app/file-tree/file-service.ts +67 -0
- package/src/app/file-tree/file-tree-component.tsx +11 -0
- package/src/app/file-tree/file-tree-icon.tsx +15 -0
- package/src/app/file-tree/file-tree-label-provider.ts +54 -0
- package/src/app/file-tree/file-tree-model.ts +240 -0
- package/src/app/file-tree/file-tree-protocol.ts +35 -0
- package/src/app/file-tree/file-tree-view.tsx +340 -0
- package/src/app/file-tree/file-tree.ts +193 -0
- package/src/app/file-tree/files.ts +990 -0
- package/src/app/file-tree/filesystem-utils.ts +32 -0
- package/src/app/file-tree/index.ts +6 -0
- package/src/app/file-tree/module.ts +21 -0
- package/src/app/file-tree/selection-command-handler.ts +101 -0
- package/src/app/file-tree/style/file-icon.less +51 -0
- package/src/app/index.spec.ts +20 -0
- package/src/app/index.ts +37 -0
- package/src/app/label/index.ts +12 -0
- package/src/app/label/label-provider.tsx +454 -0
- package/src/app/menu/index.ts +24 -0
- package/src/app/menu/menu-bar-render.tsx +52 -0
- package/src/app/menu/menu-color-registry.ts +52 -0
- package/src/app/menu/menu-context.tsx +16 -0
- package/src/app/menu/menu-item-keeper.tsx +55 -0
- package/src/app/menu/menu-item-render.tsx +15 -0
- package/src/app/menu/menu-protocol.ts +22 -0
- package/src/app/menu/menu-render.tsx +92 -0
- package/src/app/menu/menu.tsx +212 -0
- package/src/app/modal/index.ts +29 -0
- package/src/app/modal/modal-contribution.ts +13 -0
- package/src/app/modal/modal-protocol.tsx +30 -0
- package/src/app/modal/modal-render.tsx +22 -0
- package/src/app/modal/modal-service.ts +166 -0
- package/src/app/notification/index.less +20 -0
- package/src/app/notification/index.ts +8 -0
- package/src/app/notification/protocol.ts +16 -0
- package/src/app/notification/service.tsx +60 -0
- package/src/app/style/index.less +181 -0
- package/src/app/style/style-protocol.ts +13 -0
- package/src/app/toolbar/index.less +40 -0
- package/src/app/toolbar/index.ts +20 -0
- package/src/app/toolbar/toolbar-item-keeper.tsx +45 -0
- package/src/app/toolbar/toolbar-item-render.tsx +23 -0
- package/src/app/toolbar/toolbar-protocol.ts +10 -0
- package/src/app/toolbar/toolbar-render.tsx +102 -0
- package/src/app/toolbar/toolbar-visible-render.tsx +21 -0
- package/src/app/toolbar/toolbar.tsx +241 -0
- package/src/app/tree/components/index.tsx +22 -0
- package/src/app/tree/components/tree-ident.tsx +44 -0
- package/src/app/tree/components/tree-node-caption-affix.tsx +47 -0
- package/src/app/tree/components/tree-node-caption.tsx +128 -0
- package/src/app/tree/components/tree-node-expansion.tsx +36 -0
- package/src/app/tree/components/tree-node-icon-decorator.tsx +75 -0
- package/src/app/tree/components/tree-node-icon.tsx +3 -0
- package/src/app/tree/components/tree-node-tail-decoration.tsx +59 -0
- package/src/app/tree/components/tree-node.tsx +38 -0
- package/src/app/tree/components/tree-switch-icon.tsx +13 -0
- package/src/app/tree/index.ts +15 -0
- package/src/app/tree/module.ts +30 -0
- package/src/app/tree/style/index.less +206 -0
- package/src/app/tree/style/tree-decorator.less +65 -0
- package/src/app/tree/tree-decorator.ts +216 -0
- package/src/app/tree/tree-expansion.ts +162 -0
- package/src/app/tree/tree-impl.ts +182 -0
- package/src/app/tree/tree-iterator.ts +243 -0
- package/src/app/tree/tree-label-provider.ts +23 -0
- package/src/app/tree/tree-model.ts +468 -0
- package/src/app/tree/tree-navigation.ts +41 -0
- package/src/app/tree/tree-protocol.ts +77 -0
- package/src/app/tree/tree-selection-impl.ts +169 -0
- package/src/app/tree/tree-selection-state.ts +271 -0
- package/src/app/tree/tree-selection.ts +138 -0
- package/src/app/tree/tree-view-decoration.ts +349 -0
- package/src/app/tree/tree.ts +288 -0
- package/src/app/tree/view/index.less +3 -0
- package/src/app/tree/view/index.ts +3 -0
- package/src/app/tree/view/tree-view-decorator.ts +91 -0
- package/src/app/tree/view/tree-view-module.ts +16 -0
- package/src/app/tree/view/tree-view-selection.ts +33 -0
- package/src/app/tree/view/tree-view.tsx +925 -0
- package/src/app/typings/index.d.ts +7 -0
- package/src/app/view/box/index.tsx +66 -0
- package/src/app/view/components/index.ts +1 -0
- package/src/app/view/components/loading/index.less +10 -0
- package/src/app/view/components/loading/index.tsx +4 -0
- package/src/app/view/flex/index.less +3 -0
- package/src/app/view/flex/index.tsx +57 -0
- package/src/app/view/header/header-view.tsx +35 -0
- package/src/app/view/header/index.less +43 -0
- package/src/app/view/header/index.ts +24 -0
- package/src/app/view/index.ts +15 -0
- package/src/app/view/tab/card-tab-view.tsx +34 -0
- package/src/app/view/tab/index.less +70 -0
- package/src/app/view/tab/index.ts +3 -0
- package/src/app/view/tab/side-tab-view.tsx +95 -0
- package/src/app/view/tab/tab-menu.ts +24 -0
- package/src/app/view/tab/tab-protocol.ts +3 -0
- package/src/app/view/tab/tab-view.tsx +153 -0
- package/src/common/assert.ts +13 -0
- package/src/common/cancellation.spec.ts +160 -0
- package/src/common/cancellation.ts +143 -0
- package/src/common/charCode.ts +434 -0
- package/src/common/collections.ts +158 -0
- package/src/common/deferred.ts +17 -0
- package/src/common/disposable-collection.ts +87 -0
- package/src/common/disposable.spec.ts +93 -0
- package/src/common/disposable.ts +41 -0
- package/src/common/event.spec.ts +182 -0
- package/src/common/event.ts +249 -0
- package/src/common/index.ts +27 -0
- package/src/common/iterator.ts +228 -0
- package/src/common/linkedList.ts +125 -0
- package/src/common/objects.ts +249 -0
- package/src/common/observable-disposable.ts +12 -0
- package/src/common/path.spec.ts +33 -0
- package/src/common/path.ts +226 -0
- package/src/common/platform.ts +281 -0
- package/src/common/priority.ts +79 -0
- package/src/common/promise-util.spec.ts +68 -0
- package/src/common/promise-util.ts +34 -0
- package/src/common/stopwatch.ts +40 -0
- package/src/common/strings.ts +513 -0
- package/src/common/types.spec.ts +16 -0
- package/src/common/types.ts +30 -0
- package/src/common/uint.ts +59 -0
- package/src/common/uri.spec.ts +73 -0
- package/src/common/uri.ts +208 -0
- package/src/common/utils.spec.ts +22 -0
- package/src/common/utils.ts +35 -0
- package/src/common/valueTypes.ts +311 -0
- package/src/common/vscode-uri/char-code.ts +438 -0
- package/src/common/vscode-uri/index.ts +11 -0
- package/src/common/vscode-uri/platform.ts +20 -0
- package/src/common/vscode-uri/uri.ts +757 -0
- package/src/common/vscode-uri/utils.ts +101 -0
- package/src/common/wait-until-event.spec.ts +70 -0
- package/src/common/wait-until-event.ts +49 -0
- package/src/core/application/application-protocol.ts +20 -0
- package/src/core/application/application-state.ts +68 -0
- package/src/core/application/application.ts +294 -0
- package/src/core/application/default-window-service.ts +66 -0
- package/src/core/application/index.ts +12 -0
- package/src/core/application/mock-window-service.ts +17 -0
- package/src/core/browser.ts +144 -0
- package/src/core/command/command-protocol.ts +152 -0
- package/src/core/command/command-registry.ts +432 -0
- package/src/core/command/index.ts +10 -0
- package/src/core/common/debug.ts +6 -0
- package/src/core/common/index.ts +23 -0
- package/src/core/common/storage-protocol.ts +25 -0
- package/src/core/common/storage-service.ts +81 -0
- package/src/core/components/application.tsx +144 -0
- package/src/core/components/context.tsx +67 -0
- package/src/core/components/hooks.tsx +23 -0
- package/src/core/components/index.less +28 -0
- package/src/core/components/index.tsx +10 -0
- package/src/core/components/root-view-render.tsx +13 -0
- package/src/core/configuration/configuration-cache.ts +50 -0
- package/src/core/configuration/configuration-protocol.ts +55 -0
- package/src/core/configuration/configuration-provider.ts +105 -0
- package/src/core/configuration/configuration-registry.ts +237 -0
- package/src/core/configuration/configuration-render-registry.ts +93 -0
- package/src/core/configuration/configuration-service.ts +190 -0
- package/src/core/configuration/configuration-storage.ts +26 -0
- package/src/core/configuration/configuration.test.ts +7 -0
- package/src/core/configuration/hooks.ts +39 -0
- package/src/core/configuration/index.ts +10 -0
- package/src/core/configuration/module.ts +34 -0
- package/src/core/configuration/typings.d.ts +1 -0
- package/src/core/configuration/validation.ts +33 -0
- package/src/core/context/data-context-manager.ts +65 -0
- package/src/core/context/data-context-protocol.ts +21 -0
- package/src/core/context/data-context.tsx +40 -0
- package/src/core/context/index.ts +15 -0
- package/src/core/index.spec.ts +14 -0
- package/src/core/index.ts +57 -0
- package/src/core/keybinding/context-key-service.ts +77 -0
- package/src/core/keybinding/index.ts +5 -0
- package/src/core/keybinding/keybinding-proocol.ts +15 -0
- package/src/core/keybinding/keybinding.ts +857 -0
- package/src/core/keybinding/module.ts +23 -0
- package/src/core/keybinding/vs/configuration/configuration.ts +460 -0
- package/src/core/keybinding/vs/configuration/configurationModels.ts +962 -0
- package/src/core/keybinding/vs/configuration/configurationRegistry.ts +617 -0
- package/src/core/keybinding/vs/configuration/configurationService.ts +172 -0
- package/src/core/keybinding/vs/configuration/json.ts +1509 -0
- package/src/core/keybinding/vs/contextKeyService.ts +694 -0
- package/src/core/keybinding/vs/contextkey.ts +1494 -0
- package/src/core/keybinding/vs/contextkeys.ts +52 -0
- package/src/core/keybinding/vs/jsonContributionRegistry.ts +74 -0
- package/src/core/keybinding/vs/jsonSchema.ts +85 -0
- package/src/core/keybinding/vs/platform.test.ts +50 -0
- package/src/core/keybinding/vs/platform.ts +50 -0
- package/src/core/keyboard/browser-keyboard-layout-provider.ts +455 -0
- package/src/core/keyboard/index.ts +4 -0
- package/src/core/keyboard/keyboard-layout-service.ts +490 -0
- package/src/core/keyboard/keyboard-protocol.ts +34 -0
- package/src/core/keyboard/keys.ts +787 -0
- package/src/core/keyboard/layouts/cs-Czech-mac.json +1 -0
- package/src/core/keyboard/layouts/cs-Czech-mac.ts +53 -0
- package/src/core/keyboard/layouts/cs-Czech-pc.json +1 -0
- package/src/core/keyboard/layouts/cs-Czech-pc.ts +55 -0
- package/src/core/keyboard/layouts/da-Danish-mac.json +1 -0
- package/src/core/keyboard/layouts/da-Danish-mac.ts +53 -0
- package/src/core/keyboard/layouts/da-Danish-pc.json +1 -0
- package/src/core/keyboard/layouts/da-Danish-pc.ts +55 -0
- package/src/core/keyboard/layouts/de-German-mac.json +1 -0
- package/src/core/keyboard/layouts/de-German-mac.ts +53 -0
- package/src/core/keyboard/layouts/de-German-pc.json +1 -0
- package/src/core/keyboard/layouts/de-German-pc.ts +61 -0
- package/src/core/keyboard/layouts/de-Swiss_German-mac.json +1 -0
- package/src/core/keyboard/layouts/de-Swiss_German-mac.ts +53 -0
- package/src/core/keyboard/layouts/de-Swiss_German-pc.json +1 -0
- package/src/core/keyboard/layouts/de-Swiss_German-pc.ts +55 -0
- package/src/core/keyboard/layouts/en-British-mac.json +1 -0
- package/src/core/keyboard/layouts/en-British-mac.ts +53 -0
- package/src/core/keyboard/layouts/en-British-pc.json +1 -0
- package/src/core/keyboard/layouts/en-British-pc.ts +91 -0
- package/src/core/keyboard/layouts/en-Colemak-mac.json +1 -0
- package/src/core/keyboard/layouts/en-Colemak-mac.ts +53 -0
- package/src/core/keyboard/layouts/en-Dvorak-mac.json +1 -0
- package/src/core/keyboard/layouts/en-Dvorak-mac.ts +53 -0
- package/src/core/keyboard/layouts/en-Dvorak-pc.json +1 -0
- package/src/core/keyboard/layouts/en-Dvorak-pc.ts +55 -0
- package/src/core/keyboard/layouts/en-Dvorak_Lefthanded-mac.json +1 -0
- package/src/core/keyboard/layouts/en-Dvorak_Lefthanded-mac.ts +53 -0
- package/src/core/keyboard/layouts/en-Dvorak_Lefthanded-pc.json +1 -0
- package/src/core/keyboard/layouts/en-Dvorak_Lefthanded-pc.ts +55 -0
- package/src/core/keyboard/layouts/en-Dvorak_Righthanded-mac.json +1 -0
- package/src/core/keyboard/layouts/en-Dvorak_Righthanded-mac.ts +53 -0
- package/src/core/keyboard/layouts/en-Dvorak_Righthanded-pc.json +1 -0
- package/src/core/keyboard/layouts/en-Dvorak_Righthanded-pc.ts +55 -0
- package/src/core/keyboard/layouts/en-US-mac.json +1 -0
- package/src/core/keyboard/layouts/en-US-mac.ts +53 -0
- package/src/core/keyboard/layouts/en-US-pc.json +1 -0
- package/src/core/keyboard/layouts/en-US-pc.ts +55 -0
- package/src/core/keyboard/layouts/es-Spanish-mac.json +1 -0
- package/src/core/keyboard/layouts/es-Spanish-mac.ts +53 -0
- package/src/core/keyboard/layouts/es-Spanish-pc.json +1 -0
- package/src/core/keyboard/layouts/es-Spanish-pc.ts +55 -0
- package/src/core/keyboard/layouts/fr-Bepo-pc.json +1 -0
- package/src/core/keyboard/layouts/fr-Bepo-pc.ts +289 -0
- package/src/core/keyboard/layouts/fr-Canadian_French-mac.json +1 -0
- package/src/core/keyboard/layouts/fr-Canadian_French-mac.ts +53 -0
- package/src/core/keyboard/layouts/fr-Canadian_French-pc.json +1 -0
- package/src/core/keyboard/layouts/fr-Canadian_French-pc.ts +55 -0
- package/src/core/keyboard/layouts/fr-French-mac.json +1 -0
- package/src/core/keyboard/layouts/fr-French-mac.ts +53 -0
- package/src/core/keyboard/layouts/fr-French-pc.json +1 -0
- package/src/core/keyboard/layouts/fr-French-pc.ts +55 -0
- package/src/core/keyboard/layouts/fr-Swiss_French-mac.json +1 -0
- package/src/core/keyboard/layouts/fr-Swiss_French-mac.ts +53 -0
- package/src/core/keyboard/layouts/fr-Swiss_French-pc.json +1 -0
- package/src/core/keyboard/layouts/fr-Swiss_French-pc.ts +55 -0
- package/src/core/keyboard/layouts/hu-Hungarian-mac.json +1 -0
- package/src/core/keyboard/layouts/hu-Hungarian-mac.ts +53 -0
- package/src/core/keyboard/layouts/hu-Hungarian-pc.json +1 -0
- package/src/core/keyboard/layouts/hu-Hungarian-pc.ts +55 -0
- package/src/core/keyboard/layouts/index.ts +59 -0
- package/src/core/keyboard/layouts/it-Italian-mac.json +1 -0
- package/src/core/keyboard/layouts/it-Italian-mac.ts +53 -0
- package/src/core/keyboard/layouts/it-Italian-pc.json +1 -0
- package/src/core/keyboard/layouts/it-Italian-pc.ts +67 -0
- package/src/core/keyboard/layouts/nb-Norwegian-mac.json +1 -0
- package/src/core/keyboard/layouts/nb-Norwegian-mac.ts +53 -0
- package/src/core/keyboard/layouts/nb-Norwegian-pc.json +1 -0
- package/src/core/keyboard/layouts/nb-Norwegian-pc.ts +55 -0
- package/src/core/keyboard/layouts/nl-Dutch-mac.json +1 -0
- package/src/core/keyboard/layouts/nl-Dutch-mac.ts +53 -0
- package/src/core/keyboard/layouts/nl-Dutch-pc.json +1 -0
- package/src/core/keyboard/layouts/nl-Dutch-pc.ts +55 -0
- package/src/core/keyboard/layouts/pl-Polish-mac.json +1 -0
- package/src/core/keyboard/layouts/pl-Polish-mac.ts +53 -0
- package/src/core/keyboard/layouts/pl-Polish-pc.json +1 -0
- package/src/core/keyboard/layouts/pl-Polish-pc.ts +55 -0
- package/src/core/keyboard/layouts/pt-Brazilian-mac.json +1 -0
- package/src/core/keyboard/layouts/pt-Brazilian-mac.ts +53 -0
- package/src/core/keyboard/layouts/pt-Portuguese-mac.json +1 -0
- package/src/core/keyboard/layouts/pt-Portuguese-mac.ts +53 -0
- package/src/core/keyboard/layouts/pt-Portuguese-pc.json +65 -0
- package/src/core/keyboard/layouts/pt-Portuguese-pc.ts +55 -0
- package/src/core/keyboard/layouts/ro-Romanian-mac.json +1 -0
- package/src/core/keyboard/layouts/ro-Romanian-mac.ts +53 -0
- package/src/core/keyboard/layouts/ro-Romanian-pc.json +1 -0
- package/src/core/keyboard/layouts/ro-Romanian-pc.ts +127 -0
- package/src/core/keyboard/layouts/sv-Swedish-mac.json +1 -0
- package/src/core/keyboard/layouts/sv-Swedish-mac.ts +53 -0
- package/src/core/keyboard/layouts/sv-Swedish-pc.json +1 -0
- package/src/core/keyboard/layouts/sv-Swedish-pc.ts +55 -0
- package/src/core/keyboard/layouts/tr-Turkish_Q-mac.json +1 -0
- package/src/core/keyboard/layouts/tr-Turkish_Q-mac.ts +53 -0
- package/src/core/keyboard/layouts/tr-Turkish_Q-pc.json +1 -0
- package/src/core/keyboard/layouts/tr-Turkish_Q-pc.ts +67 -0
- package/src/core/menu/default-menu-node.ts +210 -0
- package/src/core/menu/index.ts +39 -0
- package/src/core/menu/menu-protocol.ts +142 -0
- package/src/core/menu/menu-registry.ts +271 -0
- package/src/core/menu/module.ts +32 -0
- package/src/core/module/index.ts +3 -0
- package/src/core/module/mana-module-context.ts +40 -0
- package/src/core/module/mana-module.test.ts +161 -0
- package/src/core/module/mana-module.ts +44 -0
- package/src/core/module/module-protocol.ts +12 -0
- package/src/core/nls.ts +46 -0
- package/src/core/selection/index.ts +7 -0
- package/src/core/selection/selection-service.ts +26 -0
- package/src/core/theme/base-variable-registry.ts +132 -0
- package/src/core/theme/basic/antd-variable-contribution.ts +849 -0
- package/src/core/theme/basic/default-variable-contribution.ts +163 -0
- package/src/core/theme/basic/index.spec.ts +16 -0
- package/src/core/theme/basic/index.ts +2 -0
- package/src/core/theme/basic/variable-protocol.ts +8 -0
- package/src/core/theme/basic/variable-registry.ts +23 -0
- package/src/core/theme/color/antd-color-contribution.ts +994 -0
- package/src/core/theme/color/color-protocol.ts +12 -0
- package/src/core/theme/color/color-registry.ts +140 -0
- package/src/core/theme/color/color.ts +695 -0
- package/src/core/theme/color/default-color-contribution.ts +502 -0
- package/src/core/theme/color/index.spec.ts +33 -0
- package/src/core/theme/color/index.ts +2 -0
- package/src/core/theme/index.spec.ts +17 -0
- package/src/core/theme/index.ts +37 -0
- package/src/core/theme/protocol.ts +19 -0
- package/src/core/theme/style/mana-logo.png +0 -0
- package/src/core/theme/style/theme-base.less +3 -0
- package/src/core/theme/theme-app.ts +80 -0
- package/src/core/theme/theme-service.ts +170 -0
- package/src/core/toolbar/default-toolbar-item.ts +80 -0
- package/src/core/toolbar/index.ts +23 -0
- package/src/core/toolbar/toolbar-protocol.ts +112 -0
- package/src/core/toolbar/toolbar-registry.ts +77 -0
- package/src/core/typings/native-keymap.d.ts +72 -0
- package/src/core/utils/hooks.ts +108 -0
- package/src/core/utils/index.ts +3 -0
- package/src/core/utils/lifecycle.ts +335 -0
- package/src/core/utils/map.ts +1020 -0
- package/src/core/view/decorator.ts +87 -0
- package/src/core/view/default-slot-view.tsx +231 -0
- package/src/core/view/default-view.tsx +70 -0
- package/src/core/view/focus-tracker.ts +363 -0
- package/src/core/view/hooks.tsx +40 -0
- package/src/core/view/index.less +4 -0
- package/src/core/view/index.ts +22 -0
- package/src/core/view/module.ts +41 -0
- package/src/core/view/navigatable-types.ts +49 -0
- package/src/core/view/navigatable.ts +29 -0
- package/src/core/view/open-handler.ts +122 -0
- package/src/core/view/portal-slot-view.tsx +107 -0
- package/src/core/view/root-view.tsx +102 -0
- package/src/core/view/saveable.ts +146 -0
- package/src/core/view/slot-view-manager.ts +199 -0
- package/src/core/view/slot.tsx +68 -0
- package/src/core/view/stateful-view.ts +22 -0
- package/src/core/view/title.tsx +24 -0
- package/src/core/view/utils.tsx +48 -0
- package/src/core/view/view-application.ts +70 -0
- package/src/core/view/view-container.tsx +91 -0
- package/src/core/view/view-context.tsx +37 -0
- package/src/core/view/view-decoration.ts +160 -0
- package/src/core/view/view-manager.ts +271 -0
- package/src/core/view/view-meta.ts +24 -0
- package/src/core/view/view-open-handler.ts +139 -0
- package/src/core/view/view-protocol.ts +218 -0
- package/src/core/view/view-render.tsx +39 -0
- package/src/core/view/view-storage.ts +218 -0
- package/src/index.ts +1 -0
- package/src/ioc/container-api.ts +22 -0
- package/src/ioc/container.spec.ts +291 -0
- package/src/ioc/container.ts +171 -0
- package/src/ioc/contribution/contribution-protocol.ts +27 -0
- package/src/ioc/contribution/contribution-provider.ts +73 -0
- package/src/ioc/contribution/contribution-register.ts +32 -0
- package/src/ioc/contribution/decorator.ts +16 -0
- package/src/ioc/contribution/index.spec.ts +174 -0
- package/src/ioc/contribution/index.ts +13 -0
- package/src/ioc/core.ts +198 -0
- package/src/ioc/decorator.spec.ts +43 -0
- package/src/ioc/decorator.ts +54 -0
- package/src/ioc/features/auto-factory.spec.ts +90 -0
- package/src/ioc/features/auto-factory.ts +44 -0
- package/src/ioc/features/prioritized-contribution.ts +43 -0
- package/src/ioc/index.ts +8 -0
- package/src/ioc/inversify-api/index.spec.ts +224 -0
- package/src/ioc/inversify-api/index.ts +76 -0
- package/src/ioc/inversify-api/inversify-protocol.ts +31 -0
- package/src/ioc/module/index.spec.ts +68 -0
- package/src/ioc/module/index.ts +7 -0
- package/src/ioc/module/syringe-module.ts +95 -0
- package/src/ioc/register.spec.ts +75 -0
- package/src/ioc/register.ts +210 -0
- package/src/ioc/side-option.spec.ts +39 -0
- package/src/ioc/side-option.ts +14 -0
- package/src/l10n/index.ts +2 -0
- package/src/l10n/l10n/index.test.ts +145 -0
- package/src/l10n/l10n/index.ts +319 -0
- package/src/l10n/l10n/platform.ts +51 -0
- package/src/l10n/lang/bundle.l10n.en-US.json +5 -0
- package/src/l10n/lang/bundle.l10n.zh-CN.json +5 -0
- package/src/l10n/lang/index.ts +9 -0
- package/src/observable/async-event.spec.tsx +64 -0
- package/src/observable/async-event.ts +110 -0
- package/src/observable/async.spec.tsx +142 -0
- package/src/observable/config.spec.ts +12 -0
- package/src/observable/config.ts +26 -0
- package/src/observable/context.spec.tsx +360 -0
- package/src/observable/context.tsx +39 -0
- package/src/observable/core.ts +28 -0
- package/src/observable/decorator.spec.ts +41 -0
- package/src/observable/decorator.ts +19 -0
- package/src/observable/hooks.spec.tsx +244 -0
- package/src/observable/hooks.ts +39 -0
- package/src/observable/index.ts +11 -0
- package/src/observable/notifiable.spec.ts +205 -0
- package/src/observable/notifiable.ts +185 -0
- package/src/observable/notifier.spec.ts +141 -0
- package/src/observable/notifier.ts +126 -0
- package/src/observable/observable.spec.ts +265 -0
- package/src/observable/observable.ts +87 -0
- package/src/observable/tracker.spec.ts +697 -0
- package/src/observable/tracker.ts +240 -0
- package/src/observable/utils.spec.tsx +93 -0
- package/src/observable/utils.ts +160 -0
- package/src/observable/watch.spec.ts +112 -0
- package/src/observable/watch.ts +77 -0
- package/src/polling/poll.ts +2 -2
- package/src/polling/protocol.ts +1 -1
- package/src/protocol/cell-protocol.ts +1 -1
- package/src/react/constant.ts +1 -0
- package/src/react/dropdown/index.tsx +86 -0
- package/src/react/dropdown/styles/index.less +121 -0
- package/src/react/index.spec.ts +13 -0
- package/src/react/index.ts +8 -0
- package/src/react/layout/boxpanel/Pane.tsx +51 -0
- package/src/react/layout/boxpanel/context.ts +11 -0
- package/src/react/layout/boxpanel/index.tsx +65 -0
- package/src/react/layout/boxpanel/styles/index.less +14 -0
- package/src/react/layout/layout.ts +85 -0
- package/src/react/layout/splitpanel/context.ts +35 -0
- package/src/react/layout/splitpanel/index.tsx +325 -0
- package/src/react/layout/splitpanel/pane.tsx +19 -0
- package/src/react/layout/splitpanel/styles/index.less +10 -0
- package/src/react/menu/context.tsx +10 -0
- package/src/react/menu/divider.tsx +9 -0
- package/src/react/menu/index.ts +3 -0
- package/src/react/menu/item.tsx +83 -0
- package/src/react/menu/menu.tsx +46 -0
- package/src/react/menu/styles/index.less +163 -0
- package/src/react/menu/submenu.tsx +28 -0
- package/src/react/menubar/context.tsx +17 -0
- package/src/react/menubar/index.ts +1 -0
- package/src/react/menubar/item.tsx +103 -0
- package/src/react/menubar/menubar.tsx +123 -0
- package/src/react/menubar/styles/index.less +113 -0
- package/src/react/notification/index.tsx +208 -0
- package/src/react/notification/protocol.ts +138 -0
- package/src/react/notification/pure-panel.tsx +119 -0
- package/src/react/notification/render.ts +92 -0
- package/src/react/notification/style/index.less +192 -0
- package/src/react/notification/style/index.tsx +1 -0
- package/src/react/notification/style/placement.less +68 -0
- package/src/react/notification/use-notification.tsx +186 -0
- package/src/react/resize/index.tsx +769 -0
- package/src/react/resize/styles/index.less +83 -0
- package/src/react/styles/variables.less +2 -0
- package/src/react/tabs/index.tsx +75 -0
- package/src/react/tabs/styles/card.less +111 -0
- package/src/react/tabs/styles/dropdown.less +70 -0
- package/src/react/tabs/styles/index.less +231 -0
- package/src/react/tabs/styles/position.less +217 -0
- package/src/react/typings/index.d.ts +5 -0
- package/src/react/util.ts +5 -0
- package/src/url.ts +1 -1
|
@@ -0,0 +1,1070 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
7
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
9
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
|
+
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
11
|
+
/* eslint-disable no-restricted-syntax */
|
|
12
|
+
/* eslint-disable no-plusplus */
|
|
13
|
+
/* eslint-disable @typescript-eslint/no-redeclare */
|
|
14
|
+
import { isOSX } from "../../common/index.js";
|
|
15
|
+
export var KeySequence;
|
|
16
|
+
(function (_KeySequence) {
|
|
17
|
+
function equals(a, b) {
|
|
18
|
+
if (a.length !== b.length) {
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
for (var i = 0; i < a.length; i++) {
|
|
22
|
+
if (!a[i].equals(b[i])) {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
_KeySequence.equals = equals;
|
|
29
|
+
var CompareResult = /*#__PURE__*/function (CompareResult) {
|
|
30
|
+
CompareResult[CompareResult["NONE"] = 0] = "NONE";
|
|
31
|
+
CompareResult[CompareResult["PARTIAL"] = 1] = "PARTIAL";
|
|
32
|
+
CompareResult[CompareResult["SHADOW"] = 2] = "SHADOW";
|
|
33
|
+
CompareResult[CompareResult["FULL"] = 3] = "FULL";
|
|
34
|
+
return CompareResult;
|
|
35
|
+
}({});
|
|
36
|
+
_KeySequence.CompareResult = CompareResult;
|
|
37
|
+
function compare(a, b) {
|
|
38
|
+
var first = a;
|
|
39
|
+
var second = b;
|
|
40
|
+
var shadow = false;
|
|
41
|
+
if (b.length < a.length) {
|
|
42
|
+
first = b;
|
|
43
|
+
second = a;
|
|
44
|
+
shadow = true;
|
|
45
|
+
}
|
|
46
|
+
for (var i = 0; i < first.length; i++) {
|
|
47
|
+
if (first[i].equals(second[i]) === false) {
|
|
48
|
+
return KeySequence.CompareResult.NONE;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
if (first.length < second.length) {
|
|
52
|
+
if (shadow === false) {
|
|
53
|
+
return KeySequence.CompareResult.PARTIAL;
|
|
54
|
+
}
|
|
55
|
+
return KeySequence.CompareResult.SHADOW;
|
|
56
|
+
}
|
|
57
|
+
return KeySequence.CompareResult.FULL;
|
|
58
|
+
}
|
|
59
|
+
_KeySequence.compare = compare;
|
|
60
|
+
function parse(keybinding) {
|
|
61
|
+
var keyCodes = [];
|
|
62
|
+
var rawKeyCodes = keybinding.trim().split(/\s+/g);
|
|
63
|
+
var _iterator2 = _createForOfIteratorHelper(rawKeyCodes),
|
|
64
|
+
_step2;
|
|
65
|
+
try {
|
|
66
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
67
|
+
var rawKeyCode = _step2.value;
|
|
68
|
+
var _keyCode = KeyCode.parse(rawKeyCode);
|
|
69
|
+
if (_keyCode !== undefined) {
|
|
70
|
+
keyCodes.push(_keyCode);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
} catch (err) {
|
|
74
|
+
_iterator2.e(err);
|
|
75
|
+
} finally {
|
|
76
|
+
_iterator2.f();
|
|
77
|
+
}
|
|
78
|
+
return keyCodes;
|
|
79
|
+
}
|
|
80
|
+
_KeySequence.parse = parse;
|
|
81
|
+
})(KeySequence || (KeySequence = {}));
|
|
82
|
+
/**
|
|
83
|
+
* The key sequence for this binding. This key sequence should consist of one or more key strokes. Key strokes
|
|
84
|
+
* consist of one or more keys held down at the same time. This should be zero or more modifier keys, and zero or one other key.
|
|
85
|
+
* Since `M2+M3+<Key>` (Alt+Shift+<Key>) is reserved on MacOS X for writing special characters, such bindings are commonly
|
|
86
|
+
* undefined for platform MacOS X and redefined as `M1+M3+<Key>`. The rule applies on the `M3+M2+<Key>` sequence.
|
|
87
|
+
*/
|
|
88
|
+
/**
|
|
89
|
+
* Representation of a pressed key combined with key modifiers.
|
|
90
|
+
*/
|
|
91
|
+
export var KeyCode = /*#__PURE__*/function () {
|
|
92
|
+
function KeyCode(schema) {
|
|
93
|
+
_classCallCheck(this, KeyCode);
|
|
94
|
+
var key = schema.key;
|
|
95
|
+
if (key) {
|
|
96
|
+
if (key.code && key.keyCode && key.easyString) {
|
|
97
|
+
this.key = key;
|
|
98
|
+
} else if (key.code) {
|
|
99
|
+
this.key = Key.getKey(key.code);
|
|
100
|
+
} else if (key.keyCode) {
|
|
101
|
+
this.key = Key.getKey(key.keyCode);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
this.ctrl = !!schema.ctrl;
|
|
105
|
+
this.shift = !!schema.shift;
|
|
106
|
+
this.alt = !!schema.alt;
|
|
107
|
+
this.meta = !!schema.meta;
|
|
108
|
+
this.character = schema.character;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Return true if this KeyCode only contains modifiers.
|
|
113
|
+
*/
|
|
114
|
+
_createClass(KeyCode, [{
|
|
115
|
+
key: "isModifierOnly",
|
|
116
|
+
value: function isModifierOnly() {
|
|
117
|
+
return this.key === undefined;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Return true if the given KeyCode is equal to this one.
|
|
122
|
+
*/
|
|
123
|
+
}, {
|
|
124
|
+
key: "equals",
|
|
125
|
+
value: function equals(other) {
|
|
126
|
+
if (this.key && (!other.key || this.key.code !== other.key.code) || !this.key && other.key) {
|
|
127
|
+
return false;
|
|
128
|
+
}
|
|
129
|
+
return this.ctrl === other.ctrl && this.alt === other.alt && this.shift === other.shift && this.meta === other.meta;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/*
|
|
133
|
+
* Return a keybinding string compatible with the `Keybinding.keybinding` property.
|
|
134
|
+
*/
|
|
135
|
+
}, {
|
|
136
|
+
key: "toString",
|
|
137
|
+
value: function toString() {
|
|
138
|
+
var result = [];
|
|
139
|
+
if (this.meta) {
|
|
140
|
+
result.push(SpecialCases.META);
|
|
141
|
+
}
|
|
142
|
+
if (this.shift) {
|
|
143
|
+
result.push(Key.SHIFT_LEFT.easyString);
|
|
144
|
+
}
|
|
145
|
+
if (this.alt) {
|
|
146
|
+
result.push(Key.ALT_LEFT.easyString);
|
|
147
|
+
}
|
|
148
|
+
if (this.ctrl) {
|
|
149
|
+
result.push(Key.CONTROL_LEFT.easyString);
|
|
150
|
+
}
|
|
151
|
+
if (this.key) {
|
|
152
|
+
result.push(this.key.easyString);
|
|
153
|
+
}
|
|
154
|
+
return result.join('+');
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Create a KeyCode from one of several input types.
|
|
159
|
+
*/
|
|
160
|
+
}], [{
|
|
161
|
+
key: "createKeyCode",
|
|
162
|
+
value: function createKeyCode(input) {
|
|
163
|
+
var eventDispatch = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'code';
|
|
164
|
+
if (typeof input === 'string') {
|
|
165
|
+
var parts = input.split('+');
|
|
166
|
+
if (!KeyCode.isModifierString(parts[0])) {
|
|
167
|
+
return KeyCode.createKeyCode({
|
|
168
|
+
first: Key.getKey(parts[0]),
|
|
169
|
+
modifiers: parts.slice(1)
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
return KeyCode.createKeyCode({
|
|
173
|
+
modifiers: parts
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
if (KeyCode.isKeyboardEvent(input)) {
|
|
177
|
+
var key = KeyCode.toKey(input, eventDispatch);
|
|
178
|
+
return new KeyCode({
|
|
179
|
+
key: Key.isModifier(key.code) ? undefined : key,
|
|
180
|
+
meta: isOSX && input.metaKey,
|
|
181
|
+
shift: input.shiftKey,
|
|
182
|
+
alt: input.altKey,
|
|
183
|
+
ctrl: input.ctrlKey,
|
|
184
|
+
character: KeyCode.toCharacter(input)
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
if (input.first || input.modifiers) {
|
|
188
|
+
var keystroke = input;
|
|
189
|
+
var schema = {
|
|
190
|
+
key: keystroke.first
|
|
191
|
+
};
|
|
192
|
+
if (keystroke.modifiers) {
|
|
193
|
+
if (isOSX) {
|
|
194
|
+
schema.meta = keystroke.modifiers.some(function (mod) {
|
|
195
|
+
return mod === KeyModifier.CtrlCmd;
|
|
196
|
+
});
|
|
197
|
+
schema.ctrl = keystroke.modifiers.some(function (mod) {
|
|
198
|
+
return mod === KeyModifier.MacCtrl;
|
|
199
|
+
});
|
|
200
|
+
} else {
|
|
201
|
+
schema.meta = false;
|
|
202
|
+
schema.ctrl = keystroke.modifiers.some(function (mod) {
|
|
203
|
+
return mod === KeyModifier.CtrlCmd;
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
schema.shift = keystroke.modifiers.some(function (mod) {
|
|
207
|
+
return mod === KeyModifier.Shift;
|
|
208
|
+
});
|
|
209
|
+
schema.alt = keystroke.modifiers.some(function (mod) {
|
|
210
|
+
return mod === KeyModifier.Alt;
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
return new KeyCode(schema);
|
|
214
|
+
}
|
|
215
|
+
return new KeyCode(input);
|
|
216
|
+
}
|
|
217
|
+
}, {
|
|
218
|
+
key: "resetKeyBindings",
|
|
219
|
+
value: /* Reset the key hashmap, this is for testing purposes. */
|
|
220
|
+
function resetKeyBindings() {
|
|
221
|
+
KeyCode.keybindings = {};
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Parses a string and returns a KeyCode object.
|
|
226
|
+
* @param keybinding String representation of a keybinding
|
|
227
|
+
*/
|
|
228
|
+
}, {
|
|
229
|
+
key: "parse",
|
|
230
|
+
value: function parse(keybinding) {
|
|
231
|
+
if (KeyCode.keybindings[keybinding]) {
|
|
232
|
+
return KeyCode.keybindings[keybinding];
|
|
233
|
+
}
|
|
234
|
+
var schema = {};
|
|
235
|
+
var keys = [];
|
|
236
|
+
var currentKey = '';
|
|
237
|
+
var _iterator = _createForOfIteratorHelper(keybinding.trim().toLowerCase()),
|
|
238
|
+
_step;
|
|
239
|
+
try {
|
|
240
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
241
|
+
var character = _step.value;
|
|
242
|
+
if (currentKey && (character === '-' || character === '+')) {
|
|
243
|
+
keys.push(currentKey);
|
|
244
|
+
currentKey = '';
|
|
245
|
+
} else if (character !== '+') {
|
|
246
|
+
currentKey += character;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
} catch (err) {
|
|
250
|
+
_iterator.e(err);
|
|
251
|
+
} finally {
|
|
252
|
+
_iterator.f();
|
|
253
|
+
}
|
|
254
|
+
if (currentKey) {
|
|
255
|
+
keys.push(currentKey);
|
|
256
|
+
}
|
|
257
|
+
/* If duplicates i.e ctrl+ctrl+a or alt+alt+b or b+alt+b it is invalid */
|
|
258
|
+
if (keys.length !== new Set(keys).size) {
|
|
259
|
+
throw new Error("Can't parse keybinding ".concat(keybinding, " Duplicate modifiers"));
|
|
260
|
+
}
|
|
261
|
+
for (var _i = 0, _keys = keys; _i < _keys.length; _i++) {
|
|
262
|
+
var keyString = _keys[_i];
|
|
263
|
+
if (SPECIAL_ALIASES[keyString] !== undefined) {
|
|
264
|
+
keyString = SPECIAL_ALIASES[keyString];
|
|
265
|
+
}
|
|
266
|
+
var key = EASY_TO_KEY[keyString];
|
|
267
|
+
|
|
268
|
+
/* meta only works on macOS */
|
|
269
|
+
if (keyString === SpecialCases.META) {
|
|
270
|
+
if (isOSX) {
|
|
271
|
+
schema.meta = true;
|
|
272
|
+
} else {
|
|
273
|
+
throw new Error("Can't parse keybinding ".concat(keybinding, " meta is for OSX only"));
|
|
274
|
+
}
|
|
275
|
+
/* ctrlcmd for M1 keybindings that work on both macOS and other platforms */
|
|
276
|
+
} else if (keyString === SpecialCases.CTRLCMD) {
|
|
277
|
+
if (isOSX) {
|
|
278
|
+
schema.meta = true;
|
|
279
|
+
} else {
|
|
280
|
+
schema.ctrl = true;
|
|
281
|
+
}
|
|
282
|
+
} else if (Key.isKey(key)) {
|
|
283
|
+
if (Key.isModifier(key.code)) {
|
|
284
|
+
if (key.code === Key.CONTROL_LEFT.code || key.code === Key.CONTROL_RIGHT.code) {
|
|
285
|
+
schema.ctrl = true;
|
|
286
|
+
} else if (key.code === Key.SHIFT_LEFT.code || key.code === Key.SHIFT_RIGHT.code) {
|
|
287
|
+
schema.shift = true;
|
|
288
|
+
} else if (key.code === Key.ALT_LEFT.code || key.code === Key.ALT_RIGHT.code) {
|
|
289
|
+
schema.alt = true;
|
|
290
|
+
}
|
|
291
|
+
} else {
|
|
292
|
+
schema.key = key;
|
|
293
|
+
}
|
|
294
|
+
} else {
|
|
295
|
+
throw new Error("Unrecognized key '".concat(keyString, "' in '").concat(keybinding, "'"));
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
KeyCode.keybindings[keybinding] = new KeyCode(schema);
|
|
299
|
+
return KeyCode.keybindings[keybinding];
|
|
300
|
+
}
|
|
301
|
+
}]);
|
|
302
|
+
return KeyCode;
|
|
303
|
+
}();
|
|
304
|
+
KeyCode.keybindings = {};
|
|
305
|
+
(function (_KeyCode2) {
|
|
306
|
+
/**
|
|
307
|
+
* Determines a `true` of `false` value for the key code argument.
|
|
308
|
+
*/
|
|
309
|
+
|
|
310
|
+
/*
|
|
311
|
+
* Return true if the string is a modifier M1 to M4.
|
|
312
|
+
*/
|
|
313
|
+
function isModifierString(key) {
|
|
314
|
+
return key === KeyModifier.CtrlCmd || key === KeyModifier.Shift || key === KeyModifier.Alt || key === KeyModifier.MacCtrl;
|
|
315
|
+
}
|
|
316
|
+
_KeyCode2.isModifierString = isModifierString;
|
|
317
|
+
function isKeyboardEvent(event) {
|
|
318
|
+
if (typeof KeyboardEvent === 'undefined') {
|
|
319
|
+
// This can happen in tests
|
|
320
|
+
return false;
|
|
321
|
+
}
|
|
322
|
+
if (event instanceof KeyboardEvent) {
|
|
323
|
+
return true;
|
|
324
|
+
}
|
|
325
|
+
var type = event.type;
|
|
326
|
+
if (type) {
|
|
327
|
+
return type === 'keypress' || type === 'keydown' || type === 'keyup';
|
|
328
|
+
}
|
|
329
|
+
return false;
|
|
330
|
+
}
|
|
331
|
+
_KeyCode2.isKeyboardEvent = isKeyboardEvent;
|
|
332
|
+
function toKey(event) {
|
|
333
|
+
var dispatch = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'code';
|
|
334
|
+
var code = event.code;
|
|
335
|
+
if (code && dispatch === 'code') {
|
|
336
|
+
if (isOSX) {
|
|
337
|
+
// https://github.com/eclipse-mana/mana/issues/4986
|
|
338
|
+
var char = event.key;
|
|
339
|
+
if (code === 'IntlBackslash' && (char === '`' || char === '~')) {
|
|
340
|
+
return Key.BACKQUOTE;
|
|
341
|
+
}
|
|
342
|
+
if (code === 'Backquote' && (char === '§' || char === '±')) {
|
|
343
|
+
return Key.INTL_BACKSLASH;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
// https://github.com/eclipse-mana/mana/issues/7315
|
|
348
|
+
if (code.startsWith('Numpad') && event.key && event.key.length > 1) {
|
|
349
|
+
var k = Key.getKey(event.key);
|
|
350
|
+
if (k) {
|
|
351
|
+
return k;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
var key = Key.getKey(code);
|
|
355
|
+
if (key) {
|
|
356
|
+
return key;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
// tslint:disable-next-line: deprecation
|
|
361
|
+
var keyCode = event.keyCode;
|
|
362
|
+
if (keyCode) {
|
|
363
|
+
var _key = Key.getKey(keyCode);
|
|
364
|
+
if (_key) {
|
|
365
|
+
return _key;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
var _ref = event,
|
|
369
|
+
keyIdentifier = _ref.keyIdentifier;
|
|
370
|
+
if (keyIdentifier) {
|
|
371
|
+
var _key2 = Key.getKey(keyIdentifier);
|
|
372
|
+
if (_key2) {
|
|
373
|
+
return _key2;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
throw new Error("Cannot get key code from the keyboard event: ".concat(event, "."));
|
|
377
|
+
}
|
|
378
|
+
_KeyCode2.toKey = toKey;
|
|
379
|
+
function toCharacter(event) {
|
|
380
|
+
var key = event.key;
|
|
381
|
+
// Use the key property if it contains exactly one unicode character
|
|
382
|
+
if (key && Array.from(key).length === 1) {
|
|
383
|
+
return key;
|
|
384
|
+
}
|
|
385
|
+
var charCode = event.charCode;
|
|
386
|
+
// Use the charCode property if it does not correspond to a unicode control character
|
|
387
|
+
if (charCode && charCode > 0x1f && !(charCode >= 0x80 && charCode <= 0x9f)) {
|
|
388
|
+
return String.fromCharCode(charCode);
|
|
389
|
+
}
|
|
390
|
+
return undefined;
|
|
391
|
+
}
|
|
392
|
+
_KeyCode2.toCharacter = toCharacter;
|
|
393
|
+
})(KeyCode || (KeyCode = {}));
|
|
394
|
+
export var KeyModifier = /*#__PURE__*/function (KeyModifier) {
|
|
395
|
+
/**
|
|
396
|
+
* M1 is the COMMAND key on MacOS X, and the CTRL key on most other platforms.
|
|
397
|
+
*/
|
|
398
|
+
KeyModifier["CtrlCmd"] = "M1";
|
|
399
|
+
/**
|
|
400
|
+
* M2 is the SHIFT key.
|
|
401
|
+
*/
|
|
402
|
+
KeyModifier["Shift"] = "M2";
|
|
403
|
+
/**
|
|
404
|
+
* M3 is the Option key on MacOS X, and the ALT key on most other platforms.
|
|
405
|
+
*/
|
|
406
|
+
KeyModifier["Alt"] = "M3";
|
|
407
|
+
/**
|
|
408
|
+
* M4 is the CTRL key on MacOS X, and is undefined on other platforms.
|
|
409
|
+
*/
|
|
410
|
+
KeyModifier["MacCtrl"] = "M4";
|
|
411
|
+
return KeyModifier;
|
|
412
|
+
}({});
|
|
413
|
+
(function (_KeyModifier) {
|
|
414
|
+
var CTRL = _KeyModifier.CTRL = isOSX ? KeyModifier.MacCtrl : KeyModifier.CtrlCmd;
|
|
415
|
+
var SHIFT = _KeyModifier.SHIFT = KeyModifier.Shift;
|
|
416
|
+
function isModifier(key) {
|
|
417
|
+
if (key) {
|
|
418
|
+
switch (key) {
|
|
419
|
+
case 'M1': // Fall through.
|
|
420
|
+
case 'M2': // Fall through.
|
|
421
|
+
case 'M3': // Fall through.
|
|
422
|
+
case 'M4':
|
|
423
|
+
return true;
|
|
424
|
+
default:
|
|
425
|
+
return false;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
return false;
|
|
429
|
+
}
|
|
430
|
+
_KeyModifier.isModifier = isModifier;
|
|
431
|
+
})(KeyModifier || (KeyModifier = {}));
|
|
432
|
+
var CODE_TO_KEY = {};
|
|
433
|
+
var KEY_CODE_TO_KEY = {};
|
|
434
|
+
var EASY_TO_KEY = {}; // From 'ctrl' to Key structure
|
|
435
|
+
var MODIFIERS = [];
|
|
436
|
+
var SPECIAL_ALIASES = {
|
|
437
|
+
option: 'alt',
|
|
438
|
+
command: 'meta',
|
|
439
|
+
cmd: 'meta',
|
|
440
|
+
return: 'enter',
|
|
441
|
+
esc: 'escape',
|
|
442
|
+
mod: 'ctrl',
|
|
443
|
+
ins: 'insert',
|
|
444
|
+
del: 'delete',
|
|
445
|
+
control: 'ctrl'
|
|
446
|
+
};
|
|
447
|
+
export var SpecialCases;
|
|
448
|
+
(function (_SpecialCases) {
|
|
449
|
+
var META = _SpecialCases.META = 'meta';
|
|
450
|
+
var CTRLCMD = _SpecialCases.CTRLCMD = 'ctrlcmd';
|
|
451
|
+
})(SpecialCases || (SpecialCases = {}));
|
|
452
|
+
export var Key;
|
|
453
|
+
(function (_Key) {
|
|
454
|
+
function isKey(arg) {
|
|
455
|
+
return _typeof(arg) === 'object' && 'code' in arg && 'keyCode' in arg;
|
|
456
|
+
}
|
|
457
|
+
_Key.isKey = isKey;
|
|
458
|
+
function getKey(arg) {
|
|
459
|
+
if (typeof arg === 'number') {
|
|
460
|
+
return KEY_CODE_TO_KEY[arg];
|
|
461
|
+
}
|
|
462
|
+
return CODE_TO_KEY[arg];
|
|
463
|
+
}
|
|
464
|
+
_Key.getKey = getKey;
|
|
465
|
+
function isModifier(arg) {
|
|
466
|
+
if (typeof arg === 'number') {
|
|
467
|
+
return MODIFIERS.find(function (key) {
|
|
468
|
+
return key.keyCode === arg;
|
|
469
|
+
}) !== undefined;
|
|
470
|
+
}
|
|
471
|
+
return MODIFIERS.find(function (key) {
|
|
472
|
+
return key.code === arg;
|
|
473
|
+
}) !== undefined;
|
|
474
|
+
}
|
|
475
|
+
_Key.isModifier = isModifier;
|
|
476
|
+
function equals(key, keyCode) {
|
|
477
|
+
return !!keyCode.key && key.keyCode === keyCode.key.keyCode;
|
|
478
|
+
}
|
|
479
|
+
_Key.equals = equals;
|
|
480
|
+
var BACKSPACE = _Key.BACKSPACE = {
|
|
481
|
+
code: 'Backspace',
|
|
482
|
+
keyCode: 8,
|
|
483
|
+
easyString: 'backspace'
|
|
484
|
+
};
|
|
485
|
+
var TAB = _Key.TAB = {
|
|
486
|
+
code: 'Tab',
|
|
487
|
+
keyCode: 9,
|
|
488
|
+
easyString: 'tab'
|
|
489
|
+
};
|
|
490
|
+
var ENTER = _Key.ENTER = {
|
|
491
|
+
code: 'Enter',
|
|
492
|
+
keyCode: 13,
|
|
493
|
+
easyString: 'enter'
|
|
494
|
+
};
|
|
495
|
+
var ESCAPE = _Key.ESCAPE = {
|
|
496
|
+
code: 'Escape',
|
|
497
|
+
keyCode: 27,
|
|
498
|
+
easyString: 'escape'
|
|
499
|
+
};
|
|
500
|
+
var SPACE = _Key.SPACE = {
|
|
501
|
+
code: 'Space',
|
|
502
|
+
keyCode: 32,
|
|
503
|
+
easyString: 'space'
|
|
504
|
+
};
|
|
505
|
+
var PAGE_UP = _Key.PAGE_UP = {
|
|
506
|
+
code: 'PageUp',
|
|
507
|
+
keyCode: 33,
|
|
508
|
+
easyString: 'pageup'
|
|
509
|
+
};
|
|
510
|
+
var PAGE_DOWN = _Key.PAGE_DOWN = {
|
|
511
|
+
code: 'PageDown',
|
|
512
|
+
keyCode: 34,
|
|
513
|
+
easyString: 'pagedown'
|
|
514
|
+
};
|
|
515
|
+
var END = _Key.END = {
|
|
516
|
+
code: 'End',
|
|
517
|
+
keyCode: 35,
|
|
518
|
+
easyString: 'end'
|
|
519
|
+
};
|
|
520
|
+
var HOME = _Key.HOME = {
|
|
521
|
+
code: 'Home',
|
|
522
|
+
keyCode: 36,
|
|
523
|
+
easyString: 'home'
|
|
524
|
+
};
|
|
525
|
+
var ARROW_LEFT = _Key.ARROW_LEFT = {
|
|
526
|
+
code: 'ArrowLeft',
|
|
527
|
+
keyCode: 37,
|
|
528
|
+
easyString: 'left'
|
|
529
|
+
};
|
|
530
|
+
var ARROW_UP = _Key.ARROW_UP = {
|
|
531
|
+
code: 'ArrowUp',
|
|
532
|
+
keyCode: 38,
|
|
533
|
+
easyString: 'up'
|
|
534
|
+
};
|
|
535
|
+
var ARROW_RIGHT = _Key.ARROW_RIGHT = {
|
|
536
|
+
code: 'ArrowRight',
|
|
537
|
+
keyCode: 39,
|
|
538
|
+
easyString: 'right'
|
|
539
|
+
};
|
|
540
|
+
var ARROW_DOWN = _Key.ARROW_DOWN = {
|
|
541
|
+
code: 'ArrowDown',
|
|
542
|
+
keyCode: 40,
|
|
543
|
+
easyString: 'down'
|
|
544
|
+
};
|
|
545
|
+
var INSERT = _Key.INSERT = {
|
|
546
|
+
code: 'Insert',
|
|
547
|
+
keyCode: 45,
|
|
548
|
+
easyString: 'insert'
|
|
549
|
+
};
|
|
550
|
+
var DELETE = _Key.DELETE = {
|
|
551
|
+
code: 'Delete',
|
|
552
|
+
keyCode: 46,
|
|
553
|
+
easyString: 'delete'
|
|
554
|
+
};
|
|
555
|
+
var SHIFT_LEFT = _Key.SHIFT_LEFT = {
|
|
556
|
+
code: 'ShiftLeft',
|
|
557
|
+
keyCode: 16,
|
|
558
|
+
easyString: 'shift'
|
|
559
|
+
};
|
|
560
|
+
var SHIFT_RIGHT = _Key.SHIFT_RIGHT = {
|
|
561
|
+
code: 'ShiftRight',
|
|
562
|
+
keyCode: 16,
|
|
563
|
+
easyString: 'shift'
|
|
564
|
+
};
|
|
565
|
+
var CONTROL_LEFT = _Key.CONTROL_LEFT = {
|
|
566
|
+
code: 'ControlLeft',
|
|
567
|
+
keyCode: 17,
|
|
568
|
+
easyString: 'ctrl'
|
|
569
|
+
};
|
|
570
|
+
var CONTROL_RIGHT = _Key.CONTROL_RIGHT = {
|
|
571
|
+
code: 'ControlRight',
|
|
572
|
+
keyCode: 17,
|
|
573
|
+
easyString: 'ctrl'
|
|
574
|
+
};
|
|
575
|
+
var ALT_LEFT = _Key.ALT_LEFT = {
|
|
576
|
+
code: 'AltLeft',
|
|
577
|
+
keyCode: 18,
|
|
578
|
+
easyString: 'alt'
|
|
579
|
+
};
|
|
580
|
+
var ALT_RIGHT = _Key.ALT_RIGHT = {
|
|
581
|
+
code: 'AltRight',
|
|
582
|
+
keyCode: 18,
|
|
583
|
+
easyString: 'alt'
|
|
584
|
+
};
|
|
585
|
+
var CAPS_LOCK = _Key.CAPS_LOCK = {
|
|
586
|
+
code: 'CapsLock',
|
|
587
|
+
keyCode: 20,
|
|
588
|
+
easyString: 'capslock'
|
|
589
|
+
};
|
|
590
|
+
var OS_LEFT = _Key.OS_LEFT = {
|
|
591
|
+
code: 'OSLeft',
|
|
592
|
+
keyCode: 91,
|
|
593
|
+
easyString: 'super'
|
|
594
|
+
};
|
|
595
|
+
var OS_RIGHT = _Key.OS_RIGHT = {
|
|
596
|
+
code: 'OSRight',
|
|
597
|
+
keyCode: 92,
|
|
598
|
+
easyString: 'super'
|
|
599
|
+
};
|
|
600
|
+
var DIGIT0 = _Key.DIGIT0 = {
|
|
601
|
+
code: 'Digit0',
|
|
602
|
+
keyCode: 48,
|
|
603
|
+
easyString: '0'
|
|
604
|
+
};
|
|
605
|
+
var DIGIT1 = _Key.DIGIT1 = {
|
|
606
|
+
code: 'Digit1',
|
|
607
|
+
keyCode: 49,
|
|
608
|
+
easyString: '1'
|
|
609
|
+
};
|
|
610
|
+
var DIGIT2 = _Key.DIGIT2 = {
|
|
611
|
+
code: 'Digit2',
|
|
612
|
+
keyCode: 50,
|
|
613
|
+
easyString: '2'
|
|
614
|
+
};
|
|
615
|
+
var DIGIT3 = _Key.DIGIT3 = {
|
|
616
|
+
code: 'Digit3',
|
|
617
|
+
keyCode: 51,
|
|
618
|
+
easyString: '3'
|
|
619
|
+
};
|
|
620
|
+
var DIGIT4 = _Key.DIGIT4 = {
|
|
621
|
+
code: 'Digit4',
|
|
622
|
+
keyCode: 52,
|
|
623
|
+
easyString: '4'
|
|
624
|
+
};
|
|
625
|
+
var DIGIT5 = _Key.DIGIT5 = {
|
|
626
|
+
code: 'Digit5',
|
|
627
|
+
keyCode: 53,
|
|
628
|
+
easyString: '5'
|
|
629
|
+
};
|
|
630
|
+
var DIGIT6 = _Key.DIGIT6 = {
|
|
631
|
+
code: 'Digit6',
|
|
632
|
+
keyCode: 54,
|
|
633
|
+
easyString: '6'
|
|
634
|
+
};
|
|
635
|
+
var DIGIT7 = _Key.DIGIT7 = {
|
|
636
|
+
code: 'Digit7',
|
|
637
|
+
keyCode: 55,
|
|
638
|
+
easyString: '7'
|
|
639
|
+
};
|
|
640
|
+
var DIGIT8 = _Key.DIGIT8 = {
|
|
641
|
+
code: 'Digit8',
|
|
642
|
+
keyCode: 56,
|
|
643
|
+
easyString: '8'
|
|
644
|
+
};
|
|
645
|
+
var DIGIT9 = _Key.DIGIT9 = {
|
|
646
|
+
code: 'Digit9',
|
|
647
|
+
keyCode: 57,
|
|
648
|
+
easyString: '9'
|
|
649
|
+
};
|
|
650
|
+
var KEY_A = _Key.KEY_A = {
|
|
651
|
+
code: 'KeyA',
|
|
652
|
+
keyCode: 65,
|
|
653
|
+
easyString: 'a'
|
|
654
|
+
};
|
|
655
|
+
var KEY_B = _Key.KEY_B = {
|
|
656
|
+
code: 'KeyB',
|
|
657
|
+
keyCode: 66,
|
|
658
|
+
easyString: 'b'
|
|
659
|
+
};
|
|
660
|
+
var KEY_C = _Key.KEY_C = {
|
|
661
|
+
code: 'KeyC',
|
|
662
|
+
keyCode: 67,
|
|
663
|
+
easyString: 'c'
|
|
664
|
+
};
|
|
665
|
+
var KEY_D = _Key.KEY_D = {
|
|
666
|
+
code: 'KeyD',
|
|
667
|
+
keyCode: 68,
|
|
668
|
+
easyString: 'd'
|
|
669
|
+
};
|
|
670
|
+
var KEY_E = _Key.KEY_E = {
|
|
671
|
+
code: 'KeyE',
|
|
672
|
+
keyCode: 69,
|
|
673
|
+
easyString: 'e'
|
|
674
|
+
};
|
|
675
|
+
var KEY_F = _Key.KEY_F = {
|
|
676
|
+
code: 'KeyF',
|
|
677
|
+
keyCode: 70,
|
|
678
|
+
easyString: 'f'
|
|
679
|
+
};
|
|
680
|
+
var KEY_G = _Key.KEY_G = {
|
|
681
|
+
code: 'KeyG',
|
|
682
|
+
keyCode: 71,
|
|
683
|
+
easyString: 'g'
|
|
684
|
+
};
|
|
685
|
+
var KEY_H = _Key.KEY_H = {
|
|
686
|
+
code: 'KeyH',
|
|
687
|
+
keyCode: 72,
|
|
688
|
+
easyString: 'h'
|
|
689
|
+
};
|
|
690
|
+
var KEY_I = _Key.KEY_I = {
|
|
691
|
+
code: 'KeyI',
|
|
692
|
+
keyCode: 73,
|
|
693
|
+
easyString: 'i'
|
|
694
|
+
};
|
|
695
|
+
var KEY_J = _Key.KEY_J = {
|
|
696
|
+
code: 'KeyJ',
|
|
697
|
+
keyCode: 74,
|
|
698
|
+
easyString: 'j'
|
|
699
|
+
};
|
|
700
|
+
var KEY_K = _Key.KEY_K = {
|
|
701
|
+
code: 'KeyK',
|
|
702
|
+
keyCode: 75,
|
|
703
|
+
easyString: 'k'
|
|
704
|
+
};
|
|
705
|
+
var KEY_L = _Key.KEY_L = {
|
|
706
|
+
code: 'KeyL',
|
|
707
|
+
keyCode: 76,
|
|
708
|
+
easyString: 'l'
|
|
709
|
+
};
|
|
710
|
+
var KEY_M = _Key.KEY_M = {
|
|
711
|
+
code: 'KeyM',
|
|
712
|
+
keyCode: 77,
|
|
713
|
+
easyString: 'm'
|
|
714
|
+
};
|
|
715
|
+
var KEY_N = _Key.KEY_N = {
|
|
716
|
+
code: 'KeyN',
|
|
717
|
+
keyCode: 78,
|
|
718
|
+
easyString: 'n'
|
|
719
|
+
};
|
|
720
|
+
var KEY_O = _Key.KEY_O = {
|
|
721
|
+
code: 'KeyO',
|
|
722
|
+
keyCode: 79,
|
|
723
|
+
easyString: 'o'
|
|
724
|
+
};
|
|
725
|
+
var KEY_P = _Key.KEY_P = {
|
|
726
|
+
code: 'KeyP',
|
|
727
|
+
keyCode: 80,
|
|
728
|
+
easyString: 'p'
|
|
729
|
+
};
|
|
730
|
+
var KEY_Q = _Key.KEY_Q = {
|
|
731
|
+
code: 'KeyQ',
|
|
732
|
+
keyCode: 81,
|
|
733
|
+
easyString: 'q'
|
|
734
|
+
};
|
|
735
|
+
var KEY_R = _Key.KEY_R = {
|
|
736
|
+
code: 'KeyR',
|
|
737
|
+
keyCode: 82,
|
|
738
|
+
easyString: 'r'
|
|
739
|
+
};
|
|
740
|
+
var KEY_S = _Key.KEY_S = {
|
|
741
|
+
code: 'KeyS',
|
|
742
|
+
keyCode: 83,
|
|
743
|
+
easyString: 's'
|
|
744
|
+
};
|
|
745
|
+
var KEY_T = _Key.KEY_T = {
|
|
746
|
+
code: 'KeyT',
|
|
747
|
+
keyCode: 84,
|
|
748
|
+
easyString: 't'
|
|
749
|
+
};
|
|
750
|
+
var KEY_U = _Key.KEY_U = {
|
|
751
|
+
code: 'KeyU',
|
|
752
|
+
keyCode: 85,
|
|
753
|
+
easyString: 'u'
|
|
754
|
+
};
|
|
755
|
+
var KEY_V = _Key.KEY_V = {
|
|
756
|
+
code: 'KeyV',
|
|
757
|
+
keyCode: 86,
|
|
758
|
+
easyString: 'v'
|
|
759
|
+
};
|
|
760
|
+
var KEY_W = _Key.KEY_W = {
|
|
761
|
+
code: 'KeyW',
|
|
762
|
+
keyCode: 87,
|
|
763
|
+
easyString: 'w'
|
|
764
|
+
};
|
|
765
|
+
var KEY_X = _Key.KEY_X = {
|
|
766
|
+
code: 'KeyX',
|
|
767
|
+
keyCode: 88,
|
|
768
|
+
easyString: 'x'
|
|
769
|
+
};
|
|
770
|
+
var KEY_Y = _Key.KEY_Y = {
|
|
771
|
+
code: 'KeyY',
|
|
772
|
+
keyCode: 89,
|
|
773
|
+
easyString: 'y'
|
|
774
|
+
};
|
|
775
|
+
var KEY_Z = _Key.KEY_Z = {
|
|
776
|
+
code: 'KeyZ',
|
|
777
|
+
keyCode: 90,
|
|
778
|
+
easyString: 'z'
|
|
779
|
+
};
|
|
780
|
+
var MULTIPLY = _Key.MULTIPLY = {
|
|
781
|
+
code: 'NumpadMultiply',
|
|
782
|
+
keyCode: 106,
|
|
783
|
+
easyString: 'multiply'
|
|
784
|
+
};
|
|
785
|
+
var ADD = _Key.ADD = {
|
|
786
|
+
code: 'NumpadAdd',
|
|
787
|
+
keyCode: 107,
|
|
788
|
+
easyString: 'add'
|
|
789
|
+
};
|
|
790
|
+
var DECIMAL = _Key.DECIMAL = {
|
|
791
|
+
code: 'NumpadDecimal',
|
|
792
|
+
keyCode: 108,
|
|
793
|
+
easyString: 'decimal'
|
|
794
|
+
};
|
|
795
|
+
var SUBTRACT = _Key.SUBTRACT = {
|
|
796
|
+
code: 'NumpadSubtract',
|
|
797
|
+
keyCode: 109,
|
|
798
|
+
easyString: 'subtract'
|
|
799
|
+
};
|
|
800
|
+
var DIVIDE = _Key.DIVIDE = {
|
|
801
|
+
code: 'NumpadDivide',
|
|
802
|
+
keyCode: 111,
|
|
803
|
+
easyString: 'divide'
|
|
804
|
+
};
|
|
805
|
+
var F1 = _Key.F1 = {
|
|
806
|
+
code: 'F1',
|
|
807
|
+
keyCode: 112,
|
|
808
|
+
easyString: 'f1'
|
|
809
|
+
};
|
|
810
|
+
var F2 = _Key.F2 = {
|
|
811
|
+
code: 'F2',
|
|
812
|
+
keyCode: 113,
|
|
813
|
+
easyString: 'f2'
|
|
814
|
+
};
|
|
815
|
+
var F3 = _Key.F3 = {
|
|
816
|
+
code: 'F3',
|
|
817
|
+
keyCode: 114,
|
|
818
|
+
easyString: 'f3'
|
|
819
|
+
};
|
|
820
|
+
var F4 = _Key.F4 = {
|
|
821
|
+
code: 'F4',
|
|
822
|
+
keyCode: 115,
|
|
823
|
+
easyString: 'f4'
|
|
824
|
+
};
|
|
825
|
+
var F5 = _Key.F5 = {
|
|
826
|
+
code: 'F5',
|
|
827
|
+
keyCode: 116,
|
|
828
|
+
easyString: 'f5'
|
|
829
|
+
};
|
|
830
|
+
var F6 = _Key.F6 = {
|
|
831
|
+
code: 'F6',
|
|
832
|
+
keyCode: 117,
|
|
833
|
+
easyString: 'f6'
|
|
834
|
+
};
|
|
835
|
+
var F7 = _Key.F7 = {
|
|
836
|
+
code: 'F7',
|
|
837
|
+
keyCode: 118,
|
|
838
|
+
easyString: 'f7'
|
|
839
|
+
};
|
|
840
|
+
var F8 = _Key.F8 = {
|
|
841
|
+
code: 'F8',
|
|
842
|
+
keyCode: 119,
|
|
843
|
+
easyString: 'f8'
|
|
844
|
+
};
|
|
845
|
+
var F9 = _Key.F9 = {
|
|
846
|
+
code: 'F9',
|
|
847
|
+
keyCode: 120,
|
|
848
|
+
easyString: 'f9'
|
|
849
|
+
};
|
|
850
|
+
var F10 = _Key.F10 = {
|
|
851
|
+
code: 'F10',
|
|
852
|
+
keyCode: 121,
|
|
853
|
+
easyString: 'f10'
|
|
854
|
+
};
|
|
855
|
+
var F11 = _Key.F11 = {
|
|
856
|
+
code: 'F11',
|
|
857
|
+
keyCode: 122,
|
|
858
|
+
easyString: 'f11'
|
|
859
|
+
};
|
|
860
|
+
var F12 = _Key.F12 = {
|
|
861
|
+
code: 'F12',
|
|
862
|
+
keyCode: 123,
|
|
863
|
+
easyString: 'f12'
|
|
864
|
+
};
|
|
865
|
+
var F13 = _Key.F13 = {
|
|
866
|
+
code: 'F13',
|
|
867
|
+
keyCode: 124,
|
|
868
|
+
easyString: 'f13'
|
|
869
|
+
};
|
|
870
|
+
var F14 = _Key.F14 = {
|
|
871
|
+
code: 'F14',
|
|
872
|
+
keyCode: 125,
|
|
873
|
+
easyString: 'f14'
|
|
874
|
+
};
|
|
875
|
+
var F15 = _Key.F15 = {
|
|
876
|
+
code: 'F15',
|
|
877
|
+
keyCode: 126,
|
|
878
|
+
easyString: 'f15'
|
|
879
|
+
};
|
|
880
|
+
var F16 = _Key.F16 = {
|
|
881
|
+
code: 'F16',
|
|
882
|
+
keyCode: 127,
|
|
883
|
+
easyString: 'f16'
|
|
884
|
+
};
|
|
885
|
+
var F17 = _Key.F17 = {
|
|
886
|
+
code: 'F17',
|
|
887
|
+
keyCode: 128,
|
|
888
|
+
easyString: 'f17'
|
|
889
|
+
};
|
|
890
|
+
var F18 = _Key.F18 = {
|
|
891
|
+
code: 'F18',
|
|
892
|
+
keyCode: 129,
|
|
893
|
+
easyString: 'f18'
|
|
894
|
+
};
|
|
895
|
+
var F19 = _Key.F19 = {
|
|
896
|
+
code: 'F19',
|
|
897
|
+
keyCode: 130,
|
|
898
|
+
easyString: 'f19'
|
|
899
|
+
};
|
|
900
|
+
var F20 = _Key.F20 = {
|
|
901
|
+
code: 'F20',
|
|
902
|
+
keyCode: 131,
|
|
903
|
+
easyString: 'f20'
|
|
904
|
+
};
|
|
905
|
+
var F21 = _Key.F21 = {
|
|
906
|
+
code: 'F21',
|
|
907
|
+
keyCode: 132,
|
|
908
|
+
easyString: 'f21'
|
|
909
|
+
};
|
|
910
|
+
var F22 = _Key.F22 = {
|
|
911
|
+
code: 'F22',
|
|
912
|
+
keyCode: 133,
|
|
913
|
+
easyString: 'f22'
|
|
914
|
+
};
|
|
915
|
+
var F23 = _Key.F23 = {
|
|
916
|
+
code: 'F23',
|
|
917
|
+
keyCode: 134,
|
|
918
|
+
easyString: 'f23'
|
|
919
|
+
};
|
|
920
|
+
var F24 = _Key.F24 = {
|
|
921
|
+
code: 'F24',
|
|
922
|
+
keyCode: 135,
|
|
923
|
+
easyString: 'f24'
|
|
924
|
+
};
|
|
925
|
+
var NUM_LOCK = _Key.NUM_LOCK = {
|
|
926
|
+
code: 'NumLock',
|
|
927
|
+
keyCode: 144,
|
|
928
|
+
easyString: 'numlock'
|
|
929
|
+
};
|
|
930
|
+
var SEMICOLON = _Key.SEMICOLON = {
|
|
931
|
+
code: 'Semicolon',
|
|
932
|
+
keyCode: 186,
|
|
933
|
+
easyString: ';'
|
|
934
|
+
};
|
|
935
|
+
var EQUAL = _Key.EQUAL = {
|
|
936
|
+
code: 'Equal',
|
|
937
|
+
keyCode: 187,
|
|
938
|
+
easyString: '='
|
|
939
|
+
};
|
|
940
|
+
var COMMA = _Key.COMMA = {
|
|
941
|
+
code: 'Comma',
|
|
942
|
+
keyCode: 188,
|
|
943
|
+
easyString: ','
|
|
944
|
+
};
|
|
945
|
+
var MINUS = _Key.MINUS = {
|
|
946
|
+
code: 'Minus',
|
|
947
|
+
keyCode: 189,
|
|
948
|
+
easyString: '-'
|
|
949
|
+
};
|
|
950
|
+
var PERIOD = _Key.PERIOD = {
|
|
951
|
+
code: 'Period',
|
|
952
|
+
keyCode: 190,
|
|
953
|
+
easyString: '.'
|
|
954
|
+
};
|
|
955
|
+
var SLASH = _Key.SLASH = {
|
|
956
|
+
code: 'Slash',
|
|
957
|
+
keyCode: 191,
|
|
958
|
+
easyString: '/'
|
|
959
|
+
};
|
|
960
|
+
var BACKQUOTE = _Key.BACKQUOTE = {
|
|
961
|
+
code: 'Backquote',
|
|
962
|
+
keyCode: 192,
|
|
963
|
+
easyString: '`'
|
|
964
|
+
};
|
|
965
|
+
var INTL_RO = _Key.INTL_RO = {
|
|
966
|
+
code: 'IntlRo',
|
|
967
|
+
keyCode: 193,
|
|
968
|
+
easyString: 'intlro'
|
|
969
|
+
};
|
|
970
|
+
var BRACKET_LEFT = _Key.BRACKET_LEFT = {
|
|
971
|
+
code: 'BracketLeft',
|
|
972
|
+
keyCode: 219,
|
|
973
|
+
easyString: '['
|
|
974
|
+
};
|
|
975
|
+
var BACKSLASH = _Key.BACKSLASH = {
|
|
976
|
+
code: 'Backslash',
|
|
977
|
+
keyCode: 220,
|
|
978
|
+
easyString: '\\'
|
|
979
|
+
};
|
|
980
|
+
var BRACKET_RIGHT = _Key.BRACKET_RIGHT = {
|
|
981
|
+
code: 'BracketRight',
|
|
982
|
+
keyCode: 221,
|
|
983
|
+
easyString: ']'
|
|
984
|
+
};
|
|
985
|
+
var QUOTE = _Key.QUOTE = {
|
|
986
|
+
code: 'Quote',
|
|
987
|
+
keyCode: 222,
|
|
988
|
+
easyString: "'"
|
|
989
|
+
};
|
|
990
|
+
var INTL_BACKSLASH = _Key.INTL_BACKSLASH = {
|
|
991
|
+
code: 'IntlBackslash',
|
|
992
|
+
keyCode: 229,
|
|
993
|
+
easyString: 'intlbackslash'
|
|
994
|
+
};
|
|
995
|
+
var INTL_YEN = _Key.INTL_YEN = {
|
|
996
|
+
code: 'IntlYen',
|
|
997
|
+
keyCode: 255,
|
|
998
|
+
easyString: 'intlyen'
|
|
999
|
+
};
|
|
1000
|
+
var MAX_KEY_CODE = _Key.MAX_KEY_CODE = INTL_YEN.keyCode;
|
|
1001
|
+
})(Key || (Key = {}));
|
|
1002
|
+
/* -------------------- Initialize the static key mappings -------------------- */
|
|
1003
|
+
(function () {
|
|
1004
|
+
// Set the default key mappings from the constants in the Key namespace
|
|
1005
|
+
Object.keys(Key).map(function (prop) {
|
|
1006
|
+
return Reflect.get(Key, prop);
|
|
1007
|
+
}).filter(function (key) {
|
|
1008
|
+
return Key.isKey(key);
|
|
1009
|
+
}).forEach(function (key) {
|
|
1010
|
+
CODE_TO_KEY[key.code] = key;
|
|
1011
|
+
KEY_CODE_TO_KEY[key.keyCode] = key;
|
|
1012
|
+
EASY_TO_KEY[key.easyString] = key;
|
|
1013
|
+
});
|
|
1014
|
+
|
|
1015
|
+
// Set additional key mappings
|
|
1016
|
+
// Set additional key mappings
|
|
1017
|
+
CODE_TO_KEY['Numpad0'] = Key.DIGIT0;
|
|
1018
|
+
KEY_CODE_TO_KEY[96] = Key.DIGIT0;
|
|
1019
|
+
CODE_TO_KEY['Numpad1'] = Key.DIGIT1;
|
|
1020
|
+
KEY_CODE_TO_KEY[97] = Key.DIGIT1;
|
|
1021
|
+
CODE_TO_KEY['Numpad2'] = Key.DIGIT2;
|
|
1022
|
+
KEY_CODE_TO_KEY[98] = Key.DIGIT2;
|
|
1023
|
+
CODE_TO_KEY['Numpad3'] = Key.DIGIT3;
|
|
1024
|
+
KEY_CODE_TO_KEY[99] = Key.DIGIT3;
|
|
1025
|
+
CODE_TO_KEY['Numpad4'] = Key.DIGIT4;
|
|
1026
|
+
KEY_CODE_TO_KEY[100] = Key.DIGIT4;
|
|
1027
|
+
CODE_TO_KEY['Numpad5'] = Key.DIGIT5;
|
|
1028
|
+
KEY_CODE_TO_KEY[101] = Key.DIGIT5;
|
|
1029
|
+
CODE_TO_KEY['Numpad6'] = Key.DIGIT6;
|
|
1030
|
+
KEY_CODE_TO_KEY[102] = Key.DIGIT6;
|
|
1031
|
+
CODE_TO_KEY['Numpad7'] = Key.DIGIT7;
|
|
1032
|
+
KEY_CODE_TO_KEY[103] = Key.DIGIT7;
|
|
1033
|
+
CODE_TO_KEY['Numpad8'] = Key.DIGIT8;
|
|
1034
|
+
KEY_CODE_TO_KEY[104] = Key.DIGIT8;
|
|
1035
|
+
CODE_TO_KEY['Numpad9'] = Key.DIGIT9;
|
|
1036
|
+
KEY_CODE_TO_KEY[105] = Key.DIGIT9;
|
|
1037
|
+
CODE_TO_KEY['NumpadEnter'] = Key.ENTER;
|
|
1038
|
+
CODE_TO_KEY['NumpadEqual'] = Key.EQUAL;
|
|
1039
|
+
CODE_TO_KEY['MetaLeft'] = Key.OS_LEFT; // Chrome, Safari
|
|
1040
|
+
KEY_CODE_TO_KEY[224] = Key.OS_LEFT; // Firefox on Mac
|
|
1041
|
+
CODE_TO_KEY['MetaRight'] = Key.OS_RIGHT; // Chrome, Safari
|
|
1042
|
+
KEY_CODE_TO_KEY[93] = Key.OS_RIGHT; // Chrome, Safari, Edge
|
|
1043
|
+
KEY_CODE_TO_KEY[225] = Key.ALT_RIGHT; // Linux
|
|
1044
|
+
KEY_CODE_TO_KEY[110] = Key.DECIMAL; // Mac, Windows
|
|
1045
|
+
KEY_CODE_TO_KEY[59] = Key.SEMICOLON; // Firefox
|
|
1046
|
+
KEY_CODE_TO_KEY[61] = Key.EQUAL; // Firefox
|
|
1047
|
+
KEY_CODE_TO_KEY[173] = Key.MINUS; // Firefox
|
|
1048
|
+
KEY_CODE_TO_KEY[226] = Key.BACKSLASH; // Chrome, Edge on Windows
|
|
1049
|
+
KEY_CODE_TO_KEY[60] = Key.BACKSLASH; // Firefox on Linux
|
|
1050
|
+
|
|
1051
|
+
// Set the modifier keys
|
|
1052
|
+
MODIFIERS.push.apply(MODIFIERS, [Key.ALT_LEFT, Key.ALT_RIGHT, Key.CONTROL_LEFT, Key.CONTROL_RIGHT, Key.OS_LEFT, Key.OS_RIGHT, Key.SHIFT_LEFT, Key.SHIFT_RIGHT]);
|
|
1053
|
+
})();
|
|
1054
|
+
export var KeysOrKeyCodes;
|
|
1055
|
+
(function (_KeysOrKeyCodes) {
|
|
1056
|
+
var toKeyCode = _KeysOrKeyCodes.toKeyCode = function (keyOrKeyCode) {
|
|
1057
|
+
return keyOrKeyCode instanceof KeyCode ? keyOrKeyCode : KeyCode.createKeyCode({
|
|
1058
|
+
first: keyOrKeyCode
|
|
1059
|
+
});
|
|
1060
|
+
};
|
|
1061
|
+
var toKeyCodes = _KeysOrKeyCodes.toKeyCodes = function (keysOrKeyCodes) {
|
|
1062
|
+
if (keysOrKeyCodes instanceof KeyCode) {
|
|
1063
|
+
return [keysOrKeyCodes];
|
|
1064
|
+
}
|
|
1065
|
+
if (Array.isArray(keysOrKeyCodes)) {
|
|
1066
|
+
return keysOrKeyCodes.slice().map(toKeyCode);
|
|
1067
|
+
}
|
|
1068
|
+
return [toKeyCode(keysOrKeyCodes)];
|
|
1069
|
+
};
|
|
1070
|
+
})(KeysOrKeyCodes || (KeysOrKeyCodes = {}));
|