@difizen/libro-common 0.3.16 → 1.0.1
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 +83 -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,225 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
import { getPropertyDescriptor, isPlainObject } from "../common/index.js";
|
|
3
|
+
import { ObservableSymbol } from "./core";
|
|
4
|
+
import { Notifiable } from "./notifiable";
|
|
5
|
+
import { Notifier } from "./notifier";
|
|
6
|
+
import { observable } from "./observable";
|
|
7
|
+
import { Observability } from "./utils";
|
|
8
|
+
export function tryInvokeGetter(getter, proxy, origin) {
|
|
9
|
+
try {
|
|
10
|
+
return getter.call(proxy);
|
|
11
|
+
} catch (e) {
|
|
12
|
+
if (e instanceof TypeError && e.message.includes('Illegal invocation')) {
|
|
13
|
+
return getter.call(origin);
|
|
14
|
+
}
|
|
15
|
+
throw e;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export var Trackable;
|
|
19
|
+
(function (_Trackable) {
|
|
20
|
+
var activator = _Trackable.activator = Symbol('activator');
|
|
21
|
+
function is(target) {
|
|
22
|
+
return Observability.canBeObservable(target) && target[ObservableSymbol.Tracker];
|
|
23
|
+
}
|
|
24
|
+
_Trackable.is = is;
|
|
25
|
+
function getOrigin(target) {
|
|
26
|
+
return target[ObservableSymbol.Tracker];
|
|
27
|
+
}
|
|
28
|
+
_Trackable.getOrigin = getOrigin;
|
|
29
|
+
function tryGetOrigin(target) {
|
|
30
|
+
if (!is(target)) {
|
|
31
|
+
return target;
|
|
32
|
+
}
|
|
33
|
+
return getOrigin(target);
|
|
34
|
+
}
|
|
35
|
+
_Trackable.tryGetOrigin = tryGetOrigin;
|
|
36
|
+
})(Trackable || (Trackable = {}));
|
|
37
|
+
export var Tracker;
|
|
38
|
+
(function (_Tracker) {
|
|
39
|
+
function set(target, act, proxy) {
|
|
40
|
+
Reflect.defineMetadata(act, proxy, target, ObservableSymbol.Tracker);
|
|
41
|
+
}
|
|
42
|
+
_Tracker.set = set;
|
|
43
|
+
function get(target, act) {
|
|
44
|
+
return Reflect.getMetadata(act, target, ObservableSymbol.Tracker);
|
|
45
|
+
}
|
|
46
|
+
_Tracker.get = get;
|
|
47
|
+
function has(target, act) {
|
|
48
|
+
return Reflect.hasOwnMetadata(act, target, ObservableSymbol.Tracker);
|
|
49
|
+
}
|
|
50
|
+
_Tracker.has = has;
|
|
51
|
+
function tramsform(toTrack, act, activator) {
|
|
52
|
+
if (toTrack instanceof Array) {
|
|
53
|
+
return transformArray(toTrack, act, activator);
|
|
54
|
+
}
|
|
55
|
+
if (toTrack instanceof Map) {
|
|
56
|
+
return transformMap(toTrack, act, activator);
|
|
57
|
+
}
|
|
58
|
+
if (isPlainObject(toTrack)) {
|
|
59
|
+
return transformPlainObject(toTrack, act, activator);
|
|
60
|
+
}
|
|
61
|
+
return toTrack;
|
|
62
|
+
}
|
|
63
|
+
_Tracker.tramsform = tramsform;
|
|
64
|
+
function transformArray(toTrack, act, activator) {
|
|
65
|
+
return new Proxy(toTrack, {
|
|
66
|
+
get: function get(target, property) {
|
|
67
|
+
var value = target[property];
|
|
68
|
+
if (property === ObservableSymbol.Self) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
if (Object.isFrozen(target)) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
if (property === Trackable.activator) {
|
|
75
|
+
return activator;
|
|
76
|
+
}
|
|
77
|
+
return track(value, act);
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
_Tracker.transformArray = transformArray;
|
|
82
|
+
function transformPlainObject(toTrack, act, activator) {
|
|
83
|
+
return new Proxy(toTrack, {
|
|
84
|
+
get: function get(target, property) {
|
|
85
|
+
var value = target[property];
|
|
86
|
+
if (property === ObservableSymbol.Self) {
|
|
87
|
+
return value;
|
|
88
|
+
}
|
|
89
|
+
if (Object.isFrozen(target)) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
if (property === Trackable.activator) {
|
|
93
|
+
return activator;
|
|
94
|
+
}
|
|
95
|
+
return track(value, act);
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
_Tracker.transformPlainObject = transformPlainObject;
|
|
100
|
+
function transformMap(toTrack, act, activator) {
|
|
101
|
+
return new Proxy(toTrack, {
|
|
102
|
+
get: function get(target, property) {
|
|
103
|
+
var value = target[property];
|
|
104
|
+
if (property === ObservableSymbol.Self) {
|
|
105
|
+
return value;
|
|
106
|
+
}
|
|
107
|
+
if (Object.isFrozen(target)) {
|
|
108
|
+
return value;
|
|
109
|
+
}
|
|
110
|
+
if (property === Trackable.activator) {
|
|
111
|
+
return activator;
|
|
112
|
+
}
|
|
113
|
+
if (property === 'get' && typeof value === 'function') {
|
|
114
|
+
return function () {
|
|
115
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
116
|
+
args[_key] = arguments[_key];
|
|
117
|
+
}
|
|
118
|
+
var innerValue = value.apply(target, args);
|
|
119
|
+
return track(innerValue, act);
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
return value;
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
_Tracker.transformMap = transformMap;
|
|
127
|
+
function toInstanceTracker(origin, act) {
|
|
128
|
+
// try make observable
|
|
129
|
+
if (!Observability.marked(origin)) {
|
|
130
|
+
observable(origin);
|
|
131
|
+
}
|
|
132
|
+
var proxy = new Proxy(origin, {
|
|
133
|
+
get: function get(target, property) {
|
|
134
|
+
if (property === ObservableSymbol.Tracker) {
|
|
135
|
+
return target;
|
|
136
|
+
}
|
|
137
|
+
if (property === ObservableSymbol.Self) {
|
|
138
|
+
return target;
|
|
139
|
+
}
|
|
140
|
+
var notifier;
|
|
141
|
+
var value;
|
|
142
|
+
if (typeof property === 'string') {
|
|
143
|
+
if (Observability.shouldKeepOrigin(target, property)) {
|
|
144
|
+
return target[property];
|
|
145
|
+
}
|
|
146
|
+
var descriptor = getPropertyDescriptor(target, property);
|
|
147
|
+
if ((descriptor === null || descriptor === void 0 ? void 0 : descriptor.configurable) === false && (descriptor === null || descriptor === void 0 ? void 0 : descriptor.writable) === false) {
|
|
148
|
+
// non-configurable and non-writable property should return the actual value
|
|
149
|
+
return target[property];
|
|
150
|
+
}
|
|
151
|
+
if (Observability.marked(target, property)) {
|
|
152
|
+
notifier = Notifier.getOrCreate(target, property);
|
|
153
|
+
Notifier.once(notifier, act, function () {
|
|
154
|
+
act({
|
|
155
|
+
key: property,
|
|
156
|
+
value: target[property]
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
value = target[property];
|
|
160
|
+
return track(value, act, true);
|
|
161
|
+
}
|
|
162
|
+
if (descriptor !== null && descriptor !== void 0 && descriptor.get) {
|
|
163
|
+
return tryInvokeGetter(descriptor.get, proxy, target);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
value = target[property];
|
|
167
|
+
return track(value, act, true);
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
set(origin, act, proxy);
|
|
171
|
+
return proxy;
|
|
172
|
+
}
|
|
173
|
+
_Tracker.toInstanceTracker = toInstanceTracker;
|
|
174
|
+
function toNotifiableTracker(origin, act, asProperty) {
|
|
175
|
+
var maybeNotifiable = Notifiable.get(origin);
|
|
176
|
+
if (!maybeNotifiable) {
|
|
177
|
+
maybeNotifiable = Notifiable.transform(origin);
|
|
178
|
+
}
|
|
179
|
+
// set reactable listener
|
|
180
|
+
|
|
181
|
+
var activator;
|
|
182
|
+
if (!asProperty && Notifiable.is(maybeNotifiable)) {
|
|
183
|
+
var notifier = Notifiable.getNotifier(maybeNotifiable);
|
|
184
|
+
activator = function activator() {
|
|
185
|
+
Notifier.once(notifier, act, function () {
|
|
186
|
+
act(origin);
|
|
187
|
+
});
|
|
188
|
+
};
|
|
189
|
+
activator();
|
|
190
|
+
}
|
|
191
|
+
var proxy = tramsform(maybeNotifiable, act, activator);
|
|
192
|
+
set(origin, act, proxy);
|
|
193
|
+
return proxy;
|
|
194
|
+
}
|
|
195
|
+
_Tracker.toNotifiableTracker = toNotifiableTracker;
|
|
196
|
+
function track(object, act) {
|
|
197
|
+
var asProperty = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
198
|
+
if (!Observability.canBeObservable(object)) {
|
|
199
|
+
return object;
|
|
200
|
+
}
|
|
201
|
+
// get origin
|
|
202
|
+
var origin = object;
|
|
203
|
+
if (Trackable.is(object)) {
|
|
204
|
+
origin = Trackable.getOrigin(object);
|
|
205
|
+
}
|
|
206
|
+
origin = Observability.getOrigin(origin);
|
|
207
|
+
// already has tracker
|
|
208
|
+
var exist = undefined;
|
|
209
|
+
if (has(origin, act)) {
|
|
210
|
+
exist = get(origin, act);
|
|
211
|
+
if (exist) {
|
|
212
|
+
if (exist[Trackable.activator]) {
|
|
213
|
+
exist[Trackable.activator]();
|
|
214
|
+
}
|
|
215
|
+
return exist;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
if (Notifiable.canBeNotifiable(origin)) {
|
|
219
|
+
return toNotifiableTracker(origin, act, asProperty);
|
|
220
|
+
} else {
|
|
221
|
+
return toInstanceTracker(origin, act);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
_Tracker.track = track;
|
|
225
|
+
})(Tracker || (Tracker = {}));
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
2
|
+
import type { Disposable } from '../common/index.js';
|
|
3
|
+
import type { Traceable } from './core';
|
|
4
|
+
export declare namespace Observability {
|
|
5
|
+
function isTraceable(data: any): data is Traceable;
|
|
6
|
+
function isObject(obj: any): obj is Record<string | number | symbol, any>;
|
|
7
|
+
function canBeObservable(obj: any): obj is Record<string | number | symbol, any>;
|
|
8
|
+
function marked(obj: any, property?: string | symbol): boolean;
|
|
9
|
+
function mark(obj: Record<any, any>, property?: string | symbol): void;
|
|
10
|
+
function defineOrigin(obj: Record<any, any>, property: string | symbol): void;
|
|
11
|
+
function shouldKeepOrigin(obj: any, property: string | symbol): boolean;
|
|
12
|
+
function getOrigin<T = any>(obj: T): T;
|
|
13
|
+
function equals(a: any, b: any): boolean;
|
|
14
|
+
function getDisposable(metaKey: any, obj: Record<string, any>, property?: string): any;
|
|
15
|
+
function setDisposable(metaKey: any, disposable: Disposable, obj: Record<string, any>, property?: string): void;
|
|
16
|
+
}
|
|
17
|
+
export declare namespace ObservableProperties {
|
|
18
|
+
function getOwn(obj: Record<string, any>): string[] | undefined;
|
|
19
|
+
function get(obj: Record<string, any>): string[] | undefined;
|
|
20
|
+
function find(obj: Record<string, any>): string[] | undefined;
|
|
21
|
+
function add(obj: Record<any, any>, property: string): void;
|
|
22
|
+
}
|
|
23
|
+
export declare namespace InstanceValue {
|
|
24
|
+
function set(target: any, property: string, value: any): void;
|
|
25
|
+
function get(target: any, property: string): any;
|
|
26
|
+
}
|
|
27
|
+
export type DesignType = undefined | typeof Function | typeof String | typeof Boolean | typeof Number | typeof Array | typeof Map | typeof Object;
|
|
28
|
+
export declare const getOrigin: typeof Observability.getOrigin;
|
|
29
|
+
export declare const equals: typeof Observability.equals;
|
|
30
|
+
export declare function isReadonly(target: object, property: string | symbol): boolean;
|
|
31
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/observable/utils.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
2
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
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 _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6
|
+
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; }
|
|
7
|
+
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); }
|
|
8
|
+
import 'reflect-metadata';
|
|
9
|
+
import { isPlainObject, getPropertyDescriptor } from "../common/index.js";
|
|
10
|
+
import { ObservableConfig } from "./config";
|
|
11
|
+
import { ObservableSymbol } from "./core";
|
|
12
|
+
export var Observability;
|
|
13
|
+
(function (_Observability) {
|
|
14
|
+
function isTraceable(data) {
|
|
15
|
+
return !!data && data[ObservableSymbol.Self];
|
|
16
|
+
}
|
|
17
|
+
_Observability.isTraceable = isTraceable;
|
|
18
|
+
function isObject(obj) {
|
|
19
|
+
return !!obj && _typeof(obj) === 'object';
|
|
20
|
+
}
|
|
21
|
+
_Observability.isObject = isObject;
|
|
22
|
+
function canBeObservable(obj) {
|
|
23
|
+
if (!isObject(obj)) {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
if (ObservableConfig.shouldExclude(obj)) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
_Observability.canBeObservable = canBeObservable;
|
|
32
|
+
function marked(obj, property) {
|
|
33
|
+
if (!isObject(obj)) {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
var origin = getOrigin(obj);
|
|
37
|
+
if (property) {
|
|
38
|
+
return Reflect.hasOwnMetadata(ObservableSymbol.Observable, origin, property);
|
|
39
|
+
}
|
|
40
|
+
return Reflect.hasOwnMetadata(ObservableSymbol.Observable, origin);
|
|
41
|
+
}
|
|
42
|
+
_Observability.marked = marked;
|
|
43
|
+
function mark(obj, property) {
|
|
44
|
+
Reflect.defineMetadata(ObservableSymbol.Observable, true, obj);
|
|
45
|
+
if (property) {
|
|
46
|
+
Reflect.defineMetadata(ObservableSymbol.Observable, true, obj, property);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
_Observability.mark = mark;
|
|
50
|
+
function defineOrigin(obj, property) {
|
|
51
|
+
Reflect.defineMetadata(ObservableSymbol.KeepOrigin, true, obj, property);
|
|
52
|
+
}
|
|
53
|
+
_Observability.defineOrigin = defineOrigin;
|
|
54
|
+
function shouldKeepOrigin(obj, property) {
|
|
55
|
+
if (!isObject(obj)) {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
var origin = getOrigin(obj);
|
|
59
|
+
if (isPlainObject(origin)) {
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
return Reflect.hasMetadata(ObservableSymbol.KeepOrigin, origin.constructor, property);
|
|
63
|
+
}
|
|
64
|
+
_Observability.shouldKeepOrigin = shouldKeepOrigin;
|
|
65
|
+
function getOrigin(obj) {
|
|
66
|
+
if (!isTraceable(obj)) {
|
|
67
|
+
return obj;
|
|
68
|
+
}
|
|
69
|
+
return obj[ObservableSymbol.Self];
|
|
70
|
+
}
|
|
71
|
+
_Observability.getOrigin = getOrigin;
|
|
72
|
+
function equals(a, b) {
|
|
73
|
+
return getOrigin(a) === getOrigin(b);
|
|
74
|
+
}
|
|
75
|
+
_Observability.equals = equals;
|
|
76
|
+
function getDisposable(metaKey, obj, property) {
|
|
77
|
+
if (property) {
|
|
78
|
+
return Reflect.getOwnMetadata(metaKey, obj, property);
|
|
79
|
+
}
|
|
80
|
+
return Reflect.getOwnMetadata(metaKey, obj);
|
|
81
|
+
}
|
|
82
|
+
_Observability.getDisposable = getDisposable;
|
|
83
|
+
function setDisposable(metaKey, disposable, obj, property) {
|
|
84
|
+
if (property) {
|
|
85
|
+
Reflect.defineMetadata(metaKey, disposable, obj, property);
|
|
86
|
+
}
|
|
87
|
+
Reflect.defineMetadata(metaKey, disposable, obj);
|
|
88
|
+
}
|
|
89
|
+
_Observability.setDisposable = setDisposable;
|
|
90
|
+
})(Observability || (Observability = {}));
|
|
91
|
+
export var ObservableProperties;
|
|
92
|
+
(function (_ObservableProperties) {
|
|
93
|
+
function getOwn(obj) {
|
|
94
|
+
return Reflect.getOwnMetadata(ObservableSymbol.ObservableProperties, obj);
|
|
95
|
+
}
|
|
96
|
+
_ObservableProperties.getOwn = getOwn;
|
|
97
|
+
function get(obj) {
|
|
98
|
+
return Reflect.getMetadata(ObservableSymbol.ObservableProperties, obj);
|
|
99
|
+
}
|
|
100
|
+
_ObservableProperties.get = get;
|
|
101
|
+
function find(obj) {
|
|
102
|
+
if (obj && obj.constructor) {
|
|
103
|
+
return get(obj.constructor);
|
|
104
|
+
}
|
|
105
|
+
return undefined;
|
|
106
|
+
}
|
|
107
|
+
_ObservableProperties.find = find;
|
|
108
|
+
function add(obj, property) {
|
|
109
|
+
var existingProperties = getOwn(obj);
|
|
110
|
+
if (existingProperties) {
|
|
111
|
+
existingProperties.push(property);
|
|
112
|
+
} else {
|
|
113
|
+
var protoProperties = get(obj) || [];
|
|
114
|
+
Reflect.defineMetadata(ObservableSymbol.ObservableProperties, [].concat(_toConsumableArray(protoProperties), [property]), obj);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
_ObservableProperties.add = add;
|
|
118
|
+
})(ObservableProperties || (ObservableProperties = {}));
|
|
119
|
+
export var InstanceValue;
|
|
120
|
+
(function (_InstanceValue) {
|
|
121
|
+
function set(target, property, value) {
|
|
122
|
+
Reflect.defineMetadata(property, value, target);
|
|
123
|
+
}
|
|
124
|
+
_InstanceValue.set = set;
|
|
125
|
+
function get(target, property) {
|
|
126
|
+
return Reflect.getMetadata(property, target);
|
|
127
|
+
}
|
|
128
|
+
_InstanceValue.get = get;
|
|
129
|
+
})(InstanceValue || (InstanceValue = {}));
|
|
130
|
+
export var getOrigin = Observability.getOrigin;
|
|
131
|
+
export var equals = Observability.equals;
|
|
132
|
+
export function isReadonly(target, property) {
|
|
133
|
+
var descriptor = getPropertyDescriptor(target, property);
|
|
134
|
+
if ((descriptor === null || descriptor === void 0 ? void 0 : descriptor.configurable) === false && (descriptor === null || descriptor === void 0 ? void 0 : descriptor.writable) === false) {
|
|
135
|
+
// non-configurable and non-writable property should return the actual value
|
|
136
|
+
return true;
|
|
137
|
+
}
|
|
138
|
+
return false;
|
|
139
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Disposable } from '../common/index.js';
|
|
2
|
+
import type { Notify } from './core';
|
|
3
|
+
export declare function watch<T>(target: T, callback: Notify): Disposable;
|
|
4
|
+
export declare function watch<T>(target: T, prop: Extract<keyof T, string>, callback: Notify): Disposable;
|
|
5
|
+
//# sourceMappingURL=watch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watch.d.ts","sourceRoot":"","sources":["../../src/observable/watch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAS,MAAM,oBAAoB,CAAC;AAEvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAoDrC,wBAAgB,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,GAAG,UAAU,CAAC;AAClE,wBAAgB,KAAK,CAAC,CAAC,EACrB,MAAM,EAAE,CAAC,EACT,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,EAC9B,QAAQ,EAAE,MAAM,GACf,UAAU,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Disposable, Event } from "../common/index.js";
|
|
2
|
+
import { Notifier } from "./notifier";
|
|
3
|
+
import { observable } from "./observable";
|
|
4
|
+
import { getOrigin, Observability } from "./utils";
|
|
5
|
+
function tryObservable(target) {
|
|
6
|
+
var data = getOrigin(target);
|
|
7
|
+
if (!Observability.canBeObservable(data)) {
|
|
8
|
+
return data;
|
|
9
|
+
}
|
|
10
|
+
if (!Observability.marked(data)) {
|
|
11
|
+
return observable(data);
|
|
12
|
+
}
|
|
13
|
+
return data;
|
|
14
|
+
}
|
|
15
|
+
function watchAll(target, callback) {
|
|
16
|
+
var data = getOrigin(target);
|
|
17
|
+
if (!Observability.canBeObservable(data)) {
|
|
18
|
+
return Disposable.NONE;
|
|
19
|
+
}
|
|
20
|
+
tryObservable(data);
|
|
21
|
+
var event = Notifier.toEvent(data);
|
|
22
|
+
if (event === Event.None) {
|
|
23
|
+
console.warn('Cannot add watcher for unobservable target', target);
|
|
24
|
+
return Disposable.NONE;
|
|
25
|
+
}
|
|
26
|
+
var props = Object.keys(data);
|
|
27
|
+
if (props) {
|
|
28
|
+
props.forEach(function (prop) {
|
|
29
|
+
return Notifier.find(target, prop);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
return event(callback);
|
|
33
|
+
}
|
|
34
|
+
function watchProp(target, prop, callback) {
|
|
35
|
+
var origin = getOrigin(target);
|
|
36
|
+
tryObservable(origin);
|
|
37
|
+
var event = Notifier.toEvent(origin, prop);
|
|
38
|
+
if (event === Event.None) {
|
|
39
|
+
console.warn("Cannot add watcher for unobservable property ".concat(prop.toString()), target);
|
|
40
|
+
return Disposable.NONE;
|
|
41
|
+
}
|
|
42
|
+
return event(callback);
|
|
43
|
+
}
|
|
44
|
+
export function watch(target, prop, callback) {
|
|
45
|
+
var cb;
|
|
46
|
+
if (typeof prop === 'function') {
|
|
47
|
+
cb = prop;
|
|
48
|
+
return watchAll(target, cb);
|
|
49
|
+
}
|
|
50
|
+
if (typeof prop === 'string' && callback) {
|
|
51
|
+
cb = callback;
|
|
52
|
+
return watchProp(target, prop, cb);
|
|
53
|
+
}
|
|
54
|
+
console.warn("Invalid arguments for watch ".concat(prop.toString()), target);
|
|
55
|
+
return Disposable.NONE;
|
|
56
|
+
}
|
package/es/polling/poll.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="node"
|
|
2
|
-
import type { Event } from '
|
|
3
|
-
import { Emitter, Deferred } from '
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type { Event } from '../app/index.js';
|
|
3
|
+
import { Emitter, Deferred } from '../app/index.js';
|
|
4
4
|
import type { IPoll } from './protocol.js';
|
|
5
5
|
/**
|
|
6
6
|
* A class that wraps an asynchronous function to poll at a regular interval
|
package/es/polling/poll.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"poll.d.ts","sourceRoot":"","sources":["../../src/polling/poll.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"poll.d.ts","sourceRoot":"","sources":["../../src/polling/poll.ts"],"names":[],"mappings":"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"}
|
package/es/polling/poll.js
CHANGED
|
@@ -18,7 +18,7 @@ _AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator ||
|
|
|
18
18
|
function _OverloadYield(t, e) { this.v = t, this.k = e; }
|
|
19
19
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
20
20
|
|
|
21
|
-
import { Emitter, Deferred } from
|
|
21
|
+
import { Emitter, Deferred } from "../app/index.js";
|
|
22
22
|
import { deepEqual } from "../json.js";
|
|
23
23
|
_Symbol$asyncIterator = Symbol.asyncIterator;
|
|
24
24
|
/**
|
package/es/polling/protocol.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../src/polling/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../src/polling/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAEpC;;;;;;;;GAQG;AACH,MAAM,WAAW,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,MAAM,CAC3C,SAAQ,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC3C;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAEhC;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;IAEpC;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAErC;;;;;;;OAOG;IACH,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAEvC;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;CAC9C;AAED;;GAEG;AACH,yBAAiB,KAAK,CAAC;IACrB;;;;;;;;;;;;;OAaG;IACH,KAAY,SAAS,GAAG;QACtB;;;;;;WAMG;QACH,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAAC;QAEnC;;WAEG;QACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;QAE1B;;WAEG;QACH,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;KACtB,CAAC;IAEF;;;;OAIG;IACH,KAAY,KAAK,CAAC,CAAC,SAAS,MAAM,IAC9B,CAAC,GACD,aAAa,GACb,UAAU,GACV,aAAa,GACb,WAAW,GACX,UAAU,GACV,UAAU,GACV,SAAS,GACT,SAAS,GACT,SAAS,CAAC;IAEd;;;;;;;;OAQG;IACH,KAAY,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,MAAM,IAAI;QAC1C;;WAEG;QACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;QAE1B;;;;;;WAMG;QACH,QAAQ,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;QAE/B;;WAEG;QACH,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;QAEzB;;WAEG;QACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;KAC5B,CAAC;CACH"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { URI } from '
|
|
1
|
+
import { URI } from '../app/index.js';
|
|
2
2
|
import type { PartialJSONObject } from '../json.js';
|
|
3
3
|
import type { ExecutionCount, IAttachments, MultilineString } from './notebook-protocol.js';
|
|
4
4
|
import type { IOutput } from './output-protocol.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell-protocol.d.ts","sourceRoot":"","sources":["../../src/protocol/cell-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"cell-protocol.d.ts","sourceRoot":"","sources":["../../src/protocol/cell-protocol.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constant.d.ts","sourceRoot":"","sources":["../../src/react/constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var defaultPrefixCls = 'mana';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { DropdownProps as RcDropdownProps } from 'rc-dropdown/lib/Dropdown';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import './styles/index.less';
|
|
4
|
+
export type Trigger = 'click' | 'hover' | 'contextMenu';
|
|
5
|
+
export type Placement = 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
|
|
6
|
+
export interface DropdownProps extends RcDropdownProps {
|
|
7
|
+
prefixCls?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
overlayStyle?: React.CSSProperties;
|
|
10
|
+
overlayClassName?: string;
|
|
11
|
+
visible?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
trigger?: Trigger | Trigger[];
|
|
14
|
+
transitionName?: string;
|
|
15
|
+
placement?: Placement;
|
|
16
|
+
forceRender?: boolean;
|
|
17
|
+
mouseEnterDelay?: number;
|
|
18
|
+
mouseLeaveDelay?: number;
|
|
19
|
+
onVisibleChange?: (visible?: boolean) => void;
|
|
20
|
+
getPopupContainer?: (triggerNode: Element) => HTMLElement;
|
|
21
|
+
}
|
|
22
|
+
export declare const Dropdown: React.ForwardRefExoticComponent<DropdownProps & React.RefAttributes<unknown>>;
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/dropdown/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,IAAI,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACjF,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,qBAAqB,CAAC;AAE7B,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,aAAa,CAAC;AACxD,MAAM,MAAM,SAAS,GACjB,SAAS,GACT,WAAW,GACX,UAAU,GACV,YAAY,GACZ,cAAc,GACd,aAAa,CAAC;AAElB,MAAM,WAAW,aAAc,SAAQ,eAAe;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,EAAE,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9C,iBAAiB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,WAAW,CAAC;CAC3D;AAUD,eAAO,MAAM,QAAQ,+EA4CnB,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
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); }
|
|
7
|
+
import classNames from 'classnames';
|
|
8
|
+
import RcDropdown from 'rc-dropdown';
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { forwardRef } from 'react';
|
|
11
|
+
import "./styles/index.less";
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
var defaultProps = {
|
|
14
|
+
trigger: 'hover',
|
|
15
|
+
prefixCls: 'mana',
|
|
16
|
+
mouseEnterDelay: 0.15,
|
|
17
|
+
mouseLeaveDelay: 0.1,
|
|
18
|
+
placement: 'bottomLeft'
|
|
19
|
+
};
|
|
20
|
+
export var Dropdown = /*#__PURE__*/forwardRef(function Dropdown(props, ref) {
|
|
21
|
+
var children = props.children,
|
|
22
|
+
_props$trigger = props.trigger,
|
|
23
|
+
trigger = _props$trigger === void 0 ? defaultProps.trigger : _props$trigger,
|
|
24
|
+
_props$prefixCls = props.prefixCls,
|
|
25
|
+
prefixCls = _props$prefixCls === void 0 ? defaultProps.prefixCls : _props$prefixCls,
|
|
26
|
+
disabled = props.disabled,
|
|
27
|
+
overlay = props.overlay;
|
|
28
|
+
var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
|
|
29
|
+
var child = React.Children.only(children);
|
|
30
|
+
var dropdownTrigger = /*#__PURE__*/React.cloneElement(child, {
|
|
31
|
+
className: classNames(children.props.className, "".concat(dropdownPrefixCls, "-trigger")),
|
|
32
|
+
disabled: disabled
|
|
33
|
+
});
|
|
34
|
+
var currentTriggers = Array.isArray(trigger) ? trigger : [trigger];
|
|
35
|
+
var triggers = disabled ? [] : currentTriggers;
|
|
36
|
+
var alignPoint = false;
|
|
37
|
+
if (triggers && triggers.indexOf('contextMenu') !== -1) {
|
|
38
|
+
alignPoint = true;
|
|
39
|
+
}
|
|
40
|
+
var dropdownOverlay = React.Children.only(overlay);
|
|
41
|
+
var fixedOverlay = /*#__PURE__*/_jsx("div", {
|
|
42
|
+
className: classNames("".concat(dropdownPrefixCls, "-overlay")),
|
|
43
|
+
children: dropdownOverlay
|
|
44
|
+
});
|
|
45
|
+
return /*#__PURE__*/_jsx(RcDropdown, _objectSpread(_objectSpread({}, props), {}, {
|
|
46
|
+
prefixCls: dropdownPrefixCls,
|
|
47
|
+
overlay: fixedOverlay,
|
|
48
|
+
alignPoint: alignPoint,
|
|
49
|
+
trigger: triggers,
|
|
50
|
+
ref: ref,
|
|
51
|
+
children: dropdownTrigger
|
|
52
|
+
}));
|
|
53
|
+
});
|