@difizen/libro-common 0.3.4 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/app/app.d.ts +7 -0
- package/es/app/app.d.ts.map +1 -0
- package/es/app/app.js +51 -0
- package/es/app/file-tree/file-selection.d.ts +15 -0
- package/es/app/file-tree/file-selection.d.ts.map +1 -0
- package/es/app/file-tree/file-selection.js +38 -0
- package/es/app/file-tree/file-service.d.ts +19 -0
- package/es/app/file-tree/file-service.d.ts.map +1 -0
- package/es/app/file-tree/file-service.js +105 -0
- package/es/app/file-tree/file-tree-component.d.ts +6 -0
- package/es/app/file-tree/file-tree-component.d.ts.map +1 -0
- package/es/app/file-tree/file-tree-component.js +14 -0
- package/es/app/file-tree/file-tree-icon.d.ts +3 -0
- package/es/app/file-tree/file-tree-icon.d.ts.map +1 -0
- package/es/app/file-tree/file-tree-icon.js +14 -0
- package/es/app/file-tree/file-tree-label-provider.d.ts +18 -0
- package/es/app/file-tree/file-tree-label-provider.d.ts.map +1 -0
- package/es/app/file-tree/file-tree-label-provider.js +54 -0
- package/es/app/file-tree/file-tree-model.d.ts +40 -0
- package/es/app/file-tree/file-tree-model.d.ts.map +1 -0
- package/es/app/file-tree/file-tree-model.js +358 -0
- package/es/app/file-tree/file-tree-protocol.d.ts +12 -0
- package/es/app/file-tree/file-tree-protocol.d.ts.map +1 -0
- package/es/app/file-tree/file-tree-protocol.js +33 -0
- package/es/app/file-tree/file-tree-view.d.ts +51 -0
- package/es/app/file-tree/file-tree-view.d.ts.map +1 -0
- package/es/app/file-tree/file-tree-view.js +420 -0
- package/es/app/file-tree/file-tree.d.ts +48 -0
- package/es/app/file-tree/file-tree.d.ts.map +1 -0
- package/es/app/file-tree/file-tree.js +279 -0
- package/es/app/file-tree/files.d.ts +575 -0
- package/es/app/file-tree/files.d.ts.map +1 -0
- package/es/app/file-tree/files.js +478 -0
- package/es/app/file-tree/filesystem-utils.d.ts +14 -0
- package/es/app/file-tree/filesystem-utils.d.ts.map +1 -0
- package/es/app/file-tree/filesystem-utils.js +20 -0
- package/es/app/file-tree/index.d.ts +7 -0
- package/es/app/file-tree/index.d.ts.map +1 -0
- package/es/app/file-tree/index.js +6 -0
- package/es/app/file-tree/module.d.ts +3 -0
- package/es/app/file-tree/module.d.ts.map +1 -0
- package/es/app/file-tree/module.js +18 -0
- package/es/app/file-tree/selection-command-handler.d.ts +25 -0
- package/es/app/file-tree/selection-command-handler.d.ts.map +1 -0
- package/es/app/file-tree/selection-command-handler.js +124 -0
- package/es/app/file-tree/style/file-icon.less +51 -0
- package/es/app/index.d.ts +15 -0
- package/es/app/index.d.ts.map +1 -0
- package/es/app/index.js +22 -0
- package/es/app/label/index.d.ts +4 -0
- package/es/app/label/index.d.ts.map +1 -0
- package/es/app/label/index.js +4 -0
- package/es/app/label/label-provider.d.ts +169 -0
- package/es/app/label/label-provider.d.ts.map +1 -0
- package/es/app/label/label-provider.js +488 -0
- package/es/app/menu/index.d.ts +8 -0
- package/es/app/menu/index.d.ts.map +1 -0
- package/es/app/menu/index.js +21 -0
- package/es/app/menu/menu-bar-render.d.ts +11 -0
- package/es/app/menu/menu-bar-render.d.ts.map +1 -0
- package/es/app/menu/menu-bar-render.js +46 -0
- package/es/app/menu/menu-color-registry.d.ts +6 -0
- package/es/app/menu/menu-color-registry.d.ts.map +1 -0
- package/es/app/menu/menu-color-registry.js +59 -0
- package/es/app/menu/menu-context.d.ts +13 -0
- package/es/app/menu/menu-context.d.ts.map +1 -0
- package/es/app/menu/menu-context.js +7 -0
- package/es/app/menu/menu-item-keeper.d.ts +12 -0
- package/es/app/menu/menu-item-keeper.d.ts.map +1 -0
- package/es/app/menu/menu-item-keeper.js +68 -0
- package/es/app/menu/menu-item-render.d.ts +4 -0
- package/es/app/menu/menu-item-render.d.ts.map +1 -0
- package/es/app/menu/menu-item-render.js +13 -0
- package/es/app/menu/menu-protocol.d.ts +18 -0
- package/es/app/menu/menu-protocol.d.ts.map +1 -0
- package/es/app/menu/menu-protocol.js +5 -0
- package/es/app/menu/menu-render.d.ts +30 -0
- package/es/app/menu/menu-render.d.ts.map +1 -0
- package/es/app/menu/menu-render.js +85 -0
- package/es/app/menu/menu.d.ts +47 -0
- package/es/app/menu/menu.d.ts.map +1 -0
- package/es/app/menu/menu.js +234 -0
- package/es/app/modal/index.d.ts +9 -0
- package/es/app/modal/index.d.ts.map +1 -0
- package/es/app/modal/index.js +19 -0
- package/es/app/modal/modal-contribution.d.ts +7 -0
- package/es/app/modal/modal-contribution.d.ts.map +1 -0
- package/es/app/modal/modal-contribution.js +34 -0
- package/es/app/modal/modal-protocol.d.ts +22 -0
- package/es/app/modal/modal-protocol.d.ts.map +1 -0
- package/es/app/modal/modal-protocol.js +13 -0
- package/es/app/modal/modal-render.d.ts +6 -0
- package/es/app/modal/modal-render.d.ts.map +1 -0
- package/es/app/modal/modal-render.js +44 -0
- package/es/app/modal/modal-service.d.ts +41 -0
- package/es/app/modal/modal-service.d.ts.map +1 -0
- package/es/app/modal/modal-service.js +200 -0
- package/es/app/notification/index.d.ts +5 -0
- package/es/app/notification/index.d.ts.map +1 -0
- package/es/app/notification/index.js +5 -0
- package/es/app/notification/index.less +20 -0
- package/es/app/notification/protocol.d.ts +15 -0
- package/es/app/notification/protocol.d.ts.map +1 -0
- package/es/app/notification/protocol.js +1 -0
- package/es/app/notification/service.d.ts +11 -0
- package/es/app/notification/service.d.ts.map +1 -0
- package/es/app/notification/service.js +87 -0
- package/es/app/style/index.less +181 -0
- package/es/app/style/style-protocol.d.ts +10 -0
- package/es/app/style/style-protocol.d.ts.map +1 -0
- package/es/app/style/style-protocol.js +11 -0
- package/es/app/toolbar/index.d.ts +7 -0
- package/es/app/toolbar/index.d.ts.map +1 -0
- package/es/app/toolbar/index.js +15 -0
- package/es/app/toolbar/index.less +40 -0
- package/es/app/toolbar/toolbar-item-keeper.d.ts +12 -0
- package/es/app/toolbar/toolbar-item-keeper.d.ts.map +1 -0
- package/es/app/toolbar/toolbar-item-keeper.js +49 -0
- package/es/app/toolbar/toolbar-item-render.d.ts +13 -0
- package/es/app/toolbar/toolbar-item-render.d.ts.map +1 -0
- package/es/app/toolbar/toolbar-item-render.js +14 -0
- package/es/app/toolbar/toolbar-protocol.d.ts +9 -0
- package/es/app/toolbar/toolbar-protocol.d.ts.map +1 -0
- package/es/app/toolbar/toolbar-protocol.js +1 -0
- package/es/app/toolbar/toolbar-render.d.ts +29 -0
- package/es/app/toolbar/toolbar-render.d.ts.map +1 -0
- package/es/app/toolbar/toolbar-render.js +93 -0
- package/es/app/toolbar/toolbar-visible-render.d.ts +8 -0
- package/es/app/toolbar/toolbar-visible-render.d.ts.map +1 -0
- package/es/app/toolbar/toolbar-visible-render.js +12 -0
- package/es/app/toolbar/toolbar.d.ts +51 -0
- package/es/app/toolbar/toolbar.d.ts.map +1 -0
- package/es/app/toolbar/toolbar.js +275 -0
- package/es/app/tree/components/index.d.ts +3 -0
- package/es/app/tree/components/index.d.ts.map +1 -0
- package/es/app/tree/components/index.js +20 -0
- package/es/app/tree/components/tree-ident.d.ts +4 -0
- package/es/app/tree/components/tree-ident.d.ts.map +1 -0
- package/es/app/tree/components/tree-ident.js +40 -0
- package/es/app/tree/components/tree-node-caption-affix.d.ts +4 -0
- package/es/app/tree/components/tree-node-caption-affix.d.ts.map +1 -0
- package/es/app/tree/components/tree-node-caption-affix.js +39 -0
- package/es/app/tree/components/tree-node-caption.d.ts +3 -0
- package/es/app/tree/components/tree-node-caption.d.ts.map +1 -0
- package/es/app/tree/components/tree-node-caption.js +103 -0
- package/es/app/tree/components/tree-node-expansion.d.ts +3 -0
- package/es/app/tree/components/tree-node-expansion.d.ts.map +1 -0
- package/es/app/tree/components/tree-node-expansion.js +36 -0
- package/es/app/tree/components/tree-node-icon-decorator.d.ts +4 -0
- package/es/app/tree/components/tree-node-icon-decorator.d.ts.map +1 -0
- package/es/app/tree/components/tree-node-icon-decorator.js +46 -0
- package/es/app/tree/components/tree-node-icon.d.ts +2 -0
- package/es/app/tree/components/tree-node-icon.d.ts.map +1 -0
- package/es/app/tree/components/tree-node-icon.js +3 -0
- package/es/app/tree/components/tree-node-tail-decoration.d.ts +3 -0
- package/es/app/tree/components/tree-node-tail-decoration.d.ts.map +1 -0
- package/es/app/tree/components/tree-node-tail-decoration.js +39 -0
- package/es/app/tree/components/tree-node.d.ts +4 -0
- package/es/app/tree/components/tree-node.d.ts.map +1 -0
- package/es/app/tree/components/tree-node.js +40 -0
- package/es/app/tree/components/tree-switch-icon.d.ts +4 -0
- package/es/app/tree/components/tree-switch-icon.d.ts.map +1 -0
- package/es/app/tree/components/tree-switch-icon.js +14 -0
- package/es/app/tree/index.d.ts +16 -0
- package/es/app/tree/index.d.ts.map +1 -0
- package/es/app/tree/index.js +15 -0
- package/es/app/tree/module.d.ts +5 -0
- package/es/app/tree/module.d.ts.map +1 -0
- package/es/app/tree/module.js +19 -0
- package/es/app/tree/style/index.less +206 -0
- package/es/app/tree/style/tree-decorator.less +65 -0
- package/es/app/tree/tree-decorator.d.ts +141 -0
- package/es/app/tree/tree-decorator.d.ts.map +1 -0
- package/es/app/tree/tree-decorator.js +248 -0
- package/es/app/tree/tree-expansion.d.ts +69 -0
- package/es/app/tree/tree-expansion.d.ts.map +1 -0
- package/es/app/tree/tree-expansion.js +250 -0
- package/es/app/tree/tree-impl.d.ts +40 -0
- package/es/app/tree/tree-impl.d.ts.map +1 -0
- package/es/app/tree/tree-impl.js +292 -0
- package/es/app/tree/tree-iterator.d.ts +94 -0
- package/es/app/tree/tree-iterator.d.ts.map +1 -0
- package/es/app/tree/tree-iterator.js +368 -0
- package/es/app/tree/tree-label-provider.d.ts +9 -0
- package/es/app/tree/tree-label-provider.d.ts.map +1 -0
- package/es/app/tree/tree-label-provider.js +39 -0
- package/es/app/tree/tree-model.d.ts +163 -0
- package/es/app/tree/tree-model.d.ts.map +1 -0
- package/es/app/tree/tree-model.js +616 -0
- package/es/app/tree/tree-navigation.d.ts +11 -0
- package/es/app/tree/tree-navigation.d.ts.map +1 -0
- package/es/app/tree/tree-navigation.js +54 -0
- package/es/app/tree/tree-protocol.d.ts +67 -0
- package/es/app/tree/tree-protocol.d.ts.map +1 -0
- package/es/app/tree/tree-protocol.js +24 -0
- package/es/app/tree/tree-selection-impl.d.ts +45 -0
- package/es/app/tree/tree-selection-impl.d.ts.map +1 -0
- package/es/app/tree/tree-selection-impl.js +192 -0
- package/es/app/tree/tree-selection-state.d.ts +48 -0
- package/es/app/tree/tree-selection-state.d.ts.map +1 -0
- package/es/app/tree/tree-selection-state.js +276 -0
- package/es/app/tree/tree-selection.d.ts +79 -0
- package/es/app/tree/tree-selection.d.ts.map +1 -0
- package/es/app/tree/tree-selection.js +72 -0
- package/es/app/tree/tree-view-decoration.d.ts +286 -0
- package/es/app/tree/tree-view-decoration.d.ts.map +1 -0
- package/es/app/tree/tree-view-decoration.js +127 -0
- package/es/app/tree/tree.d.ts +166 -0
- package/es/app/tree/tree.d.ts.map +1 -0
- package/es/app/tree/tree.js +155 -0
- package/es/app/tree/view/index.d.ts +4 -0
- package/es/app/tree/view/index.d.ts.map +1 -0
- package/es/app/tree/view/index.js +3 -0
- package/es/app/tree/view/index.less +3 -0
- package/es/app/tree/view/tree-view-decorator.d.ts +38 -0
- package/es/app/tree/view/tree-view-decorator.d.ts.map +1 -0
- package/es/app/tree/view/tree-view-decorator.js +128 -0
- package/es/app/tree/view/tree-view-module.d.ts +3 -0
- package/es/app/tree/view/tree-view-module.d.ts.map +1 -0
- package/es/app/tree/view/tree-view-module.js +8 -0
- package/es/app/tree/view/tree-view-selection.d.ts +12 -0
- package/es/app/tree/view/tree-view-selection.d.ts.map +1 -0
- package/es/app/tree/view/tree-view-selection.js +23 -0
- package/es/app/tree/view/tree-view.d.ts +262 -0
- package/es/app/tree/view/tree-view.d.ts.map +1 -0
- package/es/app/tree/view/tree-view.js +943 -0
- package/es/app/typings/index.d.ts +7 -0
- package/es/app/view/box/index.d.ts +19 -0
- package/es/app/view/box/index.d.ts.map +1 -0
- package/es/app/view/box/index.js +76 -0
- package/es/app/view/components/index.d.ts +2 -0
- package/es/app/view/components/index.d.ts.map +1 -0
- package/es/app/view/components/index.js +1 -0
- package/es/app/view/components/loading/index.d.ts +3 -0
- package/es/app/view/components/loading/index.d.ts.map +1 -0
- package/es/app/view/components/loading/index.js +7 -0
- package/es/app/view/components/loading/index.less +10 -0
- package/es/app/view/flex/index.d.ts +16 -0
- package/es/app/view/flex/index.d.ts.map +1 -0
- package/es/app/view/flex/index.js +67 -0
- package/es/app/view/flex/index.less +3 -0
- package/es/app/view/header/header-view.d.ts +12 -0
- package/es/app/view/header/header-view.d.ts.map +1 -0
- package/es/app/view/header/header-view.js +68 -0
- package/es/app/view/header/index.d.ts +4 -0
- package/es/app/view/header/index.d.ts.map +1 -0
- package/es/app/view/header/index.js +23 -0
- package/es/app/view/header/index.less +43 -0
- package/es/app/view/index.d.ts +8 -0
- package/es/app/view/index.d.ts.map +1 -0
- package/es/app/view/index.js +11 -0
- package/es/app/view/tab/card-tab-view.d.ts +13 -0
- package/es/app/view/tab/card-tab-view.d.ts.map +1 -0
- package/es/app/view/tab/card-tab-view.js +49 -0
- package/es/app/view/tab/index.d.ts +4 -0
- package/es/app/view/tab/index.d.ts.map +1 -0
- package/es/app/view/tab/index.js +3 -0
- package/es/app/view/tab/index.less +70 -0
- package/es/app/view/tab/side-tab-view.d.ts +23 -0
- package/es/app/view/tab/side-tab-view.d.ts.map +1 -0
- package/es/app/view/tab/side-tab-view.js +121 -0
- package/es/app/view/tab/tab-menu.d.ts +9 -0
- package/es/app/view/tab/tab-menu.d.ts.map +1 -0
- package/es/app/view/tab/tab-menu.js +34 -0
- package/es/app/view/tab/tab-protocol.d.ts +3 -0
- package/es/app/view/tab/tab-protocol.d.ts.map +1 -0
- package/es/app/view/tab/tab-protocol.js +1 -0
- package/es/app/view/tab/tab-view.d.ts +27 -0
- package/es/app/view/tab/tab-view.d.ts.map +1 -0
- package/es/app/view/tab/tab-view.js +169 -0
- package/es/common/assert.d.ts +5 -0
- package/es/common/assert.d.ts.map +1 -0
- package/es/common/assert.js +13 -0
- package/es/common/cancellation.d.ts +20 -0
- package/es/common/cancellation.d.ts.map +1 -0
- package/es/common/cancellation.js +143 -0
- package/es/common/charCode.d.ts +416 -0
- package/es/common/charCode.d.ts.map +1 -0
- package/es/common/charCode.js +604 -0
- package/es/common/collections.d.ts +44 -0
- package/es/common/collections.d.ts.map +1 -0
- package/es/common/collections.js +220 -0
- package/es/common/deferred.d.ts +10 -0
- package/es/common/deferred.d.ts.map +1 -0
- package/es/common/deferred.js +21 -0
- package/es/common/disposable-collection.d.ts +24 -0
- package/es/common/disposable-collection.d.ts.map +1 -0
- package/es/common/disposable-collection.js +117 -0
- package/es/common/disposable.d.ts +19 -0
- package/es/common/disposable.d.ts.map +1 -0
- package/es/common/disposable.js +23 -0
- package/es/common/event.d.ts +75 -0
- package/es/common/event.d.ts.map +1 -0
- package/es/common/event.js +313 -0
- package/es/common/index.d.ts +27 -0
- package/es/common/index.d.ts.map +1 -0
- package/es/common/index.js +26 -0
- package/es/common/iterator.d.ts +39 -0
- package/es/common/iterator.d.ts.map +1 -0
- package/es/common/iterator.js +389 -0
- package/es/common/linkedList.d.ts +16 -0
- package/es/common/linkedList.d.ts.map +1 -0
- package/es/common/linkedList.js +159 -0
- package/es/common/objects.d.ts +36 -0
- package/es/common/objects.d.ts.map +1 -0
- package/es/common/objects.js +232 -0
- package/es/common/observable-disposable.d.ts +12 -0
- package/es/common/observable-disposable.d.ts.map +1 -0
- package/es/common/observable-disposable.js +1 -0
- package/es/common/path.d.ts +59 -0
- package/es/common/path.d.ts.map +1 -0
- package/es/common/path.js +258 -0
- package/es/common/platform.d.ts +72 -0
- package/es/common/platform.d.ts.map +1 -0
- package/es/common/platform.js +213 -0
- package/es/common/priority.d.ts +23 -0
- package/es/common/priority.d.ts.map +1 -0
- package/es/common/priority.js +97 -0
- package/es/common/promise-util.d.ts +8 -0
- package/es/common/promise-util.d.ts.map +1 -0
- package/es/common/promise-util.js +63 -0
- package/es/common/stopwatch.d.ts +11 -0
- package/es/common/stopwatch.d.ts.map +1 -0
- package/es/common/stopwatch.js +47 -0
- package/es/common/strings.d.ts +102 -0
- package/es/common/strings.d.ts.map +1 -0
- package/es/common/strings.js +433 -0
- package/es/common/types.d.ts +16 -0
- package/es/common/types.d.ts.map +1 -0
- package/es/common/types.js +13 -0
- package/es/common/uint.d.ts +32 -0
- package/es/common/uint.d.ts.map +1 -0
- package/es/common/uint.js +56 -0
- package/es/common/uri.d.ts +56 -0
- package/es/common/uri.d.ts.map +1 -0
- package/es/common/uri.js +244 -0
- package/es/common/utils.d.ts +4 -0
- package/es/common/utils.d.ts.map +1 -0
- package/es/common/utils.js +26 -0
- package/es/common/valueTypes.d.ts +102 -0
- package/es/common/valueTypes.d.ts.map +1 -0
- package/es/common/valueTypes.js +270 -0
- package/es/common/vscode-uri/char-code.d.ts +416 -0
- package/es/common/vscode-uri/char-code.d.ts.map +1 -0
- package/es/common/vscode-uri/char-code.js +608 -0
- package/es/common/vscode-uri/index.d.ts +6 -0
- package/es/common/vscode-uri/index.d.ts.map +1 -0
- package/es/common/vscode-uri/index.js +8 -0
- package/es/common/vscode-uri/platform.d.ts +2 -0
- package/es/common/vscode-uri/platform.d.ts.map +1 -0
- package/es/common/vscode-uri/platform.js +17 -0
- package/es/common/vscode-uri/uri.d.ts +155 -0
- package/es/common/vscode-uri/uri.d.ts.map +1 -0
- package/es/common/vscode-uri/uri.js +637 -0
- package/es/common/vscode-uri/utils.d.ts +59 -0
- package/es/common/vscode-uri/utils.d.ts.map +1 -0
- package/es/common/vscode-uri/utils.js +61 -0
- package/es/common/wait-until-event.d.ts +17 -0
- package/es/common/wait-until-event.d.ts.map +1 -0
- package/es/common/wait-until-event.js +65 -0
- package/es/core/application/application-protocol.d.ts +19 -0
- package/es/core/application/application-protocol.d.ts.map +1 -0
- package/es/core/application/application-protocol.js +4 -0
- package/es/core/application/application-state.d.ts +24 -0
- package/es/core/application/application-state.d.ts.map +1 -0
- package/es/core/application/application-state.js +87 -0
- package/es/core/application/application.d.ts +86 -0
- package/es/core/application/application.d.ts.map +1 -0
- package/es/core/application/application.js +554 -0
- package/es/core/application/default-window-service.d.ts +27 -0
- package/es/core/application/default-window-service.d.ts.map +1 -0
- package/es/core/application/default-window-service.js +83 -0
- package/es/core/application/index.d.ts +5 -0
- package/es/core/application/index.d.ts.map +1 -0
- package/es/core/application/index.js +7 -0
- package/es/core/application/mock-window-service.d.ts +8 -0
- package/es/core/application/mock-window-service.d.ts.map +1 -0
- package/es/core/application/mock-window-service.js +31 -0
- package/es/core/browser.d.ts +21 -0
- package/es/core/browser.d.ts.map +1 -0
- package/es/core/browser.js +118 -0
- package/es/core/command/command-protocol.d.ts +124 -0
- package/es/core/command/command-protocol.d.ts.map +1 -0
- package/es/core/command/command-protocol.js +44 -0
- package/es/core/command/command-registry.d.ts +144 -0
- package/es/core/command/command-registry.d.ts.map +1 -0
- package/es/core/command/command-registry.js +595 -0
- package/es/core/command/index.d.ts +5 -0
- package/es/core/command/index.d.ts.map +1 -0
- package/es/core/command/index.js +5 -0
- package/es/core/common/debug.d.ts +5 -0
- package/es/core/common/debug.d.ts.map +1 -0
- package/es/core/common/debug.js +3 -0
- package/es/core/common/index.d.ts +6 -0
- package/es/core/common/index.d.ts.map +1 -0
- package/es/core/common/index.js +17 -0
- package/es/core/common/storage-protocol.d.ts +21 -0
- package/es/core/common/storage-protocol.d.ts.map +1 -0
- package/es/core/common/storage-protocol.js +5 -0
- package/es/core/common/storage-service.d.ts +23 -0
- package/es/core/common/storage-service.d.ts.map +1 -0
- package/es/core/common/storage-service.js +91 -0
- package/es/core/components/application.d.ts +16 -0
- package/es/core/components/application.d.ts.map +1 -0
- package/es/core/components/application.js +159 -0
- package/es/core/components/context.d.ts +19 -0
- package/es/core/components/context.d.ts.map +1 -0
- package/es/core/components/context.js +101 -0
- package/es/core/components/hooks.d.ts +4 -0
- package/es/core/components/hooks.d.ts.map +1 -0
- package/es/core/components/hooks.js +14 -0
- package/es/core/components/index.d.ts +7 -0
- package/es/core/components/index.d.ts.map +1 -0
- package/es/core/components/index.js +8 -0
- package/es/core/components/index.less +28 -0
- package/es/core/components/root-view-render.d.ts +5 -0
- package/es/core/components/root-view-render.d.ts.map +1 -0
- package/es/core/components/root-view-render.js +14 -0
- package/es/core/configuration/configuration-cache.d.ts +15 -0
- package/es/core/configuration/configuration-cache.d.ts.map +1 -0
- package/es/core/configuration/configuration-cache.js +67 -0
- package/es/core/configuration/configuration-protocol.d.ts +46 -0
- package/es/core/configuration/configuration-protocol.d.ts.map +1 -0
- package/es/core/configuration/configuration-protocol.js +1 -0
- package/es/core/configuration/configuration-provider.d.ts +46 -0
- package/es/core/configuration/configuration-provider.d.ts.map +1 -0
- package/es/core/configuration/configuration-provider.js +95 -0
- package/es/core/configuration/configuration-registry.d.ts +53 -0
- package/es/core/configuration/configuration-registry.d.ts.map +1 -0
- package/es/core/configuration/configuration-registry.js +360 -0
- package/es/core/configuration/configuration-render-registry.d.ts +35 -0
- package/es/core/configuration/configuration-render-registry.d.ts.map +1 -0
- package/es/core/configuration/configuration-render-registry.js +118 -0
- package/es/core/configuration/configuration-service.d.ts +46 -0
- package/es/core/configuration/configuration-service.d.ts.map +1 -0
- package/es/core/configuration/configuration-service.js +411 -0
- package/es/core/configuration/configuration-storage.d.ts +19 -0
- package/es/core/configuration/configuration-storage.d.ts.map +1 -0
- package/es/core/configuration/configuration-storage.js +15 -0
- package/es/core/configuration/hooks.d.ts +3 -0
- package/es/core/configuration/hooks.d.ts.map +1 -0
- package/es/core/configuration/hooks.js +60 -0
- package/es/core/configuration/index.d.ts +11 -0
- package/es/core/configuration/index.d.ts.map +1 -0
- package/es/core/configuration/index.js +10 -0
- package/es/core/configuration/module.d.ts +3 -0
- package/es/core/configuration/module.d.ts.map +1 -0
- package/es/core/configuration/module.js +8 -0
- package/es/core/configuration/typings.d.ts +1 -0
- package/es/core/configuration/validation.d.ts +12 -0
- package/es/core/configuration/validation.d.ts.map +1 -0
- package/es/core/configuration/validation.js +45 -0
- package/es/core/context/data-context-manager.d.ts +16 -0
- package/es/core/context/data-context-manager.d.ts.map +1 -0
- package/es/core/context/data-context-manager.js +80 -0
- package/es/core/context/data-context-protocol.d.ts +16 -0
- package/es/core/context/data-context-protocol.d.ts.map +1 -0
- package/es/core/context/data-context-protocol.js +10 -0
- package/es/core/context/data-context.d.ts +7 -0
- package/es/core/context/data-context.d.ts.map +1 -0
- package/es/core/context/data-context.js +32 -0
- package/es/core/context/index.d.ts +6 -0
- package/es/core/context/index.d.ts.map +1 -0
- package/es/core/context/index.js +12 -0
- package/es/core/index.d.ts +32 -0
- package/es/core/index.d.ts.map +1 -0
- package/es/core/index.js +42 -0
- package/es/core/keybinding/context-key-service.d.ts +22 -0
- package/es/core/keybinding/context-key-service.d.ts.map +1 -0
- package/es/core/keybinding/context-key-service.js +79 -0
- package/es/core/keybinding/index.d.ts +6 -0
- package/es/core/keybinding/index.d.ts.map +1 -0
- package/es/core/keybinding/index.js +5 -0
- package/es/core/keybinding/keybinding-proocol.d.ts +14 -0
- package/es/core/keybinding/keybinding-proocol.d.ts.map +1 -0
- package/es/core/keybinding/keybinding-proocol.js +5 -0
- package/es/core/keybinding/keybinding.d.ts +333 -0
- package/es/core/keybinding/keybinding.d.ts.map +1 -0
- package/es/core/keybinding/keybinding.js +912 -0
- package/es/core/keybinding/module.d.ts +3 -0
- package/es/core/keybinding/module.d.ts.map +1 -0
- package/es/core/keybinding/module.js +12 -0
- package/es/core/keybinding/vs/configuration/configuration.d.ts +129 -0
- package/es/core/keybinding/vs/configuration/configuration.d.ts.map +1 -0
- package/es/core/keybinding/vs/configuration/configuration.js +328 -0
- package/es/core/keybinding/vs/configuration/configurationModels.d.ts +138 -0
- package/es/core/keybinding/vs/configuration/configurationModels.d.ts.map +1 -0
- package/es/core/keybinding/vs/configuration/configurationModels.js +974 -0
- package/es/core/keybinding/vs/configuration/configurationRegistry.d.ts +145 -0
- package/es/core/keybinding/vs/configuration/configurationRegistry.d.ts.map +1 -0
- package/es/core/keybinding/vs/configuration/configurationRegistry.js +500 -0
- package/es/core/keybinding/vs/configuration/configurationService.d.ts +36 -0
- package/es/core/keybinding/vs/configuration/configurationService.d.ts.map +1 -0
- package/es/core/keybinding/vs/configuration/configurationService.js +161 -0
- package/es/core/keybinding/vs/configuration/json.d.ts +216 -0
- package/es/core/keybinding/vs/configuration/json.d.ts.map +1 -0
- package/es/core/keybinding/vs/configuration/json.js +1303 -0
- package/es/core/keybinding/vs/contextKeyService.d.ts +73 -0
- package/es/core/keybinding/vs/contextKeyService.d.ts.map +1 -0
- package/es/core/keybinding/vs/contextKeyService.js +755 -0
- package/es/core/keybinding/vs/contextkey.d.ts +338 -0
- package/es/core/keybinding/vs/contextkey.d.ts.map +1 -0
- package/es/core/keybinding/vs/contextkey.js +1551 -0
- package/es/core/keybinding/vs/contextkeys.d.ts +10 -0
- package/es/core/keybinding/vs/contextkeys.d.ts.map +1 -0
- package/es/core/keybinding/vs/contextkeys.js +16 -0
- package/es/core/keybinding/vs/jsonContributionRegistry.d.ts +25 -0
- package/es/core/keybinding/vs/jsonContributionRegistry.d.ts.map +1 -0
- package/es/core/keybinding/vs/jsonContributionRegistry.js +52 -0
- package/es/core/keybinding/vs/jsonSchema.d.ts +65 -0
- package/es/core/keybinding/vs/jsonSchema.d.ts.map +1 -0
- package/es/core/keybinding/vs/jsonSchema.js +0 -0
- package/es/core/keybinding/vs/platform.d.ts +21 -0
- package/es/core/keybinding/vs/platform.d.ts.map +1 -0
- package/es/core/keybinding/vs/platform.js +39 -0
- package/es/core/keyboard/browser-keyboard-layout-provider.d.ts +101 -0
- package/es/core/keyboard/browser-keyboard-layout-provider.d.ts.map +1 -0
- package/es/core/keyboard/browser-keyboard-layout-provider.js +642 -0
- package/es/core/keyboard/index.d.ts +5 -0
- package/es/core/keyboard/index.d.ts.map +1 -0
- package/es/core/keyboard/index.js +4 -0
- package/es/core/keyboard/keyboard-layout-service.d.ts +51 -0
- package/es/core/keyboard/keyboard-layout-service.d.ts.map +1 -0
- package/es/core/keyboard/keyboard-layout-service.js +697 -0
- package/es/core/keyboard/keyboard-protocol.d.ts +26 -0
- package/es/core/keyboard/keyboard-protocol.d.ts.map +1 -0
- package/es/core/keyboard/keyboard-protocol.js +5 -0
- package/es/core/keyboard/keys.d.ts +254 -0
- package/es/core/keyboard/keys.d.ts.map +1 -0
- package/es/core/keyboard/keys.js +1070 -0
- package/es/core/keyboard/layouts/cs-Czech-mac.d.ts +269 -0
- package/es/core/keyboard/layouts/cs-Czech-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/cs-Czech-mac.js +267 -0
- package/es/core/keyboard/layouts/cs-Czech-mac.json +1 -0
- package/es/core/keyboard/layouts/cs-Czech-pc.d.ts +291 -0
- package/es/core/keyboard/layouts/cs-Czech-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/cs-Czech-pc.js +289 -0
- package/es/core/keyboard/layouts/cs-Czech-pc.json +1 -0
- package/es/core/keyboard/layouts/da-Danish-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/da-Danish-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/da-Danish-mac.js +296 -0
- package/es/core/keyboard/layouts/da-Danish-mac.json +1 -0
- package/es/core/keyboard/layouts/da-Danish-pc.d.ts +270 -0
- package/es/core/keyboard/layouts/da-Danish-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/da-Danish-pc.js +268 -0
- package/es/core/keyboard/layouts/da-Danish-pc.json +1 -0
- package/es/core/keyboard/layouts/de-German-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/de-German-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/de-German-mac.js +296 -0
- package/es/core/keyboard/layouts/de-German-mac.json +1 -0
- package/es/core/keyboard/layouts/de-German-pc.d.ts +270 -0
- package/es/core/keyboard/layouts/de-German-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/de-German-pc.js +268 -0
- package/es/core/keyboard/layouts/de-German-pc.json +1 -0
- package/es/core/keyboard/layouts/de-Swiss_German-mac.d.ts +296 -0
- package/es/core/keyboard/layouts/de-Swiss_German-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/de-Swiss_German-mac.js +294 -0
- package/es/core/keyboard/layouts/de-Swiss_German-mac.json +1 -0
- package/es/core/keyboard/layouts/de-Swiss_German-pc.d.ts +273 -0
- package/es/core/keyboard/layouts/de-Swiss_German-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/de-Swiss_German-pc.js +271 -0
- package/es/core/keyboard/layouts/de-Swiss_German-pc.json +1 -0
- package/es/core/keyboard/layouts/en-British-mac.d.ts +296 -0
- package/es/core/keyboard/layouts/en-British-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/en-British-mac.js +294 -0
- package/es/core/keyboard/layouts/en-British-mac.json +1 -0
- package/es/core/keyboard/layouts/en-British-pc.d.ts +271 -0
- package/es/core/keyboard/layouts/en-British-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/en-British-pc.js +269 -0
- package/es/core/keyboard/layouts/en-British-pc.json +1 -0
- package/es/core/keyboard/layouts/en-Colemak-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/en-Colemak-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/en-Colemak-mac.js +296 -0
- package/es/core/keyboard/layouts/en-Colemak-mac.json +1 -0
- package/es/core/keyboard/layouts/en-Dvorak-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/en-Dvorak-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/en-Dvorak-mac.js +296 -0
- package/es/core/keyboard/layouts/en-Dvorak-mac.json +1 -0
- package/es/core/keyboard/layouts/en-Dvorak-pc.d.ts +257 -0
- package/es/core/keyboard/layouts/en-Dvorak-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/en-Dvorak-pc.js +255 -0
- package/es/core/keyboard/layouts/en-Dvorak-pc.json +1 -0
- package/es/core/keyboard/layouts/en-Dvorak_Lefthanded-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/en-Dvorak_Lefthanded-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/en-Dvorak_Lefthanded-mac.js +296 -0
- package/es/core/keyboard/layouts/en-Dvorak_Lefthanded-mac.json +1 -0
- package/es/core/keyboard/layouts/en-Dvorak_Lefthanded-pc.d.ts +257 -0
- package/es/core/keyboard/layouts/en-Dvorak_Lefthanded-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/en-Dvorak_Lefthanded-pc.js +255 -0
- package/es/core/keyboard/layouts/en-Dvorak_Lefthanded-pc.json +1 -0
- package/es/core/keyboard/layouts/en-Dvorak_Righthanded-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/en-Dvorak_Righthanded-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/en-Dvorak_Righthanded-mac.js +296 -0
- package/es/core/keyboard/layouts/en-Dvorak_Righthanded-mac.json +1 -0
- package/es/core/keyboard/layouts/en-Dvorak_Righthanded-pc.d.ts +257 -0
- package/es/core/keyboard/layouts/en-Dvorak_Righthanded-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/en-Dvorak_Righthanded-pc.js +255 -0
- package/es/core/keyboard/layouts/en-Dvorak_Righthanded-pc.json +1 -0
- package/es/core/keyboard/layouts/en-US-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/en-US-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/en-US-mac.js +296 -0
- package/es/core/keyboard/layouts/en-US-mac.json +1 -0
- package/es/core/keyboard/layouts/en-US-pc.d.ts +257 -0
- package/es/core/keyboard/layouts/en-US-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/en-US-pc.js +255 -0
- package/es/core/keyboard/layouts/en-US-pc.json +1 -0
- package/es/core/keyboard/layouts/es-Spanish-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/es-Spanish-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/es-Spanish-mac.js +296 -0
- package/es/core/keyboard/layouts/es-Spanish-mac.json +1 -0
- package/es/core/keyboard/layouts/es-Spanish-pc.d.ts +269 -0
- package/es/core/keyboard/layouts/es-Spanish-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/es-Spanish-pc.js +267 -0
- package/es/core/keyboard/layouts/es-Spanish-pc.json +1 -0
- package/es/core/keyboard/layouts/fr-Bepo-pc.d.ts +344 -0
- package/es/core/keyboard/layouts/fr-Bepo-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/fr-Bepo-pc.js +342 -0
- package/es/core/keyboard/layouts/fr-Bepo-pc.json +1 -0
- package/es/core/keyboard/layouts/fr-Canadian_French-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/fr-Canadian_French-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/fr-Canadian_French-mac.js +296 -0
- package/es/core/keyboard/layouts/fr-Canadian_French-mac.json +1 -0
- package/es/core/keyboard/layouts/fr-Canadian_French-pc.d.ts +281 -0
- package/es/core/keyboard/layouts/fr-Canadian_French-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/fr-Canadian_French-pc.js +279 -0
- package/es/core/keyboard/layouts/fr-Canadian_French-pc.json +1 -0
- package/es/core/keyboard/layouts/fr-French-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/fr-French-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/fr-French-mac.js +296 -0
- package/es/core/keyboard/layouts/fr-French-mac.json +1 -0
- package/es/core/keyboard/layouts/fr-French-pc.d.ts +269 -0
- package/es/core/keyboard/layouts/fr-French-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/fr-French-pc.js +267 -0
- package/es/core/keyboard/layouts/fr-French-pc.json +1 -0
- package/es/core/keyboard/layouts/fr-Swiss_French-mac.d.ts +296 -0
- package/es/core/keyboard/layouts/fr-Swiss_French-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/fr-Swiss_French-mac.js +294 -0
- package/es/core/keyboard/layouts/fr-Swiss_French-mac.json +1 -0
- package/es/core/keyboard/layouts/fr-Swiss_French-pc.d.ts +273 -0
- package/es/core/keyboard/layouts/fr-Swiss_French-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/fr-Swiss_French-pc.js +271 -0
- package/es/core/keyboard/layouts/fr-Swiss_French-pc.json +1 -0
- package/es/core/keyboard/layouts/hu-Hungarian-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/hu-Hungarian-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/hu-Hungarian-mac.js +296 -0
- package/es/core/keyboard/layouts/hu-Hungarian-mac.json +1 -0
- package/es/core/keyboard/layouts/hu-Hungarian-pc.d.ts +298 -0
- package/es/core/keyboard/layouts/hu-Hungarian-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/hu-Hungarian-pc.js +296 -0
- package/es/core/keyboard/layouts/hu-Hungarian-pc.json +1 -0
- package/es/core/keyboard/layouts/index.d.ts +4 -0
- package/es/core/keyboard/layouts/index.d.ts.map +1 -0
- package/es/core/keyboard/layouts/index.js +57 -0
- package/es/core/keyboard/layouts/it-Italian-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/it-Italian-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/it-Italian-mac.js +296 -0
- package/es/core/keyboard/layouts/it-Italian-mac.json +1 -0
- package/es/core/keyboard/layouts/it-Italian-pc.d.ts +265 -0
- package/es/core/keyboard/layouts/it-Italian-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/it-Italian-pc.js +263 -0
- package/es/core/keyboard/layouts/it-Italian-pc.json +1 -0
- package/es/core/keyboard/layouts/nb-Norwegian-mac.d.ts +293 -0
- package/es/core/keyboard/layouts/nb-Norwegian-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/nb-Norwegian-mac.js +291 -0
- package/es/core/keyboard/layouts/nb-Norwegian-mac.json +1 -0
- package/es/core/keyboard/layouts/nb-Norwegian-pc.d.ts +269 -0
- package/es/core/keyboard/layouts/nb-Norwegian-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/nb-Norwegian-pc.js +267 -0
- package/es/core/keyboard/layouts/nb-Norwegian-pc.json +1 -0
- package/es/core/keyboard/layouts/nl-Dutch-mac.d.ts +296 -0
- package/es/core/keyboard/layouts/nl-Dutch-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/nl-Dutch-mac.js +294 -0
- package/es/core/keyboard/layouts/nl-Dutch-mac.json +1 -0
- package/es/core/keyboard/layouts/nl-Dutch-pc.d.ts +278 -0
- package/es/core/keyboard/layouts/nl-Dutch-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/nl-Dutch-pc.js +276 -0
- package/es/core/keyboard/layouts/nl-Dutch-pc.json +1 -0
- package/es/core/keyboard/layouts/pl-Polish-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/pl-Polish-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/pl-Polish-mac.js +296 -0
- package/es/core/keyboard/layouts/pl-Polish-mac.json +1 -0
- package/es/core/keyboard/layouts/pl-Polish-pc.d.ts +284 -0
- package/es/core/keyboard/layouts/pl-Polish-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/pl-Polish-pc.js +282 -0
- package/es/core/keyboard/layouts/pl-Polish-pc.json +1 -0
- package/es/core/keyboard/layouts/pt-Brazilian-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/pt-Brazilian-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/pt-Brazilian-mac.js +296 -0
- package/es/core/keyboard/layouts/pt-Brazilian-mac.json +1 -0
- package/es/core/keyboard/layouts/pt-Portuguese-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/pt-Portuguese-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/pt-Portuguese-mac.js +296 -0
- package/es/core/keyboard/layouts/pt-Portuguese-mac.json +1 -0
- package/es/core/keyboard/layouts/pt-Portuguese-pc.d.ts +268 -0
- package/es/core/keyboard/layouts/pt-Portuguese-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/pt-Portuguese-pc.js +266 -0
- package/es/core/keyboard/layouts/pt-Portuguese-pc.json +65 -0
- package/es/core/keyboard/layouts/ro-Romanian-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/ro-Romanian-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/ro-Romanian-mac.js +296 -0
- package/es/core/keyboard/layouts/ro-Romanian-mac.json +1 -0
- package/es/core/keyboard/layouts/ro-Romanian-pc.d.ts +295 -0
- package/es/core/keyboard/layouts/ro-Romanian-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/ro-Romanian-pc.js +293 -0
- package/es/core/keyboard/layouts/ro-Romanian-pc.json +1 -0
- package/es/core/keyboard/layouts/sv-Swedish-mac.d.ts +298 -0
- package/es/core/keyboard/layouts/sv-Swedish-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/sv-Swedish-mac.js +296 -0
- package/es/core/keyboard/layouts/sv-Swedish-mac.json +1 -0
- package/es/core/keyboard/layouts/sv-Swedish-pc.d.ts +270 -0
- package/es/core/keyboard/layouts/sv-Swedish-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/sv-Swedish-pc.js +268 -0
- package/es/core/keyboard/layouts/sv-Swedish-pc.json +1 -0
- package/es/core/keyboard/layouts/tr-Turkish_Q-mac.d.ts +297 -0
- package/es/core/keyboard/layouts/tr-Turkish_Q-mac.d.ts.map +1 -0
- package/es/core/keyboard/layouts/tr-Turkish_Q-mac.js +295 -0
- package/es/core/keyboard/layouts/tr-Turkish_Q-mac.json +1 -0
- package/es/core/keyboard/layouts/tr-Turkish_Q-pc.d.ts +282 -0
- package/es/core/keyboard/layouts/tr-Turkish_Q-pc.d.ts.map +1 -0
- package/es/core/keyboard/layouts/tr-Turkish_Q-pc.js +280 -0
- package/es/core/keyboard/layouts/tr-Turkish_Q-pc.json +1 -0
- package/es/core/menu/default-menu-node.d.ts +82 -0
- package/es/core/menu/default-menu-node.d.ts.map +1 -0
- package/es/core/menu/default-menu-node.js +205 -0
- package/es/core/menu/index.d.ts +5 -0
- package/es/core/menu/index.d.ts.map +1 -0
- package/es/core/menu/index.js +39 -0
- package/es/core/menu/menu-protocol.d.ts +101 -0
- package/es/core/menu/menu-protocol.d.ts.map +1 -0
- package/es/core/menu/menu-protocol.js +72 -0
- package/es/core/menu/menu-registry.d.ts +92 -0
- package/es/core/menu/menu-registry.d.ts.map +1 -0
- package/es/core/menu/menu-registry.js +296 -0
- package/es/core/menu/module.d.ts +3 -0
- package/es/core/menu/module.d.ts.map +1 -0
- package/es/core/menu/module.js +31 -0
- package/es/core/module/index.d.ts +4 -0
- package/es/core/module/index.d.ts.map +1 -0
- package/es/core/module/index.js +3 -0
- package/es/core/module/mana-module-context.d.ts +7 -0
- package/es/core/module/mana-module-context.d.ts.map +1 -0
- package/es/core/module/mana-module-context.js +111 -0
- package/es/core/module/mana-module.d.ts +21 -0
- package/es/core/module/mana-module.d.ts.map +1 -0
- package/es/core/module/mana-module.js +71 -0
- package/es/core/module/module-protocol.d.ts +10 -0
- package/es/core/module/module-protocol.d.ts.map +1 -0
- package/es/core/module/module-protocol.js +1 -0
- package/es/core/nls.d.ts +19 -0
- package/es/core/nls.d.ts.map +1 -0
- package/es/core/nls.js +25 -0
- package/es/core/selection/index.d.ts +4 -0
- package/es/core/selection/index.d.ts.map +1 -0
- package/es/core/selection/index.js +4 -0
- package/es/core/selection/selection-service.d.ts +13 -0
- package/es/core/selection/selection-service.d.ts.map +1 -0
- package/es/core/selection/selection-service.js +27 -0
- package/es/core/theme/base-variable-registry.d.ts +31 -0
- package/es/core/theme/base-variable-registry.d.ts.map +1 -0
- package/es/core/theme/base-variable-registry.js +180 -0
- package/es/core/theme/basic/antd-variable-contribution.d.ts +6 -0
- package/es/core/theme/basic/antd-variable-contribution.d.ts.map +1 -0
- package/es/core/theme/basic/antd-variable-contribution.js +667 -0
- package/es/core/theme/basic/default-variable-contribution.d.ts +6 -0
- package/es/core/theme/basic/default-variable-contribution.d.ts.map +1 -0
- package/es/core/theme/basic/default-variable-contribution.js +212 -0
- package/es/core/theme/basic/index.d.ts +3 -0
- package/es/core/theme/basic/index.d.ts.map +1 -0
- package/es/core/theme/basic/index.js +2 -0
- package/es/core/theme/basic/variable-protocol.d.ts +7 -0
- package/es/core/theme/basic/variable-protocol.d.ts.map +1 -0
- package/es/core/theme/basic/variable-protocol.js +2 -0
- package/es/core/theme/basic/variable-registry.d.ts +13 -0
- package/es/core/theme/basic/variable-registry.d.ts.map +1 -0
- package/es/core/theme/basic/variable-registry.js +62 -0
- package/es/core/theme/color/antd-color-contribution.d.ts +6 -0
- package/es/core/theme/color/antd-color-contribution.d.ts.map +1 -0
- package/es/core/theme/color/antd-color-contribution.js +787 -0
- package/es/core/theme/color/color-protocol.d.ts +10 -0
- package/es/core/theme/color/color-protocol.d.ts.map +1 -0
- package/es/core/theme/color/color-protocol.js +2 -0
- package/es/core/theme/color/color-registry.d.ts +72 -0
- package/es/core/theme/color/color-registry.d.ts.map +1 -0
- package/es/core/theme/color/color-registry.js +176 -0
- package/es/core/theme/color/color.d.ts +165 -0
- package/es/core/theme/color/color.d.ts.map +1 -0
- package/es/core/theme/color/color.js +658 -0
- package/es/core/theme/color/default-color-contribution.d.ts +6 -0
- package/es/core/theme/color/default-color-contribution.d.ts.map +1 -0
- package/es/core/theme/color/default-color-contribution.js +550 -0
- package/es/core/theme/color/index.d.ts +3 -0
- package/es/core/theme/color/index.d.ts.map +1 -0
- package/es/core/theme/color/index.js +2 -0
- package/es/core/theme/index.d.ts +8 -0
- package/es/core/theme/index.d.ts.map +1 -0
- package/es/core/theme/index.js +22 -0
- package/es/core/theme/protocol.d.ts +16 -0
- package/es/core/theme/protocol.d.ts.map +1 -0
- package/es/core/theme/protocol.js +1 -0
- package/es/core/theme/style/mana-logo.png +0 -0
- package/es/core/theme/style/theme-base.less +3 -0
- package/es/core/theme/theme-app.d.ts +24 -0
- package/es/core/theme/theme-app.d.ts.map +1 -0
- package/es/core/theme/theme-app.js +151 -0
- package/es/core/theme/theme-service.d.ts +50 -0
- package/es/core/theme/theme-service.d.ts.map +1 -0
- package/es/core/theme/theme-service.js +181 -0
- package/es/core/toolbar/default-toolbar-item.d.ts +38 -0
- package/es/core/toolbar/default-toolbar-item.d.ts.map +1 -0
- package/es/core/toolbar/default-toolbar-item.js +82 -0
- package/es/core/toolbar/index.d.ts +6 -0
- package/es/core/toolbar/index.d.ts.map +1 -0
- package/es/core/toolbar/index.js +20 -0
- package/es/core/toolbar/toolbar-protocol.d.ts +77 -0
- package/es/core/toolbar/toolbar-protocol.d.ts.map +1 -0
- package/es/core/toolbar/toolbar-protocol.js +32 -0
- package/es/core/toolbar/toolbar-registry.d.ts +37 -0
- package/es/core/toolbar/toolbar-registry.d.ts.map +1 -0
- package/es/core/toolbar/toolbar-registry.js +96 -0
- package/es/core/typings/native-keymap.d.ts +72 -0
- package/es/core/utils/hooks.d.ts +12 -0
- package/es/core/utils/hooks.d.ts.map +1 -0
- package/es/core/utils/hooks.js +103 -0
- package/es/core/utils/index.d.ts +4 -0
- package/es/core/utils/index.d.ts.map +1 -0
- package/es/core/utils/index.js +3 -0
- package/es/core/utils/lifecycle.d.ts +75 -0
- package/es/core/utils/lifecycle.d.ts.map +1 -0
- package/es/core/utils/lifecycle.js +350 -0
- package/es/core/utils/map.d.ts +148 -0
- package/es/core/utils/map.d.ts.map +1 -0
- package/es/core/utils/map.js +1196 -0
- package/es/core/view/decorator.d.ts +19 -0
- package/es/core/view/decorator.d.ts.map +1 -0
- package/es/core/view/decorator.js +106 -0
- package/es/core/view/default-slot-view.d.ts +48 -0
- package/es/core/view/default-slot-view.d.ts.map +1 -0
- package/es/core/view/default-slot-view.js +289 -0
- package/es/core/view/default-view.d.ts +35 -0
- package/es/core/view/default-view.d.ts.map +1 -0
- package/es/core/view/default-view.js +90 -0
- package/es/core/view/focus-tracker.d.ts +165 -0
- package/es/core/view/focus-tracker.d.ts.map +1 -0
- package/es/core/view/focus-tracker.js +411 -0
- package/es/core/view/hooks.d.ts +8 -0
- package/es/core/view/hooks.d.ts.map +1 -0
- package/es/core/view/hooks.js +35 -0
- package/es/core/view/index.d.ts +23 -0
- package/es/core/view/index.d.ts.map +1 -0
- package/es/core/view/index.js +22 -0
- package/es/core/view/index.less +4 -0
- package/es/core/view/module.d.ts +3 -0
- package/es/core/view/module.d.ts.map +1 -0
- package/es/core/view/module.js +22 -0
- package/es/core/view/navigatable-types.d.ts +33 -0
- package/es/core/view/navigatable-types.d.ts.map +1 -0
- package/es/core/view/navigatable-types.js +34 -0
- package/es/core/view/navigatable.d.ts +9 -0
- package/es/core/view/navigatable.d.ts.map +1 -0
- package/es/core/view/navigatable.js +47 -0
- package/es/core/view/open-handler.d.ts +71 -0
- package/es/core/view/open-handler.d.ts.map +1 -0
- package/es/core/view/open-handler.js +167 -0
- package/es/core/view/portal-slot-view.d.ts +21 -0
- package/es/core/view/portal-slot-view.d.ts.map +1 -0
- package/es/core/view/portal-slot-view.js +157 -0
- package/es/core/view/root-view.d.ts +26 -0
- package/es/core/view/root-view.d.ts.map +1 -0
- package/es/core/view/root-view.js +139 -0
- package/es/core/view/saveable.d.ts +40 -0
- package/es/core/view/saveable.d.ts.map +1 -0
- package/es/core/view/saveable.js +152 -0
- package/es/core/view/slot-view-manager.d.ts +57 -0
- package/es/core/view/slot-view-manager.d.ts.map +1 -0
- package/es/core/view/slot-view-manager.js +321 -0
- package/es/core/view/slot.d.ts +11 -0
- package/es/core/view/slot.d.ts.map +1 -0
- package/es/core/view/slot.js +57 -0
- package/es/core/view/stateful-view.d.ts +12 -0
- package/es/core/view/stateful-view.d.ts.map +1 -0
- package/es/core/view/stateful-view.js +38 -0
- package/es/core/view/title.d.ts +13 -0
- package/es/core/view/title.d.ts.map +1 -0
- package/es/core/view/title.js +48 -0
- package/es/core/view/utils.d.ts +15 -0
- package/es/core/view/utils.d.ts.map +1 -0
- package/es/core/view/utils.js +35 -0
- package/es/core/view/view-application.d.ts +18 -0
- package/es/core/view/view-application.d.ts.map +1 -0
- package/es/core/view/view-application.js +171 -0
- package/es/core/view/view-container.d.ts +20 -0
- package/es/core/view/view-container.d.ts.map +1 -0
- package/es/core/view/view-container.js +82 -0
- package/es/core/view/view-context.d.ts +8 -0
- package/es/core/view/view-context.d.ts.map +1 -0
- package/es/core/view/view-context.js +29 -0
- package/es/core/view/view-decoration.d.ts +149 -0
- package/es/core/view/view-decoration.d.ts.map +1 -0
- package/es/core/view/view-decoration.js +4 -0
- package/es/core/view/view-manager.d.ts +66 -0
- package/es/core/view/view-manager.d.ts.map +1 -0
- package/es/core/view/view-manager.js +434 -0
- package/es/core/view/view-meta.d.ts +12 -0
- package/es/core/view/view-meta.d.ts.map +1 -0
- package/es/core/view/view-meta.js +35 -0
- package/es/core/view/view-open-handler.d.ts +76 -0
- package/es/core/view/view-open-handler.d.ts.map +1 -0
- package/es/core/view/view-open-handler.js +227 -0
- package/es/core/view/view-protocol.d.ts +171 -0
- package/es/core/view/view-protocol.d.ts.map +1 -0
- package/es/core/view/view-protocol.js +58 -0
- package/es/core/view/view-render.d.ts +9 -0
- package/es/core/view/view-render.d.ts.map +1 -0
- package/es/core/view/view-render.js +37 -0
- package/es/core/view/view-storage.d.ts +40 -0
- package/es/core/view/view-storage.d.ts.map +1 -0
- package/es/core/view/view-storage.js +310 -0
- package/es/index.js +2 -1
- package/es/ioc/container-api.d.ts +9 -0
- package/es/ioc/container-api.d.ts.map +1 -0
- package/es/ioc/container-api.js +32 -0
- package/es/ioc/container.d.ts +37 -0
- package/es/ioc/container.d.ts.map +1 -0
- package/es/ioc/container.js +191 -0
- package/es/ioc/contribution/contribution-protocol.d.ts +24 -0
- package/es/ioc/contribution/contribution-protocol.d.ts.map +1 -0
- package/es/ioc/contribution/contribution-protocol.js +16 -0
- package/es/ioc/contribution/contribution-provider.d.ts +21 -0
- package/es/ioc/contribution/contribution-provider.d.ts.map +1 -0
- package/es/ioc/contribution/contribution-provider.js +81 -0
- package/es/ioc/contribution/contribution-register.d.ts +5 -0
- package/es/ioc/contribution/contribution-register.d.ts.map +1 -0
- package/es/ioc/contribution/contribution-register.js +27 -0
- package/es/ioc/contribution/decorator.d.ts +3 -0
- package/es/ioc/contribution/decorator.d.ts.map +1 -0
- package/es/ioc/contribution/decorator.js +8 -0
- package/es/ioc/contribution/index.d.ts +12 -0
- package/es/ioc/contribution/index.d.ts.map +1 -0
- package/es/ioc/contribution/index.js +10 -0
- package/es/ioc/core.d.ts +105 -0
- package/es/ioc/core.d.ts.map +1 -0
- package/es/ioc/core.js +104 -0
- package/es/ioc/decorator.d.ts +9 -0
- package/es/ioc/decorator.d.ts.map +1 -0
- package/es/ioc/decorator.js +56 -0
- package/es/ioc/features/auto-factory.d.ts +8 -0
- package/es/ioc/features/auto-factory.d.ts.map +1 -0
- package/es/ioc/features/auto-factory.js +34 -0
- package/es/ioc/features/prioritized-contribution.d.ts +12 -0
- package/es/ioc/features/prioritized-contribution.d.ts.map +1 -0
- package/es/ioc/features/prioritized-contribution.js +40 -0
- package/es/ioc/index.d.ts +9 -0
- package/es/ioc/index.d.ts.map +1 -0
- package/es/ioc/index.js +8 -0
- package/es/ioc/inversify-api/index.d.ts +15 -0
- package/es/ioc/inversify-api/index.d.ts.map +1 -0
- package/es/ioc/inversify-api/index.js +48 -0
- package/es/ioc/inversify-api/inversify-protocol.d.ts +13 -0
- package/es/ioc/inversify-api/inversify-protocol.d.ts.map +1 -0
- package/es/ioc/inversify-api/inversify-protocol.js +7 -0
- package/es/ioc/module/index.d.ts +4 -0
- package/es/ioc/module/index.d.ts.map +1 -0
- package/es/ioc/module/index.js +5 -0
- package/es/ioc/module/syringe-module.d.ts +29 -0
- package/es/ioc/module/syringe-module.d.ts.map +1 -0
- package/es/ioc/module/syringe-module.js +110 -0
- package/es/ioc/register.d.ts +33 -0
- package/es/ioc/register.d.ts.map +1 -0
- package/es/ioc/register.js +194 -0
- package/es/ioc/side-option.d.ts +4 -0
- package/es/ioc/side-option.d.ts.map +1 -0
- package/es/ioc/side-option.js +4 -0
- package/es/l10n/index.d.ts +3 -0
- package/es/l10n/index.d.ts.map +1 -0
- package/es/l10n/index.js +2 -0
- package/es/l10n/l10n/index.d.ts +144 -0
- package/es/l10n/l10n/index.d.ts.map +1 -0
- package/es/l10n/l10n/index.js +269 -0
- package/es/l10n/l10n/platform.d.ts +3 -0
- package/es/l10n/l10n/platform.d.ts.map +1 -0
- package/es/l10n/l10n/platform.js +20 -0
- package/es/l10n/lang/bundle.l10n.en-US.json +5 -0
- package/es/l10n/lang/bundle.l10n.zh-CN.json +5 -0
- package/es/l10n/lang/index.d.ts +3 -0
- package/es/l10n/lang/index.d.ts.map +1 -0
- package/es/l10n/lang/index.js +6 -0
- package/es/observable/async-event.d.ts +28 -0
- package/es/observable/async-event.d.ts.map +1 -0
- package/es/observable/async-event.js +158 -0
- package/es/observable/config.d.ts +10 -0
- package/es/observable/config.d.ts.map +1 -0
- package/es/observable/config.js +58 -0
- package/es/observable/context.d.ts +15 -0
- package/es/observable/context.d.ts.map +1 -0
- package/es/observable/context.js +44 -0
- package/es/observable/core.d.ts +24 -0
- package/es/observable/core.d.ts.map +1 -0
- package/es/observable/core.js +11 -0
- package/es/observable/decorator.d.ts +9 -0
- package/es/observable/decorator.d.ts.map +1 -0
- package/es/observable/decorator.js +19 -0
- package/es/observable/hooks.d.ts +6 -0
- package/es/observable/hooks.d.ts.map +1 -0
- package/es/observable/hooks.js +44 -0
- package/es/observable/index.d.ts +12 -0
- package/es/observable/index.d.ts.map +1 -0
- package/es/observable/index.js +11 -0
- package/es/observable/notifiable.d.ts +19 -0
- package/es/observable/notifiable.d.ts.map +1 -0
- package/es/observable/notifiable.js +198 -0
- package/es/observable/notifier.d.ts +33 -0
- package/es/observable/notifier.d.ts.map +1 -0
- package/es/observable/notifier.js +154 -0
- package/es/observable/observable.d.ts +3 -0
- package/es/observable/observable.d.ts.map +1 -0
- package/es/observable/observable.js +87 -0
- package/es/observable/tracker.d.ts +27 -0
- package/es/observable/tracker.d.ts.map +1 -0
- package/es/observable/tracker.js +225 -0
- package/es/observable/utils.d.ts +31 -0
- package/es/observable/utils.d.ts.map +1 -0
- package/es/observable/utils.js +139 -0
- package/es/observable/watch.d.ts +5 -0
- package/es/observable/watch.d.ts.map +1 -0
- package/es/observable/watch.js +56 -0
- package/es/polling/poll.d.ts +3 -3
- package/es/polling/poll.d.ts.map +1 -1
- package/es/polling/poll.js +1 -1
- package/es/polling/protocol.d.ts +1 -1
- package/es/polling/protocol.d.ts.map +1 -1
- package/es/protocol/cell-protocol.d.ts +1 -1
- package/es/protocol/cell-protocol.d.ts.map +1 -1
- package/es/protocol/cell-protocol.js +1 -1
- package/es/react/constant.d.ts +2 -0
- package/es/react/constant.d.ts.map +1 -0
- package/es/react/constant.js +1 -0
- package/es/react/dropdown/index.d.ts +23 -0
- package/es/react/dropdown/index.d.ts.map +1 -0
- package/es/react/dropdown/index.js +53 -0
- package/es/react/dropdown/styles/index.less +121 -0
- package/es/react/index.d.ts +8 -0
- package/es/react/index.d.ts.map +1 -0
- package/es/react/index.js +7 -0
- package/es/react/layout/boxpanel/Pane.d.ts +13 -0
- package/es/react/layout/boxpanel/Pane.d.ts.map +1 -0
- package/es/react/layout/boxpanel/Pane.js +37 -0
- package/es/react/layout/boxpanel/context.d.ts +8 -0
- package/es/react/layout/boxpanel/context.d.ts.map +1 -0
- package/es/react/layout/boxpanel/context.js +4 -0
- package/es/react/layout/boxpanel/index.d.ts +19 -0
- package/es/react/layout/boxpanel/index.d.ts.map +1 -0
- package/es/react/layout/boxpanel/index.js +46 -0
- package/es/react/layout/boxpanel/styles/index.less +14 -0
- package/es/react/layout/layout.d.ts +12 -0
- package/es/react/layout/layout.d.ts.map +1 -0
- package/es/react/layout/layout.js +68 -0
- package/es/react/layout/splitpanel/context.d.ts +15 -0
- package/es/react/layout/splitpanel/context.d.ts.map +1 -0
- package/es/react/layout/splitpanel/context.js +24 -0
- package/es/react/layout/splitpanel/index.d.ts +23 -0
- package/es/react/layout/splitpanel/index.d.ts.map +1 -0
- package/es/react/layout/splitpanel/index.js +287 -0
- package/es/react/layout/splitpanel/pane.d.ts +18 -0
- package/es/react/layout/splitpanel/pane.d.ts.map +1 -0
- package/es/react/layout/splitpanel/pane.js +8 -0
- package/es/react/layout/splitpanel/styles/index.less +10 -0
- package/es/react/menu/context.d.ts +8 -0
- package/es/react/menu/context.d.ts.map +1 -0
- package/es/react/menu/context.js +4 -0
- package/es/react/menu/divider.d.ts +3 -0
- package/es/react/menu/divider.d.ts.map +1 -0
- package/es/react/menu/divider.js +10 -0
- package/es/react/menu/index.d.ts +4 -0
- package/es/react/menu/index.d.ts.map +1 -0
- package/es/react/menu/index.js +3 -0
- package/es/react/menu/item.d.ts +19 -0
- package/es/react/menu/item.d.ts.map +1 -0
- package/es/react/menu/item.js +69 -0
- package/es/react/menu/menu.d.ts +17 -0
- package/es/react/menu/menu.d.ts.map +1 -0
- package/es/react/menu/menu.js +35 -0
- package/es/react/menu/styles/index.less +163 -0
- package/es/react/menu/submenu.d.ts +5 -0
- package/es/react/menu/submenu.d.ts.map +1 -0
- package/es/react/menu/submenu.js +33 -0
- package/es/react/menubar/context.d.ts +14 -0
- package/es/react/menubar/context.d.ts.map +1 -0
- package/es/react/menubar/context.js +2 -0
- package/es/react/menubar/index.d.ts +2 -0
- package/es/react/menubar/index.d.ts.map +1 -0
- package/es/react/menubar/index.js +1 -0
- package/es/react/menubar/item.d.ts +8 -0
- package/es/react/menubar/item.d.ts.map +1 -0
- package/es/react/menubar/item.js +94 -0
- package/es/react/menubar/menubar.d.ts +15 -0
- package/es/react/menubar/menubar.d.ts.map +1 -0
- package/es/react/menubar/menubar.js +119 -0
- package/es/react/menubar/styles/index.less +113 -0
- package/es/react/notification/index.d.ts +20 -0
- package/es/react/notification/index.d.ts.map +1 -0
- package/es/react/notification/index.js +154 -0
- package/es/react/notification/protocol.d.ts +111 -0
- package/es/react/notification/protocol.d.ts.map +1 -0
- package/es/react/notification/protocol.js +61 -0
- package/es/react/notification/pure-panel.d.ts +28 -0
- package/es/react/notification/pure-panel.d.ts.map +1 -0
- package/es/react/notification/pure-panel.js +115 -0
- package/es/react/notification/render.d.ts +10 -0
- package/es/react/notification/render.d.ts.map +1 -0
- package/es/react/notification/render.js +101 -0
- package/es/react/notification/style/index.d.ts +2 -0
- package/es/react/notification/style/index.d.ts.map +1 -0
- package/es/react/notification/style/index.js +1 -0
- package/es/react/notification/style/index.less +192 -0
- package/es/react/notification/style/placement.less +68 -0
- package/es/react/notification/use-notification.d.ts +9 -0
- package/es/react/notification/use-notification.d.ts.map +1 -0
- package/es/react/notification/use-notification.js +173 -0
- package/es/react/resize/index.d.ts +41 -0
- package/es/react/resize/index.d.ts.map +1 -0
- package/es/react/resize/index.js +640 -0
- package/es/react/resize/styles/index.less +83 -0
- package/es/react/styles/variables.less +2 -0
- package/es/react/tabs/index.d.ts +19 -0
- package/es/react/tabs/index.d.ts.map +1 -0
- package/es/react/tabs/index.js +51 -0
- package/es/react/tabs/styles/card.less +111 -0
- package/es/react/tabs/styles/dropdown.less +70 -0
- package/es/react/tabs/styles/index.less +231 -0
- package/es/react/tabs/styles/position.less +217 -0
- package/es/react/typings/index.d.ts +5 -0
- package/es/react/util.d.ts +2 -0
- package/es/react/util.d.ts.map +1 -0
- package/es/react/util.js +4 -0
- package/es/url.js +1 -1
- package/package.json +55 -11
- package/src/app/app.tsx +23 -0
- package/src/app/file-tree/file-selection.ts +33 -0
- package/src/app/file-tree/file-service.ts +67 -0
- package/src/app/file-tree/file-tree-component.tsx +11 -0
- package/src/app/file-tree/file-tree-icon.tsx +15 -0
- package/src/app/file-tree/file-tree-label-provider.ts +54 -0
- package/src/app/file-tree/file-tree-model.ts +240 -0
- package/src/app/file-tree/file-tree-protocol.ts +35 -0
- package/src/app/file-tree/file-tree-view.tsx +340 -0
- package/src/app/file-tree/file-tree.ts +193 -0
- package/src/app/file-tree/files.ts +990 -0
- package/src/app/file-tree/filesystem-utils.ts +32 -0
- package/src/app/file-tree/index.ts +6 -0
- package/src/app/file-tree/module.ts +21 -0
- package/src/app/file-tree/selection-command-handler.ts +101 -0
- package/src/app/file-tree/style/file-icon.less +51 -0
- package/src/app/index.spec.ts +20 -0
- package/src/app/index.ts +37 -0
- package/src/app/label/index.ts +12 -0
- package/src/app/label/label-provider.tsx +454 -0
- package/src/app/menu/index.ts +24 -0
- package/src/app/menu/menu-bar-render.tsx +52 -0
- package/src/app/menu/menu-color-registry.ts +52 -0
- package/src/app/menu/menu-context.tsx +16 -0
- package/src/app/menu/menu-item-keeper.tsx +55 -0
- package/src/app/menu/menu-item-render.tsx +15 -0
- package/src/app/menu/menu-protocol.ts +22 -0
- package/src/app/menu/menu-render.tsx +92 -0
- package/src/app/menu/menu.tsx +212 -0
- package/src/app/modal/index.ts +29 -0
- package/src/app/modal/modal-contribution.ts +13 -0
- package/src/app/modal/modal-protocol.tsx +30 -0
- package/src/app/modal/modal-render.tsx +22 -0
- package/src/app/modal/modal-service.ts +166 -0
- package/src/app/notification/index.less +20 -0
- package/src/app/notification/index.ts +8 -0
- package/src/app/notification/protocol.ts +16 -0
- package/src/app/notification/service.tsx +60 -0
- package/src/app/style/index.less +181 -0
- package/src/app/style/style-protocol.ts +13 -0
- package/src/app/toolbar/index.less +40 -0
- package/src/app/toolbar/index.ts +20 -0
- package/src/app/toolbar/toolbar-item-keeper.tsx +45 -0
- package/src/app/toolbar/toolbar-item-render.tsx +23 -0
- package/src/app/toolbar/toolbar-protocol.ts +10 -0
- package/src/app/toolbar/toolbar-render.tsx +102 -0
- package/src/app/toolbar/toolbar-visible-render.tsx +21 -0
- package/src/app/toolbar/toolbar.tsx +241 -0
- package/src/app/tree/components/index.tsx +22 -0
- package/src/app/tree/components/tree-ident.tsx +44 -0
- package/src/app/tree/components/tree-node-caption-affix.tsx +47 -0
- package/src/app/tree/components/tree-node-caption.tsx +128 -0
- package/src/app/tree/components/tree-node-expansion.tsx +36 -0
- package/src/app/tree/components/tree-node-icon-decorator.tsx +75 -0
- package/src/app/tree/components/tree-node-icon.tsx +3 -0
- package/src/app/tree/components/tree-node-tail-decoration.tsx +59 -0
- package/src/app/tree/components/tree-node.tsx +38 -0
- package/src/app/tree/components/tree-switch-icon.tsx +13 -0
- package/src/app/tree/index.ts +15 -0
- package/src/app/tree/module.ts +30 -0
- package/src/app/tree/style/index.less +206 -0
- package/src/app/tree/style/tree-decorator.less +65 -0
- package/src/app/tree/tree-decorator.ts +216 -0
- package/src/app/tree/tree-expansion.ts +162 -0
- package/src/app/tree/tree-impl.ts +182 -0
- package/src/app/tree/tree-iterator.ts +243 -0
- package/src/app/tree/tree-label-provider.ts +23 -0
- package/src/app/tree/tree-model.ts +468 -0
- package/src/app/tree/tree-navigation.ts +41 -0
- package/src/app/tree/tree-protocol.ts +77 -0
- package/src/app/tree/tree-selection-impl.ts +169 -0
- package/src/app/tree/tree-selection-state.ts +271 -0
- package/src/app/tree/tree-selection.ts +138 -0
- package/src/app/tree/tree-view-decoration.ts +349 -0
- package/src/app/tree/tree.ts +288 -0
- package/src/app/tree/view/index.less +3 -0
- package/src/app/tree/view/index.ts +3 -0
- package/src/app/tree/view/tree-view-decorator.ts +91 -0
- package/src/app/tree/view/tree-view-module.ts +16 -0
- package/src/app/tree/view/tree-view-selection.ts +33 -0
- package/src/app/tree/view/tree-view.tsx +925 -0
- package/src/app/typings/index.d.ts +7 -0
- package/src/app/view/box/index.tsx +66 -0
- package/src/app/view/components/index.ts +1 -0
- package/src/app/view/components/loading/index.less +10 -0
- package/src/app/view/components/loading/index.tsx +4 -0
- package/src/app/view/flex/index.less +3 -0
- package/src/app/view/flex/index.tsx +57 -0
- package/src/app/view/header/header-view.tsx +35 -0
- package/src/app/view/header/index.less +43 -0
- package/src/app/view/header/index.ts +24 -0
- package/src/app/view/index.ts +15 -0
- package/src/app/view/tab/card-tab-view.tsx +34 -0
- package/src/app/view/tab/index.less +70 -0
- package/src/app/view/tab/index.ts +3 -0
- package/src/app/view/tab/side-tab-view.tsx +95 -0
- package/src/app/view/tab/tab-menu.ts +24 -0
- package/src/app/view/tab/tab-protocol.ts +3 -0
- package/src/app/view/tab/tab-view.tsx +153 -0
- package/src/common/assert.ts +13 -0
- package/src/common/cancellation.spec.ts +160 -0
- package/src/common/cancellation.ts +143 -0
- package/src/common/charCode.ts +434 -0
- package/src/common/collections.ts +158 -0
- package/src/common/deferred.ts +17 -0
- package/src/common/disposable-collection.ts +87 -0
- package/src/common/disposable.spec.ts +93 -0
- package/src/common/disposable.ts +41 -0
- package/src/common/event.spec.ts +182 -0
- package/src/common/event.ts +249 -0
- package/src/common/index.ts +27 -0
- package/src/common/iterator.ts +228 -0
- package/src/common/linkedList.ts +125 -0
- package/src/common/objects.ts +249 -0
- package/src/common/observable-disposable.ts +12 -0
- package/src/common/path.spec.ts +33 -0
- package/src/common/path.ts +226 -0
- package/src/common/platform.ts +281 -0
- package/src/common/priority.ts +79 -0
- package/src/common/promise-util.spec.ts +68 -0
- package/src/common/promise-util.ts +34 -0
- package/src/common/stopwatch.ts +40 -0
- package/src/common/strings.ts +513 -0
- package/src/common/types.spec.ts +16 -0
- package/src/common/types.ts +30 -0
- package/src/common/uint.ts +59 -0
- package/src/common/uri.spec.ts +73 -0
- package/src/common/uri.ts +208 -0
- package/src/common/utils.spec.ts +22 -0
- package/src/common/utils.ts +35 -0
- package/src/common/valueTypes.ts +311 -0
- package/src/common/vscode-uri/char-code.ts +438 -0
- package/src/common/vscode-uri/index.ts +11 -0
- package/src/common/vscode-uri/platform.ts +20 -0
- package/src/common/vscode-uri/uri.ts +757 -0
- package/src/common/vscode-uri/utils.ts +101 -0
- package/src/common/wait-until-event.spec.ts +70 -0
- package/src/common/wait-until-event.ts +49 -0
- package/src/core/application/application-protocol.ts +20 -0
- package/src/core/application/application-state.ts +68 -0
- package/src/core/application/application.ts +294 -0
- package/src/core/application/default-window-service.ts +66 -0
- package/src/core/application/index.ts +12 -0
- package/src/core/application/mock-window-service.ts +17 -0
- package/src/core/browser.ts +144 -0
- package/src/core/command/command-protocol.ts +152 -0
- package/src/core/command/command-registry.ts +432 -0
- package/src/core/command/index.ts +10 -0
- package/src/core/common/debug.ts +6 -0
- package/src/core/common/index.ts +23 -0
- package/src/core/common/storage-protocol.ts +25 -0
- package/src/core/common/storage-service.ts +81 -0
- package/src/core/components/application.tsx +144 -0
- package/src/core/components/context.tsx +67 -0
- package/src/core/components/hooks.tsx +23 -0
- package/src/core/components/index.less +28 -0
- package/src/core/components/index.tsx +10 -0
- package/src/core/components/root-view-render.tsx +13 -0
- package/src/core/configuration/configuration-cache.ts +50 -0
- package/src/core/configuration/configuration-protocol.ts +55 -0
- package/src/core/configuration/configuration-provider.ts +105 -0
- package/src/core/configuration/configuration-registry.ts +237 -0
- package/src/core/configuration/configuration-render-registry.ts +93 -0
- package/src/core/configuration/configuration-service.ts +190 -0
- package/src/core/configuration/configuration-storage.ts +26 -0
- package/src/core/configuration/configuration.test.ts +7 -0
- package/src/core/configuration/hooks.ts +39 -0
- package/src/core/configuration/index.ts +10 -0
- package/src/core/configuration/module.ts +34 -0
- package/src/core/configuration/typings.d.ts +1 -0
- package/src/core/configuration/validation.ts +33 -0
- package/src/core/context/data-context-manager.ts +65 -0
- package/src/core/context/data-context-protocol.ts +21 -0
- package/src/core/context/data-context.tsx +40 -0
- package/src/core/context/index.ts +15 -0
- package/src/core/index.spec.ts +14 -0
- package/src/core/index.ts +57 -0
- package/src/core/keybinding/context-key-service.ts +77 -0
- package/src/core/keybinding/index.ts +5 -0
- package/src/core/keybinding/keybinding-proocol.ts +15 -0
- package/src/core/keybinding/keybinding.ts +857 -0
- package/src/core/keybinding/module.ts +23 -0
- package/src/core/keybinding/vs/configuration/configuration.ts +460 -0
- package/src/core/keybinding/vs/configuration/configurationModels.ts +962 -0
- package/src/core/keybinding/vs/configuration/configurationRegistry.ts +617 -0
- package/src/core/keybinding/vs/configuration/configurationService.ts +172 -0
- package/src/core/keybinding/vs/configuration/json.ts +1509 -0
- package/src/core/keybinding/vs/contextKeyService.ts +694 -0
- package/src/core/keybinding/vs/contextkey.ts +1494 -0
- package/src/core/keybinding/vs/contextkeys.ts +52 -0
- package/src/core/keybinding/vs/jsonContributionRegistry.ts +74 -0
- package/src/core/keybinding/vs/jsonSchema.ts +85 -0
- package/src/core/keybinding/vs/platform.test.ts +50 -0
- package/src/core/keybinding/vs/platform.ts +50 -0
- package/src/core/keyboard/browser-keyboard-layout-provider.ts +455 -0
- package/src/core/keyboard/index.ts +4 -0
- package/src/core/keyboard/keyboard-layout-service.ts +490 -0
- package/src/core/keyboard/keyboard-protocol.ts +34 -0
- package/src/core/keyboard/keys.ts +787 -0
- package/src/core/keyboard/layouts/cs-Czech-mac.json +1 -0
- package/src/core/keyboard/layouts/cs-Czech-mac.ts +53 -0
- package/src/core/keyboard/layouts/cs-Czech-pc.json +1 -0
- package/src/core/keyboard/layouts/cs-Czech-pc.ts +55 -0
- package/src/core/keyboard/layouts/da-Danish-mac.json +1 -0
- package/src/core/keyboard/layouts/da-Danish-mac.ts +53 -0
- package/src/core/keyboard/layouts/da-Danish-pc.json +1 -0
- package/src/core/keyboard/layouts/da-Danish-pc.ts +55 -0
- package/src/core/keyboard/layouts/de-German-mac.json +1 -0
- package/src/core/keyboard/layouts/de-German-mac.ts +53 -0
- package/src/core/keyboard/layouts/de-German-pc.json +1 -0
- package/src/core/keyboard/layouts/de-German-pc.ts +61 -0
- package/src/core/keyboard/layouts/de-Swiss_German-mac.json +1 -0
- package/src/core/keyboard/layouts/de-Swiss_German-mac.ts +53 -0
- package/src/core/keyboard/layouts/de-Swiss_German-pc.json +1 -0
- package/src/core/keyboard/layouts/de-Swiss_German-pc.ts +55 -0
- package/src/core/keyboard/layouts/en-British-mac.json +1 -0
- package/src/core/keyboard/layouts/en-British-mac.ts +53 -0
- package/src/core/keyboard/layouts/en-British-pc.json +1 -0
- package/src/core/keyboard/layouts/en-British-pc.ts +91 -0
- package/src/core/keyboard/layouts/en-Colemak-mac.json +1 -0
- package/src/core/keyboard/layouts/en-Colemak-mac.ts +53 -0
- package/src/core/keyboard/layouts/en-Dvorak-mac.json +1 -0
- package/src/core/keyboard/layouts/en-Dvorak-mac.ts +53 -0
- package/src/core/keyboard/layouts/en-Dvorak-pc.json +1 -0
- package/src/core/keyboard/layouts/en-Dvorak-pc.ts +55 -0
- package/src/core/keyboard/layouts/en-Dvorak_Lefthanded-mac.json +1 -0
- package/src/core/keyboard/layouts/en-Dvorak_Lefthanded-mac.ts +53 -0
- package/src/core/keyboard/layouts/en-Dvorak_Lefthanded-pc.json +1 -0
- package/src/core/keyboard/layouts/en-Dvorak_Lefthanded-pc.ts +55 -0
- package/src/core/keyboard/layouts/en-Dvorak_Righthanded-mac.json +1 -0
- package/src/core/keyboard/layouts/en-Dvorak_Righthanded-mac.ts +53 -0
- package/src/core/keyboard/layouts/en-Dvorak_Righthanded-pc.json +1 -0
- package/src/core/keyboard/layouts/en-Dvorak_Righthanded-pc.ts +55 -0
- package/src/core/keyboard/layouts/en-US-mac.json +1 -0
- package/src/core/keyboard/layouts/en-US-mac.ts +53 -0
- package/src/core/keyboard/layouts/en-US-pc.json +1 -0
- package/src/core/keyboard/layouts/en-US-pc.ts +55 -0
- package/src/core/keyboard/layouts/es-Spanish-mac.json +1 -0
- package/src/core/keyboard/layouts/es-Spanish-mac.ts +53 -0
- package/src/core/keyboard/layouts/es-Spanish-pc.json +1 -0
- package/src/core/keyboard/layouts/es-Spanish-pc.ts +55 -0
- package/src/core/keyboard/layouts/fr-Bepo-pc.json +1 -0
- package/src/core/keyboard/layouts/fr-Bepo-pc.ts +289 -0
- package/src/core/keyboard/layouts/fr-Canadian_French-mac.json +1 -0
- package/src/core/keyboard/layouts/fr-Canadian_French-mac.ts +53 -0
- package/src/core/keyboard/layouts/fr-Canadian_French-pc.json +1 -0
- package/src/core/keyboard/layouts/fr-Canadian_French-pc.ts +55 -0
- package/src/core/keyboard/layouts/fr-French-mac.json +1 -0
- package/src/core/keyboard/layouts/fr-French-mac.ts +53 -0
- package/src/core/keyboard/layouts/fr-French-pc.json +1 -0
- package/src/core/keyboard/layouts/fr-French-pc.ts +55 -0
- package/src/core/keyboard/layouts/fr-Swiss_French-mac.json +1 -0
- package/src/core/keyboard/layouts/fr-Swiss_French-mac.ts +53 -0
- package/src/core/keyboard/layouts/fr-Swiss_French-pc.json +1 -0
- package/src/core/keyboard/layouts/fr-Swiss_French-pc.ts +55 -0
- package/src/core/keyboard/layouts/hu-Hungarian-mac.json +1 -0
- package/src/core/keyboard/layouts/hu-Hungarian-mac.ts +53 -0
- package/src/core/keyboard/layouts/hu-Hungarian-pc.json +1 -0
- package/src/core/keyboard/layouts/hu-Hungarian-pc.ts +55 -0
- package/src/core/keyboard/layouts/index.ts +59 -0
- package/src/core/keyboard/layouts/it-Italian-mac.json +1 -0
- package/src/core/keyboard/layouts/it-Italian-mac.ts +53 -0
- package/src/core/keyboard/layouts/it-Italian-pc.json +1 -0
- package/src/core/keyboard/layouts/it-Italian-pc.ts +67 -0
- package/src/core/keyboard/layouts/nb-Norwegian-mac.json +1 -0
- package/src/core/keyboard/layouts/nb-Norwegian-mac.ts +53 -0
- package/src/core/keyboard/layouts/nb-Norwegian-pc.json +1 -0
- package/src/core/keyboard/layouts/nb-Norwegian-pc.ts +55 -0
- package/src/core/keyboard/layouts/nl-Dutch-mac.json +1 -0
- package/src/core/keyboard/layouts/nl-Dutch-mac.ts +53 -0
- package/src/core/keyboard/layouts/nl-Dutch-pc.json +1 -0
- package/src/core/keyboard/layouts/nl-Dutch-pc.ts +55 -0
- package/src/core/keyboard/layouts/pl-Polish-mac.json +1 -0
- package/src/core/keyboard/layouts/pl-Polish-mac.ts +53 -0
- package/src/core/keyboard/layouts/pl-Polish-pc.json +1 -0
- package/src/core/keyboard/layouts/pl-Polish-pc.ts +55 -0
- package/src/core/keyboard/layouts/pt-Brazilian-mac.json +1 -0
- package/src/core/keyboard/layouts/pt-Brazilian-mac.ts +53 -0
- package/src/core/keyboard/layouts/pt-Portuguese-mac.json +1 -0
- package/src/core/keyboard/layouts/pt-Portuguese-mac.ts +53 -0
- package/src/core/keyboard/layouts/pt-Portuguese-pc.json +65 -0
- package/src/core/keyboard/layouts/pt-Portuguese-pc.ts +55 -0
- package/src/core/keyboard/layouts/ro-Romanian-mac.json +1 -0
- package/src/core/keyboard/layouts/ro-Romanian-mac.ts +53 -0
- package/src/core/keyboard/layouts/ro-Romanian-pc.json +1 -0
- package/src/core/keyboard/layouts/ro-Romanian-pc.ts +127 -0
- package/src/core/keyboard/layouts/sv-Swedish-mac.json +1 -0
- package/src/core/keyboard/layouts/sv-Swedish-mac.ts +53 -0
- package/src/core/keyboard/layouts/sv-Swedish-pc.json +1 -0
- package/src/core/keyboard/layouts/sv-Swedish-pc.ts +55 -0
- package/src/core/keyboard/layouts/tr-Turkish_Q-mac.json +1 -0
- package/src/core/keyboard/layouts/tr-Turkish_Q-mac.ts +53 -0
- package/src/core/keyboard/layouts/tr-Turkish_Q-pc.json +1 -0
- package/src/core/keyboard/layouts/tr-Turkish_Q-pc.ts +67 -0
- package/src/core/menu/default-menu-node.ts +210 -0
- package/src/core/menu/index.ts +39 -0
- package/src/core/menu/menu-protocol.ts +142 -0
- package/src/core/menu/menu-registry.ts +271 -0
- package/src/core/menu/module.ts +32 -0
- package/src/core/module/index.ts +3 -0
- package/src/core/module/mana-module-context.ts +40 -0
- package/src/core/module/mana-module.test.ts +161 -0
- package/src/core/module/mana-module.ts +44 -0
- package/src/core/module/module-protocol.ts +12 -0
- package/src/core/nls.ts +46 -0
- package/src/core/selection/index.ts +7 -0
- package/src/core/selection/selection-service.ts +26 -0
- package/src/core/theme/base-variable-registry.ts +132 -0
- package/src/core/theme/basic/antd-variable-contribution.ts +849 -0
- package/src/core/theme/basic/default-variable-contribution.ts +163 -0
- package/src/core/theme/basic/index.spec.ts +16 -0
- package/src/core/theme/basic/index.ts +2 -0
- package/src/core/theme/basic/variable-protocol.ts +8 -0
- package/src/core/theme/basic/variable-registry.ts +23 -0
- package/src/core/theme/color/antd-color-contribution.ts +994 -0
- package/src/core/theme/color/color-protocol.ts +12 -0
- package/src/core/theme/color/color-registry.ts +140 -0
- package/src/core/theme/color/color.ts +695 -0
- package/src/core/theme/color/default-color-contribution.ts +502 -0
- package/src/core/theme/color/index.spec.ts +33 -0
- package/src/core/theme/color/index.ts +2 -0
- package/src/core/theme/index.spec.ts +17 -0
- package/src/core/theme/index.ts +37 -0
- package/src/core/theme/protocol.ts +19 -0
- package/src/core/theme/style/mana-logo.png +0 -0
- package/src/core/theme/style/theme-base.less +3 -0
- package/src/core/theme/theme-app.ts +80 -0
- package/src/core/theme/theme-service.ts +170 -0
- package/src/core/toolbar/default-toolbar-item.ts +80 -0
- package/src/core/toolbar/index.ts +23 -0
- package/src/core/toolbar/toolbar-protocol.ts +112 -0
- package/src/core/toolbar/toolbar-registry.ts +77 -0
- package/src/core/typings/native-keymap.d.ts +72 -0
- package/src/core/utils/hooks.ts +108 -0
- package/src/core/utils/index.ts +3 -0
- package/src/core/utils/lifecycle.ts +335 -0
- package/src/core/utils/map.ts +1020 -0
- package/src/core/view/decorator.ts +87 -0
- package/src/core/view/default-slot-view.tsx +231 -0
- package/src/core/view/default-view.tsx +70 -0
- package/src/core/view/focus-tracker.ts +363 -0
- package/src/core/view/hooks.tsx +40 -0
- package/src/core/view/index.less +4 -0
- package/src/core/view/index.ts +22 -0
- package/src/core/view/module.ts +41 -0
- package/src/core/view/navigatable-types.ts +49 -0
- package/src/core/view/navigatable.ts +29 -0
- package/src/core/view/open-handler.ts +122 -0
- package/src/core/view/portal-slot-view.tsx +107 -0
- package/src/core/view/root-view.tsx +102 -0
- package/src/core/view/saveable.ts +146 -0
- package/src/core/view/slot-view-manager.ts +199 -0
- package/src/core/view/slot.tsx +68 -0
- package/src/core/view/stateful-view.ts +22 -0
- package/src/core/view/title.tsx +24 -0
- package/src/core/view/utils.tsx +48 -0
- package/src/core/view/view-application.ts +70 -0
- package/src/core/view/view-container.tsx +91 -0
- package/src/core/view/view-context.tsx +37 -0
- package/src/core/view/view-decoration.ts +160 -0
- package/src/core/view/view-manager.ts +271 -0
- package/src/core/view/view-meta.ts +24 -0
- package/src/core/view/view-open-handler.ts +139 -0
- package/src/core/view/view-protocol.ts +218 -0
- package/src/core/view/view-render.tsx +39 -0
- package/src/core/view/view-storage.ts +218 -0
- package/src/index.ts +1 -0
- package/src/ioc/container-api.ts +22 -0
- package/src/ioc/container.spec.ts +291 -0
- package/src/ioc/container.ts +171 -0
- package/src/ioc/contribution/contribution-protocol.ts +27 -0
- package/src/ioc/contribution/contribution-provider.ts +73 -0
- package/src/ioc/contribution/contribution-register.ts +32 -0
- package/src/ioc/contribution/decorator.ts +16 -0
- package/src/ioc/contribution/index.spec.ts +174 -0
- package/src/ioc/contribution/index.ts +13 -0
- package/src/ioc/core.ts +198 -0
- package/src/ioc/decorator.spec.ts +43 -0
- package/src/ioc/decorator.ts +54 -0
- package/src/ioc/features/auto-factory.spec.ts +90 -0
- package/src/ioc/features/auto-factory.ts +44 -0
- package/src/ioc/features/prioritized-contribution.ts +43 -0
- package/src/ioc/index.ts +8 -0
- package/src/ioc/inversify-api/index.spec.ts +224 -0
- package/src/ioc/inversify-api/index.ts +76 -0
- package/src/ioc/inversify-api/inversify-protocol.ts +31 -0
- package/src/ioc/module/index.spec.ts +68 -0
- package/src/ioc/module/index.ts +7 -0
- package/src/ioc/module/syringe-module.ts +95 -0
- package/src/ioc/register.spec.ts +75 -0
- package/src/ioc/register.ts +210 -0
- package/src/ioc/side-option.spec.ts +39 -0
- package/src/ioc/side-option.ts +14 -0
- package/src/l10n/index.ts +2 -0
- package/src/l10n/l10n/index.test.ts +145 -0
- package/src/l10n/l10n/index.ts +319 -0
- package/src/l10n/l10n/platform.ts +51 -0
- package/src/l10n/lang/bundle.l10n.en-US.json +5 -0
- package/src/l10n/lang/bundle.l10n.zh-CN.json +5 -0
- package/src/l10n/lang/index.ts +9 -0
- package/src/observable/async-event.spec.tsx +64 -0
- package/src/observable/async-event.ts +110 -0
- package/src/observable/async.spec.tsx +142 -0
- package/src/observable/config.spec.ts +12 -0
- package/src/observable/config.ts +26 -0
- package/src/observable/context.spec.tsx +360 -0
- package/src/observable/context.tsx +39 -0
- package/src/observable/core.ts +28 -0
- package/src/observable/decorator.spec.ts +41 -0
- package/src/observable/decorator.ts +19 -0
- package/src/observable/hooks.spec.tsx +244 -0
- package/src/observable/hooks.ts +39 -0
- package/src/observable/index.ts +11 -0
- package/src/observable/notifiable.spec.ts +205 -0
- package/src/observable/notifiable.ts +185 -0
- package/src/observable/notifier.spec.ts +141 -0
- package/src/observable/notifier.ts +126 -0
- package/src/observable/observable.spec.ts +265 -0
- package/src/observable/observable.ts +87 -0
- package/src/observable/tracker.spec.ts +697 -0
- package/src/observable/tracker.ts +240 -0
- package/src/observable/utils.spec.tsx +93 -0
- package/src/observable/utils.ts +160 -0
- package/src/observable/watch.spec.ts +112 -0
- package/src/observable/watch.ts +77 -0
- package/src/polling/poll.ts +2 -2
- package/src/polling/protocol.ts +1 -1
- package/src/protocol/cell-protocol.ts +1 -1
- package/src/react/constant.ts +1 -0
- package/src/react/dropdown/index.tsx +86 -0
- package/src/react/dropdown/styles/index.less +121 -0
- package/src/react/index.spec.ts +13 -0
- package/src/react/index.ts +8 -0
- package/src/react/layout/boxpanel/Pane.tsx +51 -0
- package/src/react/layout/boxpanel/context.ts +11 -0
- package/src/react/layout/boxpanel/index.tsx +65 -0
- package/src/react/layout/boxpanel/styles/index.less +14 -0
- package/src/react/layout/layout.ts +85 -0
- package/src/react/layout/splitpanel/context.ts +35 -0
- package/src/react/layout/splitpanel/index.tsx +325 -0
- package/src/react/layout/splitpanel/pane.tsx +19 -0
- package/src/react/layout/splitpanel/styles/index.less +10 -0
- package/src/react/menu/context.tsx +10 -0
- package/src/react/menu/divider.tsx +9 -0
- package/src/react/menu/index.ts +3 -0
- package/src/react/menu/item.tsx +83 -0
- package/src/react/menu/menu.tsx +46 -0
- package/src/react/menu/styles/index.less +163 -0
- package/src/react/menu/submenu.tsx +28 -0
- package/src/react/menubar/context.tsx +17 -0
- package/src/react/menubar/index.ts +1 -0
- package/src/react/menubar/item.tsx +103 -0
- package/src/react/menubar/menubar.tsx +123 -0
- package/src/react/menubar/styles/index.less +113 -0
- package/src/react/notification/index.tsx +208 -0
- package/src/react/notification/protocol.ts +138 -0
- package/src/react/notification/pure-panel.tsx +119 -0
- package/src/react/notification/render.ts +92 -0
- package/src/react/notification/style/index.less +192 -0
- package/src/react/notification/style/index.tsx +1 -0
- package/src/react/notification/style/placement.less +68 -0
- package/src/react/notification/use-notification.tsx +186 -0
- package/src/react/resize/index.tsx +769 -0
- package/src/react/resize/styles/index.less +83 -0
- package/src/react/styles/variables.less +2 -0
- package/src/react/tabs/index.tsx +75 -0
- package/src/react/tabs/styles/card.less +111 -0
- package/src/react/tabs/styles/dropdown.less +70 -0
- package/src/react/tabs/styles/index.less +231 -0
- package/src/react/tabs/styles/position.less +217 -0
- package/src/react/typings/index.d.ts +5 -0
- package/src/react/util.ts +5 -0
- package/src/url.ts +1 -1
|
@@ -0,0 +1,1551 @@
|
|
|
1
|
+
var _ContextKeyFalseExpr, _ContextKeyTrueExpr;
|
|
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 _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
6
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
7
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
8
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
9
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
11
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
13
|
+
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."); }
|
|
14
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
15
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
16
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
17
|
+
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); }
|
|
18
|
+
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; }
|
|
19
|
+
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); }
|
|
20
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
21
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
22
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
23
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
24
|
+
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); }
|
|
25
|
+
/*---------------------------------------------------------------------------------------------
|
|
26
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
27
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
28
|
+
*--------------------------------------------------------------------------------------------*/
|
|
29
|
+
|
|
30
|
+
import { isFalsyOrWhitespace } from "../../../common/index.js";
|
|
31
|
+
// import { createDecorator } from 'vs/platform/instantiation/common/instantiation';
|
|
32
|
+
import { userAgent, isMacintosh, isLinux, isWindows, isWeb } from "../../../common/index.js";
|
|
33
|
+
import { Syringe } from "../../../ioc/index.js";
|
|
34
|
+
var _userAgent = userAgent || '';
|
|
35
|
+
var STATIC_VALUES = new Map();
|
|
36
|
+
STATIC_VALUES.set('false', false);
|
|
37
|
+
STATIC_VALUES.set('true', true);
|
|
38
|
+
STATIC_VALUES.set('isMac', isMacintosh);
|
|
39
|
+
STATIC_VALUES.set('isLinux', isLinux);
|
|
40
|
+
STATIC_VALUES.set('isWindows', isWindows);
|
|
41
|
+
STATIC_VALUES.set('isWeb', isWeb);
|
|
42
|
+
STATIC_VALUES.set('isMacNative', isMacintosh && !isWeb);
|
|
43
|
+
STATIC_VALUES.set('isEdge', _userAgent.indexOf('Edg/') >= 0);
|
|
44
|
+
STATIC_VALUES.set('isFirefox', _userAgent.indexOf('Firefox') >= 0);
|
|
45
|
+
STATIC_VALUES.set('isChrome', _userAgent.indexOf('Chrome') >= 0);
|
|
46
|
+
STATIC_VALUES.set('isSafari', _userAgent.indexOf('Safari') >= 0);
|
|
47
|
+
STATIC_VALUES.set('isIPad', _userAgent.indexOf('iPad') >= 0);
|
|
48
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
49
|
+
export var ContextKeyExprType = /*#__PURE__*/function (ContextKeyExprType) {
|
|
50
|
+
ContextKeyExprType[ContextKeyExprType["False"] = 0] = "False";
|
|
51
|
+
ContextKeyExprType[ContextKeyExprType["True"] = 1] = "True";
|
|
52
|
+
ContextKeyExprType[ContextKeyExprType["Defined"] = 2] = "Defined";
|
|
53
|
+
ContextKeyExprType[ContextKeyExprType["Not"] = 3] = "Not";
|
|
54
|
+
ContextKeyExprType[ContextKeyExprType["Equals"] = 4] = "Equals";
|
|
55
|
+
ContextKeyExprType[ContextKeyExprType["NotEquals"] = 5] = "NotEquals";
|
|
56
|
+
ContextKeyExprType[ContextKeyExprType["And"] = 6] = "And";
|
|
57
|
+
ContextKeyExprType[ContextKeyExprType["Regex"] = 7] = "Regex";
|
|
58
|
+
ContextKeyExprType[ContextKeyExprType["NotRegex"] = 8] = "NotRegex";
|
|
59
|
+
ContextKeyExprType[ContextKeyExprType["Or"] = 9] = "Or";
|
|
60
|
+
ContextKeyExprType[ContextKeyExprType["In"] = 10] = "In";
|
|
61
|
+
ContextKeyExprType[ContextKeyExprType["NotIn"] = 11] = "NotIn";
|
|
62
|
+
ContextKeyExprType[ContextKeyExprType["Greater"] = 12] = "Greater";
|
|
63
|
+
ContextKeyExprType[ContextKeyExprType["GreaterEquals"] = 13] = "GreaterEquals";
|
|
64
|
+
ContextKeyExprType[ContextKeyExprType["Smaller"] = 14] = "Smaller";
|
|
65
|
+
ContextKeyExprType[ContextKeyExprType["SmallerEquals"] = 15] = "SmallerEquals";
|
|
66
|
+
return ContextKeyExprType;
|
|
67
|
+
}({});
|
|
68
|
+
export var ContextKeyExpr = /*#__PURE__*/function () {
|
|
69
|
+
function ContextKeyExpr() {
|
|
70
|
+
_classCallCheck(this, ContextKeyExpr);
|
|
71
|
+
}
|
|
72
|
+
_createClass(ContextKeyExpr, null, [{
|
|
73
|
+
key: "false",
|
|
74
|
+
value: function _false() {
|
|
75
|
+
return ContextKeyFalseExpr.INSTANCE;
|
|
76
|
+
}
|
|
77
|
+
}, {
|
|
78
|
+
key: "true",
|
|
79
|
+
value: function _true() {
|
|
80
|
+
return ContextKeyTrueExpr.INSTANCE;
|
|
81
|
+
}
|
|
82
|
+
}, {
|
|
83
|
+
key: "has",
|
|
84
|
+
value: function has(key) {
|
|
85
|
+
return ContextKeyDefinedExpr.create(key);
|
|
86
|
+
}
|
|
87
|
+
}, {
|
|
88
|
+
key: "equals",
|
|
89
|
+
value: function equals(key, value) {
|
|
90
|
+
return ContextKeyEqualsExpr.create(key, value);
|
|
91
|
+
}
|
|
92
|
+
}, {
|
|
93
|
+
key: "notEquals",
|
|
94
|
+
value: function notEquals(key, value) {
|
|
95
|
+
return ContextKeyNotEqualsExpr.create(key, value);
|
|
96
|
+
}
|
|
97
|
+
}, {
|
|
98
|
+
key: "regex",
|
|
99
|
+
value: function regex(key, value) {
|
|
100
|
+
return ContextKeyRegexExpr.create(key, value);
|
|
101
|
+
}
|
|
102
|
+
}, {
|
|
103
|
+
key: "in",
|
|
104
|
+
value: function _in(key, value) {
|
|
105
|
+
return ContextKeyInExpr.create(key, value);
|
|
106
|
+
}
|
|
107
|
+
}, {
|
|
108
|
+
key: "not",
|
|
109
|
+
value: function not(key) {
|
|
110
|
+
return ContextKeyNotExpr.create(key);
|
|
111
|
+
}
|
|
112
|
+
}, {
|
|
113
|
+
key: "and",
|
|
114
|
+
value: function and() {
|
|
115
|
+
for (var _len = arguments.length, expr = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
116
|
+
expr[_key] = arguments[_key];
|
|
117
|
+
}
|
|
118
|
+
return ContextKeyAndExpr.create(expr);
|
|
119
|
+
}
|
|
120
|
+
}, {
|
|
121
|
+
key: "or",
|
|
122
|
+
value: function or() {
|
|
123
|
+
for (var _len2 = arguments.length, expr = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
124
|
+
expr[_key2] = arguments[_key2];
|
|
125
|
+
}
|
|
126
|
+
return ContextKeyOrExpr.create(expr);
|
|
127
|
+
}
|
|
128
|
+
}, {
|
|
129
|
+
key: "greater",
|
|
130
|
+
value: function greater(key, value) {
|
|
131
|
+
return ContextKeyGreaterExpr.create(key, value);
|
|
132
|
+
}
|
|
133
|
+
}, {
|
|
134
|
+
key: "less",
|
|
135
|
+
value: function less(key, value) {
|
|
136
|
+
return ContextKeySmallerExpr.create(key, value);
|
|
137
|
+
}
|
|
138
|
+
}, {
|
|
139
|
+
key: "deserialize",
|
|
140
|
+
value: function deserialize(serialized) {
|
|
141
|
+
var strict = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
142
|
+
if (!serialized) {
|
|
143
|
+
return undefined;
|
|
144
|
+
}
|
|
145
|
+
return this._deserializeOrExpression(serialized, strict);
|
|
146
|
+
}
|
|
147
|
+
}, {
|
|
148
|
+
key: "_deserializeOrExpression",
|
|
149
|
+
value: function _deserializeOrExpression(serialized, strict) {
|
|
150
|
+
var _this = this;
|
|
151
|
+
var pieces = serialized.split('||');
|
|
152
|
+
return ContextKeyOrExpr.create(pieces.map(function (p) {
|
|
153
|
+
return _this._deserializeAndExpression(p, strict);
|
|
154
|
+
}));
|
|
155
|
+
}
|
|
156
|
+
}, {
|
|
157
|
+
key: "_deserializeAndExpression",
|
|
158
|
+
value: function _deserializeAndExpression(serialized, strict) {
|
|
159
|
+
var _this2 = this;
|
|
160
|
+
var pieces = serialized.split('&&');
|
|
161
|
+
return ContextKeyAndExpr.create(pieces.map(function (p) {
|
|
162
|
+
return _this2._deserializeOne(p, strict);
|
|
163
|
+
}));
|
|
164
|
+
}
|
|
165
|
+
}, {
|
|
166
|
+
key: "_deserializeOne",
|
|
167
|
+
value: function _deserializeOne(serializedOne, strict) {
|
|
168
|
+
serializedOne = serializedOne.trim();
|
|
169
|
+
if (serializedOne.indexOf('!=') >= 0) {
|
|
170
|
+
var pieces = serializedOne.split('!=');
|
|
171
|
+
return ContextKeyNotEqualsExpr.create(pieces[0].trim(), this._deserializeValue(pieces[1], strict));
|
|
172
|
+
}
|
|
173
|
+
if (serializedOne.indexOf('==') >= 0) {
|
|
174
|
+
var _pieces = serializedOne.split('==');
|
|
175
|
+
return ContextKeyEqualsExpr.create(_pieces[0].trim(), this._deserializeValue(_pieces[1], strict));
|
|
176
|
+
}
|
|
177
|
+
if (serializedOne.indexOf('=~') >= 0) {
|
|
178
|
+
var _pieces2 = serializedOne.split('=~');
|
|
179
|
+
return ContextKeyRegexExpr.create(_pieces2[0].trim(), this._deserializeRegexValue(_pieces2[1], strict));
|
|
180
|
+
}
|
|
181
|
+
if (serializedOne.indexOf(' in ') >= 0) {
|
|
182
|
+
var _pieces3 = serializedOne.split(' in ');
|
|
183
|
+
return ContextKeyInExpr.create(_pieces3[0].trim(), _pieces3[1].trim());
|
|
184
|
+
}
|
|
185
|
+
if (/^[^<=>]+>=[^<=>]+$/.test(serializedOne)) {
|
|
186
|
+
var _pieces4 = serializedOne.split('>=');
|
|
187
|
+
return ContextKeyGreaterEqualsExpr.create(_pieces4[0].trim(), _pieces4[1].trim());
|
|
188
|
+
}
|
|
189
|
+
if (/^[^<=>]+>[^<=>]+$/.test(serializedOne)) {
|
|
190
|
+
var _pieces5 = serializedOne.split('>');
|
|
191
|
+
return ContextKeyGreaterExpr.create(_pieces5[0].trim(), _pieces5[1].trim());
|
|
192
|
+
}
|
|
193
|
+
if (/^[^<=>]+<=[^<=>]+$/.test(serializedOne)) {
|
|
194
|
+
var _pieces6 = serializedOne.split('<=');
|
|
195
|
+
return ContextKeySmallerEqualsExpr.create(_pieces6[0].trim(), _pieces6[1].trim());
|
|
196
|
+
}
|
|
197
|
+
if (/^[^<=>]+<[^<=>]+$/.test(serializedOne)) {
|
|
198
|
+
var _pieces7 = serializedOne.split('<');
|
|
199
|
+
return ContextKeySmallerExpr.create(_pieces7[0].trim(), _pieces7[1].trim());
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// eslint-disable-next-line no-useless-escape
|
|
203
|
+
if (/^\!\s*/.test(serializedOne)) {
|
|
204
|
+
return ContextKeyNotExpr.create(serializedOne.substr(1).trim());
|
|
205
|
+
}
|
|
206
|
+
return ContextKeyDefinedExpr.create(serializedOne);
|
|
207
|
+
}
|
|
208
|
+
}, {
|
|
209
|
+
key: "_deserializeValue",
|
|
210
|
+
value: function _deserializeValue(serializedValue, _strict) {
|
|
211
|
+
serializedValue = serializedValue.trim();
|
|
212
|
+
if (serializedValue === 'true') {
|
|
213
|
+
return true;
|
|
214
|
+
}
|
|
215
|
+
if (serializedValue === 'false') {
|
|
216
|
+
return false;
|
|
217
|
+
}
|
|
218
|
+
var m = /^'([^']*)'$/.exec(serializedValue);
|
|
219
|
+
if (m) {
|
|
220
|
+
return m[1].trim();
|
|
221
|
+
}
|
|
222
|
+
return serializedValue;
|
|
223
|
+
}
|
|
224
|
+
}, {
|
|
225
|
+
key: "_deserializeRegexValue",
|
|
226
|
+
value: function _deserializeRegexValue(serializedValue, strict) {
|
|
227
|
+
if (isFalsyOrWhitespace(serializedValue)) {
|
|
228
|
+
if (strict) {
|
|
229
|
+
throw new Error('missing regexp-value for =~-expression');
|
|
230
|
+
} else {
|
|
231
|
+
console.warn('missing regexp-value for =~-expression');
|
|
232
|
+
}
|
|
233
|
+
return null;
|
|
234
|
+
}
|
|
235
|
+
var start = serializedValue.indexOf('/');
|
|
236
|
+
var end = serializedValue.lastIndexOf('/');
|
|
237
|
+
if (start === end || start < 0 /* || to < 0 */) {
|
|
238
|
+
if (strict) {
|
|
239
|
+
throw new Error("bad regexp-value '".concat(serializedValue, "', missing /-enclosure"));
|
|
240
|
+
} else {
|
|
241
|
+
console.warn("bad regexp-value '".concat(serializedValue, "', missing /-enclosure"));
|
|
242
|
+
}
|
|
243
|
+
return null;
|
|
244
|
+
}
|
|
245
|
+
var value = serializedValue.slice(start + 1, end);
|
|
246
|
+
var caseIgnoreFlag = serializedValue[end + 1] === 'i' ? 'i' : '';
|
|
247
|
+
try {
|
|
248
|
+
return new RegExp(value, caseIgnoreFlag);
|
|
249
|
+
} catch (e) {
|
|
250
|
+
if (strict) {
|
|
251
|
+
throw new Error("bad regexp-value '".concat(serializedValue, "', parse error: ").concat(e));
|
|
252
|
+
} else {
|
|
253
|
+
console.warn("bad regexp-value '".concat(serializedValue, "', parse error: ").concat(e));
|
|
254
|
+
}
|
|
255
|
+
return null;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}]);
|
|
259
|
+
return ContextKeyExpr;
|
|
260
|
+
}();
|
|
261
|
+
function _cmp(a, b) {
|
|
262
|
+
return a.cmp(b);
|
|
263
|
+
}
|
|
264
|
+
export var ContextKeyFalseExpr = /*#__PURE__*/function () {
|
|
265
|
+
function ContextKeyFalseExpr() {
|
|
266
|
+
_classCallCheck(this, ContextKeyFalseExpr);
|
|
267
|
+
this.type = ContextKeyExprType.False;
|
|
268
|
+
} //
|
|
269
|
+
_createClass(ContextKeyFalseExpr, [{
|
|
270
|
+
key: "cmp",
|
|
271
|
+
value: function cmp(other) {
|
|
272
|
+
return this.type - other.type;
|
|
273
|
+
}
|
|
274
|
+
}, {
|
|
275
|
+
key: "equals",
|
|
276
|
+
value: function equals(other) {
|
|
277
|
+
return other.type === this.type;
|
|
278
|
+
}
|
|
279
|
+
}, {
|
|
280
|
+
key: "evaluate",
|
|
281
|
+
value: function evaluate(_context) {
|
|
282
|
+
return false;
|
|
283
|
+
}
|
|
284
|
+
}, {
|
|
285
|
+
key: "serialize",
|
|
286
|
+
value: function serialize() {
|
|
287
|
+
return 'false';
|
|
288
|
+
}
|
|
289
|
+
}, {
|
|
290
|
+
key: "keys",
|
|
291
|
+
value: function keys() {
|
|
292
|
+
return [];
|
|
293
|
+
}
|
|
294
|
+
}, {
|
|
295
|
+
key: "map",
|
|
296
|
+
value: function map(_mapFnc) {
|
|
297
|
+
return this;
|
|
298
|
+
}
|
|
299
|
+
}, {
|
|
300
|
+
key: "negate",
|
|
301
|
+
value: function negate() {
|
|
302
|
+
return ContextKeyTrueExpr.INSTANCE;
|
|
303
|
+
}
|
|
304
|
+
}]);
|
|
305
|
+
return ContextKeyFalseExpr;
|
|
306
|
+
}();
|
|
307
|
+
_ContextKeyFalseExpr = ContextKeyFalseExpr;
|
|
308
|
+
ContextKeyFalseExpr.INSTANCE = new _ContextKeyFalseExpr();
|
|
309
|
+
export var ContextKeyTrueExpr = /*#__PURE__*/function () {
|
|
310
|
+
function ContextKeyTrueExpr() {
|
|
311
|
+
_classCallCheck(this, ContextKeyTrueExpr);
|
|
312
|
+
this.type = ContextKeyExprType.True;
|
|
313
|
+
} //
|
|
314
|
+
_createClass(ContextKeyTrueExpr, [{
|
|
315
|
+
key: "cmp",
|
|
316
|
+
value: function cmp(other) {
|
|
317
|
+
return this.type - other.type;
|
|
318
|
+
}
|
|
319
|
+
}, {
|
|
320
|
+
key: "equals",
|
|
321
|
+
value: function equals(other) {
|
|
322
|
+
return other.type === this.type;
|
|
323
|
+
}
|
|
324
|
+
}, {
|
|
325
|
+
key: "evaluate",
|
|
326
|
+
value: function evaluate(_context) {
|
|
327
|
+
return true;
|
|
328
|
+
}
|
|
329
|
+
}, {
|
|
330
|
+
key: "serialize",
|
|
331
|
+
value: function serialize() {
|
|
332
|
+
return 'true';
|
|
333
|
+
}
|
|
334
|
+
}, {
|
|
335
|
+
key: "keys",
|
|
336
|
+
value: function keys() {
|
|
337
|
+
return [];
|
|
338
|
+
}
|
|
339
|
+
}, {
|
|
340
|
+
key: "map",
|
|
341
|
+
value: function map(_mapFnc) {
|
|
342
|
+
return this;
|
|
343
|
+
}
|
|
344
|
+
}, {
|
|
345
|
+
key: "negate",
|
|
346
|
+
value: function negate() {
|
|
347
|
+
return ContextKeyFalseExpr.INSTANCE;
|
|
348
|
+
}
|
|
349
|
+
}]);
|
|
350
|
+
return ContextKeyTrueExpr;
|
|
351
|
+
}();
|
|
352
|
+
_ContextKeyTrueExpr = ContextKeyTrueExpr;
|
|
353
|
+
ContextKeyTrueExpr.INSTANCE = new _ContextKeyTrueExpr();
|
|
354
|
+
export var ContextKeyDefinedExpr = /*#__PURE__*/function () {
|
|
355
|
+
function ContextKeyDefinedExpr(key) {
|
|
356
|
+
_classCallCheck(this, ContextKeyDefinedExpr);
|
|
357
|
+
this.type = ContextKeyExprType.Defined;
|
|
358
|
+
this.key = key;
|
|
359
|
+
}
|
|
360
|
+
_createClass(ContextKeyDefinedExpr, [{
|
|
361
|
+
key: "cmp",
|
|
362
|
+
value: function cmp(other) {
|
|
363
|
+
if (other.type !== this.type) {
|
|
364
|
+
return this.type - other.type;
|
|
365
|
+
}
|
|
366
|
+
return cmp1(this.key, other.key);
|
|
367
|
+
}
|
|
368
|
+
}, {
|
|
369
|
+
key: "equals",
|
|
370
|
+
value: function equals(other) {
|
|
371
|
+
if (other.type === this.type) {
|
|
372
|
+
return this.key === other.key;
|
|
373
|
+
}
|
|
374
|
+
return false;
|
|
375
|
+
}
|
|
376
|
+
}, {
|
|
377
|
+
key: "evaluate",
|
|
378
|
+
value: function evaluate(context) {
|
|
379
|
+
return !!context.getValue(this.key);
|
|
380
|
+
}
|
|
381
|
+
}, {
|
|
382
|
+
key: "serialize",
|
|
383
|
+
value: function serialize() {
|
|
384
|
+
return this.key;
|
|
385
|
+
}
|
|
386
|
+
}, {
|
|
387
|
+
key: "keys",
|
|
388
|
+
value: function keys() {
|
|
389
|
+
return [this.key];
|
|
390
|
+
}
|
|
391
|
+
}, {
|
|
392
|
+
key: "map",
|
|
393
|
+
value: function map(mapFnc) {
|
|
394
|
+
return mapFnc.mapDefined(this.key);
|
|
395
|
+
}
|
|
396
|
+
}, {
|
|
397
|
+
key: "negate",
|
|
398
|
+
value: function negate() {
|
|
399
|
+
return ContextKeyNotExpr.create(this.key);
|
|
400
|
+
}
|
|
401
|
+
}], [{
|
|
402
|
+
key: "create",
|
|
403
|
+
value: function create(key) {
|
|
404
|
+
var staticValue = STATIC_VALUES.get(key);
|
|
405
|
+
if (typeof staticValue === 'boolean') {
|
|
406
|
+
return staticValue ? ContextKeyTrueExpr.INSTANCE : ContextKeyFalseExpr.INSTANCE;
|
|
407
|
+
}
|
|
408
|
+
return new ContextKeyDefinedExpr(key);
|
|
409
|
+
}
|
|
410
|
+
}]);
|
|
411
|
+
return ContextKeyDefinedExpr;
|
|
412
|
+
}();
|
|
413
|
+
export var ContextKeyEqualsExpr = /*#__PURE__*/function () {
|
|
414
|
+
function ContextKeyEqualsExpr(key, value) {
|
|
415
|
+
_classCallCheck(this, ContextKeyEqualsExpr);
|
|
416
|
+
this.type = ContextKeyExprType.Equals;
|
|
417
|
+
this.key = key;
|
|
418
|
+
this.value = value;
|
|
419
|
+
}
|
|
420
|
+
_createClass(ContextKeyEqualsExpr, [{
|
|
421
|
+
key: "cmp",
|
|
422
|
+
value: function cmp(other) {
|
|
423
|
+
if (other.type !== this.type) {
|
|
424
|
+
return this.type - other.type;
|
|
425
|
+
}
|
|
426
|
+
return cmp2(this.key, this.value, other.key, other.value);
|
|
427
|
+
}
|
|
428
|
+
}, {
|
|
429
|
+
key: "equals",
|
|
430
|
+
value: function equals(other) {
|
|
431
|
+
if (other.type === this.type) {
|
|
432
|
+
return this.key === other.key && this.value === other.value;
|
|
433
|
+
}
|
|
434
|
+
return false;
|
|
435
|
+
}
|
|
436
|
+
}, {
|
|
437
|
+
key: "evaluate",
|
|
438
|
+
value: function evaluate(context) {
|
|
439
|
+
// Intentional ==
|
|
440
|
+
// eslint-disable-next-line eqeqeq
|
|
441
|
+
return context.getValue(this.key) == this.value;
|
|
442
|
+
}
|
|
443
|
+
}, {
|
|
444
|
+
key: "serialize",
|
|
445
|
+
value: function serialize() {
|
|
446
|
+
return "".concat(this.key, " == '").concat(this.value, "'");
|
|
447
|
+
}
|
|
448
|
+
}, {
|
|
449
|
+
key: "keys",
|
|
450
|
+
value: function keys() {
|
|
451
|
+
return [this.key];
|
|
452
|
+
}
|
|
453
|
+
}, {
|
|
454
|
+
key: "map",
|
|
455
|
+
value: function map(mapFnc) {
|
|
456
|
+
return mapFnc.mapEquals(this.key, this.value);
|
|
457
|
+
}
|
|
458
|
+
}, {
|
|
459
|
+
key: "negate",
|
|
460
|
+
value: function negate() {
|
|
461
|
+
return ContextKeyNotEqualsExpr.create(this.key, this.value);
|
|
462
|
+
}
|
|
463
|
+
}], [{
|
|
464
|
+
key: "create",
|
|
465
|
+
value: function create(key, value) {
|
|
466
|
+
if (typeof value === 'boolean') {
|
|
467
|
+
return value ? ContextKeyDefinedExpr.create(key) : ContextKeyNotExpr.create(key);
|
|
468
|
+
}
|
|
469
|
+
var staticValue = STATIC_VALUES.get(key);
|
|
470
|
+
if (typeof staticValue === 'boolean') {
|
|
471
|
+
var trueValue = staticValue ? 'true' : 'false';
|
|
472
|
+
return value === trueValue ? ContextKeyTrueExpr.INSTANCE : ContextKeyFalseExpr.INSTANCE;
|
|
473
|
+
}
|
|
474
|
+
return new ContextKeyEqualsExpr(key, value);
|
|
475
|
+
}
|
|
476
|
+
}]);
|
|
477
|
+
return ContextKeyEqualsExpr;
|
|
478
|
+
}();
|
|
479
|
+
export var ContextKeyInExpr = /*#__PURE__*/function () {
|
|
480
|
+
function ContextKeyInExpr(key, valueKey) {
|
|
481
|
+
_classCallCheck(this, ContextKeyInExpr);
|
|
482
|
+
this.type = ContextKeyExprType.In;
|
|
483
|
+
this.key = key;
|
|
484
|
+
this.valueKey = valueKey;
|
|
485
|
+
}
|
|
486
|
+
_createClass(ContextKeyInExpr, [{
|
|
487
|
+
key: "cmp",
|
|
488
|
+
value: function cmp(other) {
|
|
489
|
+
if (other.type !== this.type) {
|
|
490
|
+
return this.type - other.type;
|
|
491
|
+
}
|
|
492
|
+
return cmp2(this.key, this.valueKey, other.key, other.valueKey);
|
|
493
|
+
}
|
|
494
|
+
}, {
|
|
495
|
+
key: "equals",
|
|
496
|
+
value: function equals(other) {
|
|
497
|
+
if (other.type === this.type) {
|
|
498
|
+
return this.key === other.key && this.valueKey === other.valueKey;
|
|
499
|
+
}
|
|
500
|
+
return false;
|
|
501
|
+
}
|
|
502
|
+
}, {
|
|
503
|
+
key: "evaluate",
|
|
504
|
+
value: function evaluate(context) {
|
|
505
|
+
var source = context.getValue(this.valueKey);
|
|
506
|
+
var item = context.getValue(this.key);
|
|
507
|
+
if (Array.isArray(source)) {
|
|
508
|
+
return source.indexOf(item) >= 0;
|
|
509
|
+
}
|
|
510
|
+
if (typeof item === 'string' && _typeof(source) === 'object' && source !== null) {
|
|
511
|
+
return hasOwnProperty.call(source, item);
|
|
512
|
+
}
|
|
513
|
+
return false;
|
|
514
|
+
}
|
|
515
|
+
}, {
|
|
516
|
+
key: "serialize",
|
|
517
|
+
value: function serialize() {
|
|
518
|
+
return "".concat(this.key, " in '").concat(this.valueKey, "'");
|
|
519
|
+
}
|
|
520
|
+
}, {
|
|
521
|
+
key: "keys",
|
|
522
|
+
value: function keys() {
|
|
523
|
+
return [this.key, this.valueKey];
|
|
524
|
+
}
|
|
525
|
+
}, {
|
|
526
|
+
key: "map",
|
|
527
|
+
value: function map(mapFnc) {
|
|
528
|
+
return mapFnc.mapIn(this.key, this.valueKey);
|
|
529
|
+
}
|
|
530
|
+
}, {
|
|
531
|
+
key: "negate",
|
|
532
|
+
value: function negate() {
|
|
533
|
+
return ContextKeyNotInExpr.create(this);
|
|
534
|
+
}
|
|
535
|
+
}], [{
|
|
536
|
+
key: "create",
|
|
537
|
+
value: function create(key, valueKey) {
|
|
538
|
+
return new ContextKeyInExpr(key, valueKey);
|
|
539
|
+
}
|
|
540
|
+
}]);
|
|
541
|
+
return ContextKeyInExpr;
|
|
542
|
+
}();
|
|
543
|
+
export var ContextKeyNotInExpr = /*#__PURE__*/function () {
|
|
544
|
+
function ContextKeyNotInExpr(_actual) {
|
|
545
|
+
_classCallCheck(this, ContextKeyNotInExpr);
|
|
546
|
+
this.type = ContextKeyExprType.NotIn;
|
|
547
|
+
//
|
|
548
|
+
this._actual = _actual;
|
|
549
|
+
}
|
|
550
|
+
_createClass(ContextKeyNotInExpr, [{
|
|
551
|
+
key: "cmp",
|
|
552
|
+
value: function cmp(other) {
|
|
553
|
+
if (other.type !== this.type) {
|
|
554
|
+
return this.type - other.type;
|
|
555
|
+
}
|
|
556
|
+
return this._actual.cmp(other._actual);
|
|
557
|
+
}
|
|
558
|
+
}, {
|
|
559
|
+
key: "equals",
|
|
560
|
+
value: function equals(other) {
|
|
561
|
+
if (other.type === this.type) {
|
|
562
|
+
return this._actual.equals(other._actual);
|
|
563
|
+
}
|
|
564
|
+
return false;
|
|
565
|
+
}
|
|
566
|
+
}, {
|
|
567
|
+
key: "evaluate",
|
|
568
|
+
value: function evaluate(context) {
|
|
569
|
+
return !this._actual.evaluate(context);
|
|
570
|
+
}
|
|
571
|
+
}, {
|
|
572
|
+
key: "serialize",
|
|
573
|
+
value: function serialize() {
|
|
574
|
+
throw new Error('Method not implemented.');
|
|
575
|
+
}
|
|
576
|
+
}, {
|
|
577
|
+
key: "keys",
|
|
578
|
+
value: function keys() {
|
|
579
|
+
return this._actual.keys();
|
|
580
|
+
}
|
|
581
|
+
}, {
|
|
582
|
+
key: "map",
|
|
583
|
+
value: function map(mapFnc) {
|
|
584
|
+
return new ContextKeyNotInExpr(this._actual.map(mapFnc));
|
|
585
|
+
}
|
|
586
|
+
}, {
|
|
587
|
+
key: "negate",
|
|
588
|
+
value: function negate() {
|
|
589
|
+
return this._actual;
|
|
590
|
+
}
|
|
591
|
+
}], [{
|
|
592
|
+
key: "create",
|
|
593
|
+
value: function create(actual) {
|
|
594
|
+
return new ContextKeyNotInExpr(actual);
|
|
595
|
+
}
|
|
596
|
+
}]);
|
|
597
|
+
return ContextKeyNotInExpr;
|
|
598
|
+
}();
|
|
599
|
+
export var ContextKeyNotEqualsExpr = /*#__PURE__*/function () {
|
|
600
|
+
function ContextKeyNotEqualsExpr(key, value) {
|
|
601
|
+
_classCallCheck(this, ContextKeyNotEqualsExpr);
|
|
602
|
+
this.type = ContextKeyExprType.NotEquals;
|
|
603
|
+
this.key = key;
|
|
604
|
+
this.value = value;
|
|
605
|
+
}
|
|
606
|
+
_createClass(ContextKeyNotEqualsExpr, [{
|
|
607
|
+
key: "cmp",
|
|
608
|
+
value: function cmp(other) {
|
|
609
|
+
if (other.type !== this.type) {
|
|
610
|
+
return this.type - other.type;
|
|
611
|
+
}
|
|
612
|
+
return cmp2(this.key, this.value, other.key, other.value);
|
|
613
|
+
}
|
|
614
|
+
}, {
|
|
615
|
+
key: "equals",
|
|
616
|
+
value: function equals(other) {
|
|
617
|
+
if (other.type === this.type) {
|
|
618
|
+
return this.key === other.key && this.value === other.value;
|
|
619
|
+
}
|
|
620
|
+
return false;
|
|
621
|
+
}
|
|
622
|
+
}, {
|
|
623
|
+
key: "evaluate",
|
|
624
|
+
value: function evaluate(context) {
|
|
625
|
+
// Intentional !=
|
|
626
|
+
// eslint-disable-next-line eqeqeq
|
|
627
|
+
return context.getValue(this.key) != this.value;
|
|
628
|
+
}
|
|
629
|
+
}, {
|
|
630
|
+
key: "serialize",
|
|
631
|
+
value: function serialize() {
|
|
632
|
+
return "".concat(this.key, " != '").concat(this.value, "'");
|
|
633
|
+
}
|
|
634
|
+
}, {
|
|
635
|
+
key: "keys",
|
|
636
|
+
value: function keys() {
|
|
637
|
+
return [this.key];
|
|
638
|
+
}
|
|
639
|
+
}, {
|
|
640
|
+
key: "map",
|
|
641
|
+
value: function map(mapFnc) {
|
|
642
|
+
return mapFnc.mapNotEquals(this.key, this.value);
|
|
643
|
+
}
|
|
644
|
+
}, {
|
|
645
|
+
key: "negate",
|
|
646
|
+
value: function negate() {
|
|
647
|
+
return ContextKeyEqualsExpr.create(this.key, this.value);
|
|
648
|
+
}
|
|
649
|
+
}], [{
|
|
650
|
+
key: "create",
|
|
651
|
+
value: function create(key, value) {
|
|
652
|
+
if (typeof value === 'boolean') {
|
|
653
|
+
if (value) {
|
|
654
|
+
return ContextKeyNotExpr.create(key);
|
|
655
|
+
}
|
|
656
|
+
return ContextKeyDefinedExpr.create(key);
|
|
657
|
+
}
|
|
658
|
+
var staticValue = STATIC_VALUES.get(key);
|
|
659
|
+
if (typeof staticValue === 'boolean') {
|
|
660
|
+
var falseValue = staticValue ? 'true' : 'false';
|
|
661
|
+
return value === falseValue ? ContextKeyFalseExpr.INSTANCE : ContextKeyTrueExpr.INSTANCE;
|
|
662
|
+
}
|
|
663
|
+
return new ContextKeyNotEqualsExpr(key, value);
|
|
664
|
+
}
|
|
665
|
+
}]);
|
|
666
|
+
return ContextKeyNotEqualsExpr;
|
|
667
|
+
}();
|
|
668
|
+
export var ContextKeyNotExpr = /*#__PURE__*/function () {
|
|
669
|
+
function ContextKeyNotExpr(key) {
|
|
670
|
+
_classCallCheck(this, ContextKeyNotExpr);
|
|
671
|
+
this.type = ContextKeyExprType.Not;
|
|
672
|
+
this.key = key;
|
|
673
|
+
}
|
|
674
|
+
_createClass(ContextKeyNotExpr, [{
|
|
675
|
+
key: "cmp",
|
|
676
|
+
value: function cmp(other) {
|
|
677
|
+
if (other.type !== this.type) {
|
|
678
|
+
return this.type - other.type;
|
|
679
|
+
}
|
|
680
|
+
return cmp1(this.key, other.key);
|
|
681
|
+
}
|
|
682
|
+
}, {
|
|
683
|
+
key: "equals",
|
|
684
|
+
value: function equals(other) {
|
|
685
|
+
if (other.type === this.type) {
|
|
686
|
+
return this.key === other.key;
|
|
687
|
+
}
|
|
688
|
+
return false;
|
|
689
|
+
}
|
|
690
|
+
}, {
|
|
691
|
+
key: "evaluate",
|
|
692
|
+
value: function evaluate(context) {
|
|
693
|
+
return !context.getValue(this.key);
|
|
694
|
+
}
|
|
695
|
+
}, {
|
|
696
|
+
key: "serialize",
|
|
697
|
+
value: function serialize() {
|
|
698
|
+
return "!".concat(this.key);
|
|
699
|
+
}
|
|
700
|
+
}, {
|
|
701
|
+
key: "keys",
|
|
702
|
+
value: function keys() {
|
|
703
|
+
return [this.key];
|
|
704
|
+
}
|
|
705
|
+
}, {
|
|
706
|
+
key: "map",
|
|
707
|
+
value: function map(mapFnc) {
|
|
708
|
+
return mapFnc.mapNot(this.key);
|
|
709
|
+
}
|
|
710
|
+
}, {
|
|
711
|
+
key: "negate",
|
|
712
|
+
value: function negate() {
|
|
713
|
+
return ContextKeyDefinedExpr.create(this.key);
|
|
714
|
+
}
|
|
715
|
+
}], [{
|
|
716
|
+
key: "create",
|
|
717
|
+
value: function create(key) {
|
|
718
|
+
var staticValue = STATIC_VALUES.get(key);
|
|
719
|
+
if (typeof staticValue === 'boolean') {
|
|
720
|
+
return staticValue ? ContextKeyFalseExpr.INSTANCE : ContextKeyTrueExpr.INSTANCE;
|
|
721
|
+
}
|
|
722
|
+
return new ContextKeyNotExpr(key);
|
|
723
|
+
}
|
|
724
|
+
}]);
|
|
725
|
+
return ContextKeyNotExpr;
|
|
726
|
+
}();
|
|
727
|
+
export var ContextKeyGreaterExpr = /*#__PURE__*/function () {
|
|
728
|
+
function ContextKeyGreaterExpr(key, value) {
|
|
729
|
+
_classCallCheck(this, ContextKeyGreaterExpr);
|
|
730
|
+
this.type = ContextKeyExprType.Greater;
|
|
731
|
+
this.key = key;
|
|
732
|
+
this.value = value;
|
|
733
|
+
}
|
|
734
|
+
_createClass(ContextKeyGreaterExpr, [{
|
|
735
|
+
key: "cmp",
|
|
736
|
+
value: function cmp(other) {
|
|
737
|
+
if (other.type !== this.type) {
|
|
738
|
+
return this.type - other.type;
|
|
739
|
+
}
|
|
740
|
+
return cmp2(this.key, this.value, other.key, other.value);
|
|
741
|
+
}
|
|
742
|
+
}, {
|
|
743
|
+
key: "equals",
|
|
744
|
+
value: function equals(other) {
|
|
745
|
+
if (other.type === this.type) {
|
|
746
|
+
return this.key === other.key && this.value === other.value;
|
|
747
|
+
}
|
|
748
|
+
return false;
|
|
749
|
+
}
|
|
750
|
+
}, {
|
|
751
|
+
key: "evaluate",
|
|
752
|
+
value: function evaluate(context) {
|
|
753
|
+
return parseFloat(context.getValue(this.key)) > parseFloat(this.value);
|
|
754
|
+
}
|
|
755
|
+
}, {
|
|
756
|
+
key: "serialize",
|
|
757
|
+
value: function serialize() {
|
|
758
|
+
return "".concat(this.key, " > ").concat(this.value);
|
|
759
|
+
}
|
|
760
|
+
}, {
|
|
761
|
+
key: "keys",
|
|
762
|
+
value: function keys() {
|
|
763
|
+
return [this.key];
|
|
764
|
+
}
|
|
765
|
+
}, {
|
|
766
|
+
key: "map",
|
|
767
|
+
value: function map(mapFnc) {
|
|
768
|
+
return mapFnc.mapGreater(this.key, this.value);
|
|
769
|
+
}
|
|
770
|
+
}, {
|
|
771
|
+
key: "negate",
|
|
772
|
+
value: function negate() {
|
|
773
|
+
return ContextKeySmallerEqualsExpr.create(this.key, this.value);
|
|
774
|
+
}
|
|
775
|
+
}], [{
|
|
776
|
+
key: "create",
|
|
777
|
+
value: function create(key, value) {
|
|
778
|
+
return new ContextKeyGreaterExpr(key, value);
|
|
779
|
+
}
|
|
780
|
+
}]);
|
|
781
|
+
return ContextKeyGreaterExpr;
|
|
782
|
+
}();
|
|
783
|
+
export var ContextKeyGreaterEqualsExpr = /*#__PURE__*/function () {
|
|
784
|
+
function ContextKeyGreaterEqualsExpr(key, value) {
|
|
785
|
+
_classCallCheck(this, ContextKeyGreaterEqualsExpr);
|
|
786
|
+
this.type = ContextKeyExprType.GreaterEquals;
|
|
787
|
+
this.key = key;
|
|
788
|
+
this.value = value;
|
|
789
|
+
}
|
|
790
|
+
_createClass(ContextKeyGreaterEqualsExpr, [{
|
|
791
|
+
key: "cmp",
|
|
792
|
+
value: function cmp(other) {
|
|
793
|
+
if (other.type !== this.type) {
|
|
794
|
+
return this.type - other.type;
|
|
795
|
+
}
|
|
796
|
+
return cmp2(this.key, this.value, other.key, other.value);
|
|
797
|
+
}
|
|
798
|
+
}, {
|
|
799
|
+
key: "equals",
|
|
800
|
+
value: function equals(other) {
|
|
801
|
+
if (other.type === this.type) {
|
|
802
|
+
return this.key === other.key && this.value === other.value;
|
|
803
|
+
}
|
|
804
|
+
return false;
|
|
805
|
+
}
|
|
806
|
+
}, {
|
|
807
|
+
key: "evaluate",
|
|
808
|
+
value: function evaluate(context) {
|
|
809
|
+
return parseFloat(context.getValue(this.key)) >= parseFloat(this.value);
|
|
810
|
+
}
|
|
811
|
+
}, {
|
|
812
|
+
key: "serialize",
|
|
813
|
+
value: function serialize() {
|
|
814
|
+
return "".concat(this.key, " >= ").concat(this.value);
|
|
815
|
+
}
|
|
816
|
+
}, {
|
|
817
|
+
key: "keys",
|
|
818
|
+
value: function keys() {
|
|
819
|
+
return [this.key];
|
|
820
|
+
}
|
|
821
|
+
}, {
|
|
822
|
+
key: "map",
|
|
823
|
+
value: function map(mapFnc) {
|
|
824
|
+
return mapFnc.mapGreaterEquals(this.key, this.value);
|
|
825
|
+
}
|
|
826
|
+
}, {
|
|
827
|
+
key: "negate",
|
|
828
|
+
value: function negate() {
|
|
829
|
+
return ContextKeySmallerExpr.create(this.key, this.value);
|
|
830
|
+
}
|
|
831
|
+
}], [{
|
|
832
|
+
key: "create",
|
|
833
|
+
value: function create(key, value) {
|
|
834
|
+
return new ContextKeyGreaterEqualsExpr(key, value);
|
|
835
|
+
}
|
|
836
|
+
}]);
|
|
837
|
+
return ContextKeyGreaterEqualsExpr;
|
|
838
|
+
}();
|
|
839
|
+
export var ContextKeySmallerExpr = /*#__PURE__*/function () {
|
|
840
|
+
function ContextKeySmallerExpr(key, value) {
|
|
841
|
+
_classCallCheck(this, ContextKeySmallerExpr);
|
|
842
|
+
this.type = ContextKeyExprType.Smaller;
|
|
843
|
+
this.key = key;
|
|
844
|
+
this.value = value;
|
|
845
|
+
}
|
|
846
|
+
_createClass(ContextKeySmallerExpr, [{
|
|
847
|
+
key: "cmp",
|
|
848
|
+
value: function cmp(other) {
|
|
849
|
+
if (other.type !== this.type) {
|
|
850
|
+
return this.type - other.type;
|
|
851
|
+
}
|
|
852
|
+
return cmp2(this.key, this.value, other.key, other.value);
|
|
853
|
+
}
|
|
854
|
+
}, {
|
|
855
|
+
key: "equals",
|
|
856
|
+
value: function equals(other) {
|
|
857
|
+
if (other.type === this.type) {
|
|
858
|
+
return this.key === other.key && this.value === other.value;
|
|
859
|
+
}
|
|
860
|
+
return false;
|
|
861
|
+
}
|
|
862
|
+
}, {
|
|
863
|
+
key: "evaluate",
|
|
864
|
+
value: function evaluate(context) {
|
|
865
|
+
return parseFloat(context.getValue(this.key)) < parseFloat(this.value);
|
|
866
|
+
}
|
|
867
|
+
}, {
|
|
868
|
+
key: "serialize",
|
|
869
|
+
value: function serialize() {
|
|
870
|
+
return "".concat(this.key, " < ").concat(this.value);
|
|
871
|
+
}
|
|
872
|
+
}, {
|
|
873
|
+
key: "keys",
|
|
874
|
+
value: function keys() {
|
|
875
|
+
return [this.key];
|
|
876
|
+
}
|
|
877
|
+
}, {
|
|
878
|
+
key: "map",
|
|
879
|
+
value: function map(mapFnc) {
|
|
880
|
+
return mapFnc.mapSmaller(this.key, this.value);
|
|
881
|
+
}
|
|
882
|
+
}, {
|
|
883
|
+
key: "negate",
|
|
884
|
+
value: function negate() {
|
|
885
|
+
return ContextKeyGreaterEqualsExpr.create(this.key, this.value);
|
|
886
|
+
}
|
|
887
|
+
}], [{
|
|
888
|
+
key: "create",
|
|
889
|
+
value: function create(key, value) {
|
|
890
|
+
return new ContextKeySmallerExpr(key, value);
|
|
891
|
+
}
|
|
892
|
+
}]);
|
|
893
|
+
return ContextKeySmallerExpr;
|
|
894
|
+
}();
|
|
895
|
+
export var ContextKeySmallerEqualsExpr = /*#__PURE__*/function () {
|
|
896
|
+
function ContextKeySmallerEqualsExpr(key, value) {
|
|
897
|
+
_classCallCheck(this, ContextKeySmallerEqualsExpr);
|
|
898
|
+
this.type = ContextKeyExprType.SmallerEquals;
|
|
899
|
+
this.key = key;
|
|
900
|
+
this.value = value;
|
|
901
|
+
}
|
|
902
|
+
_createClass(ContextKeySmallerEqualsExpr, [{
|
|
903
|
+
key: "cmp",
|
|
904
|
+
value: function cmp(other) {
|
|
905
|
+
if (other.type !== this.type) {
|
|
906
|
+
return this.type - other.type;
|
|
907
|
+
}
|
|
908
|
+
return cmp2(this.key, this.value, other.key, other.value);
|
|
909
|
+
}
|
|
910
|
+
}, {
|
|
911
|
+
key: "equals",
|
|
912
|
+
value: function equals(other) {
|
|
913
|
+
if (other.type === this.type) {
|
|
914
|
+
return this.key === other.key && this.value === other.value;
|
|
915
|
+
}
|
|
916
|
+
return false;
|
|
917
|
+
}
|
|
918
|
+
}, {
|
|
919
|
+
key: "evaluate",
|
|
920
|
+
value: function evaluate(context) {
|
|
921
|
+
return parseFloat(context.getValue(this.key)) <= parseFloat(this.value);
|
|
922
|
+
}
|
|
923
|
+
}, {
|
|
924
|
+
key: "serialize",
|
|
925
|
+
value: function serialize() {
|
|
926
|
+
return "".concat(this.key, " <= ").concat(this.value);
|
|
927
|
+
}
|
|
928
|
+
}, {
|
|
929
|
+
key: "keys",
|
|
930
|
+
value: function keys() {
|
|
931
|
+
return [this.key];
|
|
932
|
+
}
|
|
933
|
+
}, {
|
|
934
|
+
key: "map",
|
|
935
|
+
value: function map(mapFnc) {
|
|
936
|
+
return mapFnc.mapSmallerEquals(this.key, this.value);
|
|
937
|
+
}
|
|
938
|
+
}, {
|
|
939
|
+
key: "negate",
|
|
940
|
+
value: function negate() {
|
|
941
|
+
return ContextKeyGreaterExpr.create(this.key, this.value);
|
|
942
|
+
}
|
|
943
|
+
}], [{
|
|
944
|
+
key: "create",
|
|
945
|
+
value: function create(key, value) {
|
|
946
|
+
return new ContextKeySmallerEqualsExpr(key, value);
|
|
947
|
+
}
|
|
948
|
+
}]);
|
|
949
|
+
return ContextKeySmallerEqualsExpr;
|
|
950
|
+
}();
|
|
951
|
+
export var ContextKeyRegexExpr = /*#__PURE__*/function () {
|
|
952
|
+
function ContextKeyRegexExpr(key, regexp) {
|
|
953
|
+
_classCallCheck(this, ContextKeyRegexExpr);
|
|
954
|
+
this.type = ContextKeyExprType.Regex;
|
|
955
|
+
//
|
|
956
|
+
this.key = key;
|
|
957
|
+
this.regexp = regexp;
|
|
958
|
+
}
|
|
959
|
+
_createClass(ContextKeyRegexExpr, [{
|
|
960
|
+
key: "cmp",
|
|
961
|
+
value: function cmp(other) {
|
|
962
|
+
if (other.type !== this.type) {
|
|
963
|
+
return this.type - other.type;
|
|
964
|
+
}
|
|
965
|
+
if (this.key < other.key) {
|
|
966
|
+
return -1;
|
|
967
|
+
}
|
|
968
|
+
if (this.key > other.key) {
|
|
969
|
+
return 1;
|
|
970
|
+
}
|
|
971
|
+
var thisSource = this.regexp ? this.regexp.source : '';
|
|
972
|
+
var otherSource = other.regexp ? other.regexp.source : '';
|
|
973
|
+
if (thisSource < otherSource) {
|
|
974
|
+
return -1;
|
|
975
|
+
}
|
|
976
|
+
if (thisSource > otherSource) {
|
|
977
|
+
return 1;
|
|
978
|
+
}
|
|
979
|
+
return 0;
|
|
980
|
+
}
|
|
981
|
+
}, {
|
|
982
|
+
key: "equals",
|
|
983
|
+
value: function equals(other) {
|
|
984
|
+
if (other.type === this.type) {
|
|
985
|
+
var thisSource = this.regexp ? this.regexp.source : '';
|
|
986
|
+
var otherSource = other.regexp ? other.regexp.source : '';
|
|
987
|
+
return this.key === other.key && thisSource === otherSource;
|
|
988
|
+
}
|
|
989
|
+
return false;
|
|
990
|
+
}
|
|
991
|
+
}, {
|
|
992
|
+
key: "evaluate",
|
|
993
|
+
value: function evaluate(context) {
|
|
994
|
+
var value = context.getValue(this.key);
|
|
995
|
+
return this.regexp ? this.regexp.test(value) : false;
|
|
996
|
+
}
|
|
997
|
+
}, {
|
|
998
|
+
key: "serialize",
|
|
999
|
+
value: function serialize() {
|
|
1000
|
+
var value = this.regexp ? "/".concat(this.regexp.source, "/").concat(this.regexp.ignoreCase ? 'i' : '') : '/invalid/';
|
|
1001
|
+
return "".concat(this.key, " =~ ").concat(value);
|
|
1002
|
+
}
|
|
1003
|
+
}, {
|
|
1004
|
+
key: "keys",
|
|
1005
|
+
value: function keys() {
|
|
1006
|
+
return [this.key];
|
|
1007
|
+
}
|
|
1008
|
+
}, {
|
|
1009
|
+
key: "map",
|
|
1010
|
+
value: function map(mapFnc) {
|
|
1011
|
+
return mapFnc.mapRegex(this.key, this.regexp);
|
|
1012
|
+
}
|
|
1013
|
+
}, {
|
|
1014
|
+
key: "negate",
|
|
1015
|
+
value: function negate() {
|
|
1016
|
+
return ContextKeyNotRegexExpr.create(this);
|
|
1017
|
+
}
|
|
1018
|
+
}], [{
|
|
1019
|
+
key: "create",
|
|
1020
|
+
value: function create(key, regexp) {
|
|
1021
|
+
return new ContextKeyRegexExpr(key, regexp);
|
|
1022
|
+
}
|
|
1023
|
+
}]);
|
|
1024
|
+
return ContextKeyRegexExpr;
|
|
1025
|
+
}();
|
|
1026
|
+
export var ContextKeyNotRegexExpr = /*#__PURE__*/function () {
|
|
1027
|
+
function ContextKeyNotRegexExpr(_actual) {
|
|
1028
|
+
_classCallCheck(this, ContextKeyNotRegexExpr);
|
|
1029
|
+
this.type = ContextKeyExprType.NotRegex;
|
|
1030
|
+
this._actual = _actual;
|
|
1031
|
+
}
|
|
1032
|
+
_createClass(ContextKeyNotRegexExpr, [{
|
|
1033
|
+
key: "cmp",
|
|
1034
|
+
value: function cmp(other) {
|
|
1035
|
+
if (other.type !== this.type) {
|
|
1036
|
+
return this.type - other.type;
|
|
1037
|
+
}
|
|
1038
|
+
return this._actual.cmp(other._actual);
|
|
1039
|
+
}
|
|
1040
|
+
}, {
|
|
1041
|
+
key: "equals",
|
|
1042
|
+
value: function equals(other) {
|
|
1043
|
+
if (other.type === this.type) {
|
|
1044
|
+
return this._actual.equals(other._actual);
|
|
1045
|
+
}
|
|
1046
|
+
return false;
|
|
1047
|
+
}
|
|
1048
|
+
}, {
|
|
1049
|
+
key: "evaluate",
|
|
1050
|
+
value: function evaluate(context) {
|
|
1051
|
+
return !this._actual.evaluate(context);
|
|
1052
|
+
}
|
|
1053
|
+
}, {
|
|
1054
|
+
key: "serialize",
|
|
1055
|
+
value: function serialize() {
|
|
1056
|
+
throw new Error('Method not implemented.');
|
|
1057
|
+
}
|
|
1058
|
+
}, {
|
|
1059
|
+
key: "keys",
|
|
1060
|
+
value: function keys() {
|
|
1061
|
+
return this._actual.keys();
|
|
1062
|
+
}
|
|
1063
|
+
}, {
|
|
1064
|
+
key: "map",
|
|
1065
|
+
value: function map(mapFnc) {
|
|
1066
|
+
return new ContextKeyNotRegexExpr(this._actual.map(mapFnc));
|
|
1067
|
+
}
|
|
1068
|
+
}, {
|
|
1069
|
+
key: "negate",
|
|
1070
|
+
value: function negate() {
|
|
1071
|
+
return this._actual;
|
|
1072
|
+
}
|
|
1073
|
+
}], [{
|
|
1074
|
+
key: "create",
|
|
1075
|
+
value: function create(actual) {
|
|
1076
|
+
return new ContextKeyNotRegexExpr(actual);
|
|
1077
|
+
}
|
|
1078
|
+
}]);
|
|
1079
|
+
return ContextKeyNotRegexExpr;
|
|
1080
|
+
}();
|
|
1081
|
+
export var ContextKeyAndExpr = /*#__PURE__*/function () {
|
|
1082
|
+
function ContextKeyAndExpr(expr) {
|
|
1083
|
+
_classCallCheck(this, ContextKeyAndExpr);
|
|
1084
|
+
this.type = ContextKeyExprType.And;
|
|
1085
|
+
this.expr = expr;
|
|
1086
|
+
}
|
|
1087
|
+
_createClass(ContextKeyAndExpr, [{
|
|
1088
|
+
key: "cmp",
|
|
1089
|
+
value: function cmp(other) {
|
|
1090
|
+
if (other.type !== this.type) {
|
|
1091
|
+
return this.type - other.type;
|
|
1092
|
+
}
|
|
1093
|
+
if (this.expr.length < other.expr.length) {
|
|
1094
|
+
return -1;
|
|
1095
|
+
}
|
|
1096
|
+
if (this.expr.length > other.expr.length) {
|
|
1097
|
+
return 1;
|
|
1098
|
+
}
|
|
1099
|
+
for (var i = 0, len = this.expr.length; i < len; i++) {
|
|
1100
|
+
var r = _cmp(this.expr[i], other.expr[i]);
|
|
1101
|
+
if (r !== 0) {
|
|
1102
|
+
return r;
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
return 0;
|
|
1106
|
+
}
|
|
1107
|
+
}, {
|
|
1108
|
+
key: "equals",
|
|
1109
|
+
value: function equals(other) {
|
|
1110
|
+
if (other.type === this.type) {
|
|
1111
|
+
if (this.expr.length !== other.expr.length) {
|
|
1112
|
+
return false;
|
|
1113
|
+
}
|
|
1114
|
+
for (var i = 0, len = this.expr.length; i < len; i++) {
|
|
1115
|
+
if (!this.expr[i].equals(other.expr[i])) {
|
|
1116
|
+
return false;
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
return true;
|
|
1120
|
+
}
|
|
1121
|
+
return false;
|
|
1122
|
+
}
|
|
1123
|
+
}, {
|
|
1124
|
+
key: "evaluate",
|
|
1125
|
+
value: function evaluate(context) {
|
|
1126
|
+
for (var i = 0, len = this.expr.length; i < len; i++) {
|
|
1127
|
+
if (!this.expr[i].evaluate(context)) {
|
|
1128
|
+
return false;
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
return true;
|
|
1132
|
+
}
|
|
1133
|
+
}, {
|
|
1134
|
+
key: "serialize",
|
|
1135
|
+
value: function serialize() {
|
|
1136
|
+
return this.expr.map(function (e) {
|
|
1137
|
+
return e.serialize();
|
|
1138
|
+
}).join(' && ');
|
|
1139
|
+
}
|
|
1140
|
+
}, {
|
|
1141
|
+
key: "keys",
|
|
1142
|
+
value: function keys() {
|
|
1143
|
+
var result = [];
|
|
1144
|
+
var _iterator = _createForOfIteratorHelper(this.expr),
|
|
1145
|
+
_step;
|
|
1146
|
+
try {
|
|
1147
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
1148
|
+
var expr = _step.value;
|
|
1149
|
+
result.push.apply(result, _toConsumableArray(expr.keys()));
|
|
1150
|
+
}
|
|
1151
|
+
} catch (err) {
|
|
1152
|
+
_iterator.e(err);
|
|
1153
|
+
} finally {
|
|
1154
|
+
_iterator.f();
|
|
1155
|
+
}
|
|
1156
|
+
return result;
|
|
1157
|
+
}
|
|
1158
|
+
}, {
|
|
1159
|
+
key: "map",
|
|
1160
|
+
value: function map(mapFnc) {
|
|
1161
|
+
return new ContextKeyAndExpr(this.expr.map(function (expr) {
|
|
1162
|
+
return expr.map(mapFnc);
|
|
1163
|
+
}));
|
|
1164
|
+
}
|
|
1165
|
+
}, {
|
|
1166
|
+
key: "negate",
|
|
1167
|
+
value: function negate() {
|
|
1168
|
+
var result = [];
|
|
1169
|
+
var _iterator2 = _createForOfIteratorHelper(this.expr),
|
|
1170
|
+
_step2;
|
|
1171
|
+
try {
|
|
1172
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
1173
|
+
var expr = _step2.value;
|
|
1174
|
+
result.push(expr.negate());
|
|
1175
|
+
}
|
|
1176
|
+
} catch (err) {
|
|
1177
|
+
_iterator2.e(err);
|
|
1178
|
+
} finally {
|
|
1179
|
+
_iterator2.f();
|
|
1180
|
+
}
|
|
1181
|
+
return ContextKeyOrExpr.create(result);
|
|
1182
|
+
}
|
|
1183
|
+
}], [{
|
|
1184
|
+
key: "create",
|
|
1185
|
+
value: function create(_expr) {
|
|
1186
|
+
return ContextKeyAndExpr._normalizeArr(_expr);
|
|
1187
|
+
}
|
|
1188
|
+
}, {
|
|
1189
|
+
key: "_normalizeArr",
|
|
1190
|
+
value: function _normalizeArr(arr) {
|
|
1191
|
+
var expr = [];
|
|
1192
|
+
var hasTrue = false;
|
|
1193
|
+
var _iterator3 = _createForOfIteratorHelper(arr),
|
|
1194
|
+
_step3;
|
|
1195
|
+
try {
|
|
1196
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
1197
|
+
var e = _step3.value;
|
|
1198
|
+
if (!e) {
|
|
1199
|
+
continue;
|
|
1200
|
+
}
|
|
1201
|
+
if (e.type === ContextKeyExprType.True) {
|
|
1202
|
+
// anything && true ==> anything
|
|
1203
|
+
hasTrue = true;
|
|
1204
|
+
continue;
|
|
1205
|
+
}
|
|
1206
|
+
if (e.type === ContextKeyExprType.False) {
|
|
1207
|
+
// anything && false ==> false
|
|
1208
|
+
return ContextKeyFalseExpr.INSTANCE;
|
|
1209
|
+
}
|
|
1210
|
+
if (e.type === ContextKeyExprType.And) {
|
|
1211
|
+
expr.push.apply(expr, _toConsumableArray(e.expr));
|
|
1212
|
+
continue;
|
|
1213
|
+
}
|
|
1214
|
+
expr.push(e);
|
|
1215
|
+
}
|
|
1216
|
+
} catch (err) {
|
|
1217
|
+
_iterator3.e(err);
|
|
1218
|
+
} finally {
|
|
1219
|
+
_iterator3.f();
|
|
1220
|
+
}
|
|
1221
|
+
if (expr.length === 0 && hasTrue) {
|
|
1222
|
+
return ContextKeyTrueExpr.INSTANCE;
|
|
1223
|
+
}
|
|
1224
|
+
if (expr.length === 0) {
|
|
1225
|
+
return undefined;
|
|
1226
|
+
}
|
|
1227
|
+
if (expr.length === 1) {
|
|
1228
|
+
return expr[0];
|
|
1229
|
+
}
|
|
1230
|
+
expr.sort(_cmp);
|
|
1231
|
+
|
|
1232
|
+
// We must distribute any OR expression because we don't support parens
|
|
1233
|
+
// OR extensions will be at the end (due to sorting rules)
|
|
1234
|
+
var _loop = function _loop() {
|
|
1235
|
+
var lastElement = expr[expr.length - 1];
|
|
1236
|
+
if (lastElement.type !== ContextKeyExprType.Or) {
|
|
1237
|
+
return 1; // break
|
|
1238
|
+
}
|
|
1239
|
+
// pop the last element
|
|
1240
|
+
expr.pop();
|
|
1241
|
+
|
|
1242
|
+
// pop the second to last element
|
|
1243
|
+
var secondToLastElement = expr.pop();
|
|
1244
|
+
|
|
1245
|
+
// distribute `lastElement` over `secondToLastElement`
|
|
1246
|
+
var resultElement = ContextKeyOrExpr.create(lastElement.expr.map(function (el) {
|
|
1247
|
+
return ContextKeyAndExpr.create([el, secondToLastElement]);
|
|
1248
|
+
}));
|
|
1249
|
+
if (resultElement) {
|
|
1250
|
+
expr.push(resultElement);
|
|
1251
|
+
expr.sort(_cmp);
|
|
1252
|
+
}
|
|
1253
|
+
};
|
|
1254
|
+
while (expr.length > 1) {
|
|
1255
|
+
if (_loop()) break;
|
|
1256
|
+
}
|
|
1257
|
+
if (expr.length === 1) {
|
|
1258
|
+
return expr[0];
|
|
1259
|
+
}
|
|
1260
|
+
return new ContextKeyAndExpr(expr);
|
|
1261
|
+
}
|
|
1262
|
+
}]);
|
|
1263
|
+
return ContextKeyAndExpr;
|
|
1264
|
+
}();
|
|
1265
|
+
export var ContextKeyOrExpr = /*#__PURE__*/function () {
|
|
1266
|
+
function ContextKeyOrExpr(expr) {
|
|
1267
|
+
_classCallCheck(this, ContextKeyOrExpr);
|
|
1268
|
+
this.type = ContextKeyExprType.Or;
|
|
1269
|
+
this.expr = expr;
|
|
1270
|
+
}
|
|
1271
|
+
_createClass(ContextKeyOrExpr, [{
|
|
1272
|
+
key: "cmp",
|
|
1273
|
+
value: function cmp(other) {
|
|
1274
|
+
if (other.type !== this.type) {
|
|
1275
|
+
return this.type - other.type;
|
|
1276
|
+
}
|
|
1277
|
+
if (this.expr.length < other.expr.length) {
|
|
1278
|
+
return -1;
|
|
1279
|
+
}
|
|
1280
|
+
if (this.expr.length > other.expr.length) {
|
|
1281
|
+
return 1;
|
|
1282
|
+
}
|
|
1283
|
+
for (var i = 0, len = this.expr.length; i < len; i++) {
|
|
1284
|
+
var r = _cmp(this.expr[i], other.expr[i]);
|
|
1285
|
+
if (r !== 0) {
|
|
1286
|
+
return r;
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
return 0;
|
|
1290
|
+
}
|
|
1291
|
+
}, {
|
|
1292
|
+
key: "equals",
|
|
1293
|
+
value: function equals(other) {
|
|
1294
|
+
if (other.type === this.type) {
|
|
1295
|
+
if (this.expr.length !== other.expr.length) {
|
|
1296
|
+
return false;
|
|
1297
|
+
}
|
|
1298
|
+
for (var i = 0, len = this.expr.length; i < len; i++) {
|
|
1299
|
+
if (!this.expr[i].equals(other.expr[i])) {
|
|
1300
|
+
return false;
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
return true;
|
|
1304
|
+
}
|
|
1305
|
+
return false;
|
|
1306
|
+
}
|
|
1307
|
+
}, {
|
|
1308
|
+
key: "evaluate",
|
|
1309
|
+
value: function evaluate(context) {
|
|
1310
|
+
for (var i = 0, len = this.expr.length; i < len; i++) {
|
|
1311
|
+
if (this.expr[i].evaluate(context)) {
|
|
1312
|
+
return true;
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
return false;
|
|
1316
|
+
}
|
|
1317
|
+
}, {
|
|
1318
|
+
key: "serialize",
|
|
1319
|
+
value: function serialize() {
|
|
1320
|
+
return this.expr.map(function (e) {
|
|
1321
|
+
return e.serialize();
|
|
1322
|
+
}).join(' || ');
|
|
1323
|
+
}
|
|
1324
|
+
}, {
|
|
1325
|
+
key: "keys",
|
|
1326
|
+
value: function keys() {
|
|
1327
|
+
var result = [];
|
|
1328
|
+
var _iterator4 = _createForOfIteratorHelper(this.expr),
|
|
1329
|
+
_step4;
|
|
1330
|
+
try {
|
|
1331
|
+
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
1332
|
+
var expr = _step4.value;
|
|
1333
|
+
result.push.apply(result, _toConsumableArray(expr.keys()));
|
|
1334
|
+
}
|
|
1335
|
+
} catch (err) {
|
|
1336
|
+
_iterator4.e(err);
|
|
1337
|
+
} finally {
|
|
1338
|
+
_iterator4.f();
|
|
1339
|
+
}
|
|
1340
|
+
return result;
|
|
1341
|
+
}
|
|
1342
|
+
}, {
|
|
1343
|
+
key: "map",
|
|
1344
|
+
value: function map(mapFnc) {
|
|
1345
|
+
return new ContextKeyOrExpr(this.expr.map(function (expr) {
|
|
1346
|
+
return expr.map(mapFnc);
|
|
1347
|
+
}));
|
|
1348
|
+
}
|
|
1349
|
+
}, {
|
|
1350
|
+
key: "negate",
|
|
1351
|
+
value: function negate() {
|
|
1352
|
+
var result = [];
|
|
1353
|
+
var _iterator5 = _createForOfIteratorHelper(this.expr),
|
|
1354
|
+
_step5;
|
|
1355
|
+
try {
|
|
1356
|
+
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
1357
|
+
var expr = _step5.value;
|
|
1358
|
+
result.push(expr.negate());
|
|
1359
|
+
}
|
|
1360
|
+
} catch (err) {
|
|
1361
|
+
_iterator5.e(err);
|
|
1362
|
+
} finally {
|
|
1363
|
+
_iterator5.f();
|
|
1364
|
+
}
|
|
1365
|
+
var terminals = function terminals(node) {
|
|
1366
|
+
if (node.type === ContextKeyExprType.Or) {
|
|
1367
|
+
return node.expr;
|
|
1368
|
+
}
|
|
1369
|
+
return [node];
|
|
1370
|
+
};
|
|
1371
|
+
|
|
1372
|
+
// We don't support parens, so here we distribute the AND over the OR terminals
|
|
1373
|
+
// We always take the first 2 AND pairs and distribute them
|
|
1374
|
+
while (result.length > 1) {
|
|
1375
|
+
var LEFT = result.shift();
|
|
1376
|
+
var RIGHT = result.shift();
|
|
1377
|
+
var all = [];
|
|
1378
|
+
var _iterator6 = _createForOfIteratorHelper(terminals(LEFT)),
|
|
1379
|
+
_step6;
|
|
1380
|
+
try {
|
|
1381
|
+
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
1382
|
+
var left = _step6.value;
|
|
1383
|
+
var _iterator7 = _createForOfIteratorHelper(terminals(RIGHT)),
|
|
1384
|
+
_step7;
|
|
1385
|
+
try {
|
|
1386
|
+
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
1387
|
+
var right = _step7.value;
|
|
1388
|
+
all.push(ContextKeyExpr.and(left, right));
|
|
1389
|
+
}
|
|
1390
|
+
} catch (err) {
|
|
1391
|
+
_iterator7.e(err);
|
|
1392
|
+
} finally {
|
|
1393
|
+
_iterator7.f();
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1396
|
+
} catch (err) {
|
|
1397
|
+
_iterator6.e(err);
|
|
1398
|
+
} finally {
|
|
1399
|
+
_iterator6.f();
|
|
1400
|
+
}
|
|
1401
|
+
result.unshift(ContextKeyExpr.or.apply(ContextKeyExpr, all));
|
|
1402
|
+
}
|
|
1403
|
+
return result[0];
|
|
1404
|
+
}
|
|
1405
|
+
}], [{
|
|
1406
|
+
key: "create",
|
|
1407
|
+
value: function create(_expr) {
|
|
1408
|
+
var expr = ContextKeyOrExpr._normalizeArr(_expr);
|
|
1409
|
+
if (expr.length === 0) {
|
|
1410
|
+
return undefined;
|
|
1411
|
+
}
|
|
1412
|
+
if (expr.length === 1) {
|
|
1413
|
+
return expr[0];
|
|
1414
|
+
}
|
|
1415
|
+
return new ContextKeyOrExpr(expr);
|
|
1416
|
+
}
|
|
1417
|
+
}, {
|
|
1418
|
+
key: "_normalizeArr",
|
|
1419
|
+
value: function _normalizeArr(arr) {
|
|
1420
|
+
var expr = [];
|
|
1421
|
+
var hasFalse = false;
|
|
1422
|
+
if (arr) {
|
|
1423
|
+
for (var i = 0, len = arr.length; i < len; i++) {
|
|
1424
|
+
var e = arr[i];
|
|
1425
|
+
if (!e) {
|
|
1426
|
+
continue;
|
|
1427
|
+
}
|
|
1428
|
+
if (e.type === ContextKeyExprType.False) {
|
|
1429
|
+
// anything || false ==> anything
|
|
1430
|
+
hasFalse = true;
|
|
1431
|
+
continue;
|
|
1432
|
+
}
|
|
1433
|
+
if (e.type === ContextKeyExprType.True) {
|
|
1434
|
+
// anything || true ==> true
|
|
1435
|
+
return [ContextKeyTrueExpr.INSTANCE];
|
|
1436
|
+
}
|
|
1437
|
+
if (e.type === ContextKeyExprType.Or) {
|
|
1438
|
+
expr = expr.concat(e.expr);
|
|
1439
|
+
continue;
|
|
1440
|
+
}
|
|
1441
|
+
expr.push(e);
|
|
1442
|
+
}
|
|
1443
|
+
if (expr.length === 0 && hasFalse) {
|
|
1444
|
+
return [ContextKeyFalseExpr.INSTANCE];
|
|
1445
|
+
}
|
|
1446
|
+
expr.sort(_cmp);
|
|
1447
|
+
}
|
|
1448
|
+
return expr;
|
|
1449
|
+
}
|
|
1450
|
+
}]);
|
|
1451
|
+
return ContextKeyOrExpr;
|
|
1452
|
+
}();
|
|
1453
|
+
export var RawContextKey = /*#__PURE__*/function (_ContextKeyDefinedExp) {
|
|
1454
|
+
_inherits(RawContextKey, _ContextKeyDefinedExp);
|
|
1455
|
+
var _super = _createSuper(RawContextKey);
|
|
1456
|
+
function RawContextKey(key, defaultValue, metaOrHide) {
|
|
1457
|
+
var _this3;
|
|
1458
|
+
_classCallCheck(this, RawContextKey);
|
|
1459
|
+
_this3 = _super.call(this, key);
|
|
1460
|
+
_this3.key = key;
|
|
1461
|
+
_this3._defaultValue = defaultValue;
|
|
1462
|
+
|
|
1463
|
+
// collect all context keys into a central place
|
|
1464
|
+
if (_typeof(metaOrHide) === 'object') {
|
|
1465
|
+
RawContextKey._info.push(_objectSpread(_objectSpread({}, metaOrHide), {}, {
|
|
1466
|
+
key: key
|
|
1467
|
+
}));
|
|
1468
|
+
} else if (metaOrHide !== true) {
|
|
1469
|
+
RawContextKey._info.push({
|
|
1470
|
+
key: key,
|
|
1471
|
+
description: metaOrHide,
|
|
1472
|
+
type: defaultValue !== null && defaultValue !== undefined ? _typeof(defaultValue) : undefined
|
|
1473
|
+
});
|
|
1474
|
+
}
|
|
1475
|
+
return _this3;
|
|
1476
|
+
}
|
|
1477
|
+
_createClass(RawContextKey, [{
|
|
1478
|
+
key: "bindTo",
|
|
1479
|
+
value: function bindTo(target) {
|
|
1480
|
+
return target.createKey(this.key, this._defaultValue);
|
|
1481
|
+
}
|
|
1482
|
+
}, {
|
|
1483
|
+
key: "getValue",
|
|
1484
|
+
value: function getValue(target) {
|
|
1485
|
+
return target.getContextKeyValue(this.key);
|
|
1486
|
+
}
|
|
1487
|
+
}, {
|
|
1488
|
+
key: "toNegated",
|
|
1489
|
+
value: function toNegated() {
|
|
1490
|
+
return ContextKeyExpr.not(this.key);
|
|
1491
|
+
}
|
|
1492
|
+
}, {
|
|
1493
|
+
key: "isEqualTo",
|
|
1494
|
+
value: function isEqualTo(value) {
|
|
1495
|
+
return ContextKeyExpr.equals(this.key, value);
|
|
1496
|
+
}
|
|
1497
|
+
}, {
|
|
1498
|
+
key: "notEqualsTo",
|
|
1499
|
+
value: function notEqualsTo(value) {
|
|
1500
|
+
return ContextKeyExpr.notEquals(this.key, value);
|
|
1501
|
+
}
|
|
1502
|
+
}], [{
|
|
1503
|
+
key: "all",
|
|
1504
|
+
value: function all() {
|
|
1505
|
+
return RawContextKey._info.values();
|
|
1506
|
+
}
|
|
1507
|
+
}]);
|
|
1508
|
+
return RawContextKey;
|
|
1509
|
+
}(ContextKeyDefinedExpr);
|
|
1510
|
+
RawContextKey._info = [];
|
|
1511
|
+
export var IContextKey;
|
|
1512
|
+
(function (_IContextKey) {
|
|
1513
|
+
var None = _IContextKey.None = Object.freeze({
|
|
1514
|
+
set: function set() {
|
|
1515
|
+
//
|
|
1516
|
+
},
|
|
1517
|
+
reset: function reset() {
|
|
1518
|
+
//
|
|
1519
|
+
},
|
|
1520
|
+
get: function get() {
|
|
1521
|
+
return undefined;
|
|
1522
|
+
}
|
|
1523
|
+
});
|
|
1524
|
+
})(IContextKey || (IContextKey = {}));
|
|
1525
|
+
// export const IContextKeyService = createDecorator<IContextKeyService>('contextKeyService');
|
|
1526
|
+
export var IContextKeyService = Syringe.defineToken('IContextKeyService');
|
|
1527
|
+
export var SET_CONTEXT_COMMAND_ID = 'setContext';
|
|
1528
|
+
function cmp1(key1, key2) {
|
|
1529
|
+
if (key1 < key2) {
|
|
1530
|
+
return -1;
|
|
1531
|
+
}
|
|
1532
|
+
if (key1 > key2) {
|
|
1533
|
+
return 1;
|
|
1534
|
+
}
|
|
1535
|
+
return 0;
|
|
1536
|
+
}
|
|
1537
|
+
function cmp2(key1, value1, key2, value2) {
|
|
1538
|
+
if (key1 < key2) {
|
|
1539
|
+
return -1;
|
|
1540
|
+
}
|
|
1541
|
+
if (key1 > key2) {
|
|
1542
|
+
return 1;
|
|
1543
|
+
}
|
|
1544
|
+
if (value1 < value2) {
|
|
1545
|
+
return -1;
|
|
1546
|
+
}
|
|
1547
|
+
if (value1 > value2) {
|
|
1548
|
+
return 1;
|
|
1549
|
+
}
|
|
1550
|
+
return 0;
|
|
1551
|
+
}
|