diff --git a/monaco-editor/typedoc/theme/assets/css/_constants.sass b/monaco-editor/typedoc/theme/assets/css/_constants.sass deleted file mode 100644 index d7454e23..00000000 --- a/monaco-editor/typedoc/theme/assets/css/_constants.sass +++ /dev/null @@ -1,39 +0,0 @@ -// Fonts -// -$FONT_FAMILY: 'Segoe UI', sans-serif -$FONT_FAMILY_MONO: Menlo, Monaco, Consolas, 'Courier New', monospace - -$FONT_SIZE: 16px -$FONT_SIZE_MONO: 14px - -$LINE_HEIGHT: 1.333em - - -// Colors -// -$COLOR_BACKGROUND: #fdfdfd -$COLOR_TEXT: #222 -$COLOR_TEXT_ASIDE: #707070 -$COLOR_LINK: #4da6ff - -$COLOR_MENU_DIVIDER: #eee -$COLOR_MENU_DIVIDER_FOCUS: #000 -$COLOR_MENU_LABEL: #707070 - -$COLOR_PANEL: #fff -$COLOR_PANEL_DIVIDER: #eee - -$COLOR_COMMENT_TAG: #707070 -$COLOR_COMMENT_TAG_TEXT: #fff - -$COLOR_CODE_BACKGROUND: rgba(#000, 0.04) - -$COLOR_TS: #9600ff -$COLOR_TS_INTERFACE: #647F1B -$COLOR_TS_ENUM: #937210 -$COLOR_TS_CLASS: #0672DE -$COLOR_TS_PRIVATE: #707070 - -$TOOLBAR_COLOR: #fff -$TOOLBAR_TEXT_COLOR: #333 -$TOOLBAR_HEIGHT: 40px diff --git a/monaco-editor/typedoc/theme/assets/css/elements/_comment.sass b/monaco-editor/typedoc/theme/assets/css/elements/_comment.sass deleted file mode 100644 index 2c40e61c..00000000 --- a/monaco-editor/typedoc/theme/assets/css/elements/_comment.sass +++ /dev/null @@ -1,53 +0,0 @@ -// Displays all regular comment tags -// -//
-//
see
-//

Dispatcher.EVENT_BEGIN

-//
see
-//

Dispatcher.EVENT_BEGIN_RESOLVE

-//
see
-//

Dispatcher.EVENT_END_RESOLVE

-//
-// -dl.tsd-comment-tags - overflow: hidden - - dt - float: left - padding: 1px 5px - margin: 0 10px 0 0 - border-radius: 4px - border: 1px solid $COLOR_COMMENT_TAG - color: $COLOR_COMMENT_TAG - font-size: 0.8em - font-weight: normal - - dd - margin: 0 0 10px 0 - - &:before, &:after - display: table - content: " " - pre, &:after - clear: both - - p - margin: 0 - - -// Special formatting for the main reflection on each page. -// -//
-//
-//

The default TypeDoc main application class.

-//

This class holds the two main components of TypeDoc, the Dispatcher and the Renderer.

-//
-//
-// -.tsd-panel.tsd-comment .lead - font-size: 1.1em - line-height: $LINE_HEIGHT - margin-bottom: 2em - - &:last-child - margin-bottom: 0 \ No newline at end of file diff --git a/monaco-editor/typedoc/theme/assets/css/elements/_filter.sass b/monaco-editor/typedoc/theme/assets/css/elements/_filter.sass deleted file mode 100644 index 3d8b6eab..00000000 --- a/monaco-editor/typedoc/theme/assets/css/elements/_filter.sass +++ /dev/null @@ -1,62 +0,0 @@ -// Classes set on the body to control the visible state of the filtered elements -// -.toggle-protected .tsd-is-private - display: none - -.toggle-public .tsd-is-private, -.toggle-public .tsd-is-protected, -.toggle-public .tsd-is-private-protected - display: none - -.toggle-inherited .tsd-is-inherited - display: none - -.toggle-externals .tsd-is-external - display: none - - -// Filter Buttons in the toolbar -// -#tsd-filter - position: relative - display: inline-block - height: $TOOLBAR_HEIGHT - vertical-align: bottom - - .no-filter & - display: none - - .tsd-filter-group - display: inline-block - height: $TOOLBAR_HEIGHT - vertical-align: bottom - white-space: nowrap - - input - display: none - - +size-xs-sm - .tsd-filter-group - display: block - position: absolute - top: $TOOLBAR_HEIGHT - right: 20px - height: auto - background-color: $COLOR_PANEL - visibility: hidden - transform: translate(50%,0) - box-shadow: 0 0 4px rgba(#000, 0.25) - - .has-options & - visibility: visible - - .to-has-options & - animation: fade-in 0.2s - - .from-has-options & - animation: fade-out 0.2s - - label, - .tsd-select - display: block - padding-right: 20px diff --git a/monaco-editor/typedoc/theme/assets/css/elements/_footer.sass b/monaco-editor/typedoc/theme/assets/css/elements/_footer.sass deleted file mode 100644 index 9dd5925e..00000000 --- a/monaco-editor/typedoc/theme/assets/css/elements/_footer.sass +++ /dev/null @@ -1,21 +0,0 @@ -footer - border-top: 1px solid $COLOR_PANEL_DIVIDER - background-color: $COLOR_PANEL - - &.with-border-bottom - border-bottom: 1px solid $COLOR_PANEL_DIVIDER - - .tsd-legend-group - font-size: 0 - - .tsd-legend - display: inline-block - width: 25% - padding: 0 - font-size: $FONT_SIZE - list-style: none - line-height: $LINE_HEIGHT - vertical-align: top - - +size-xs-sm - width: 50% \ No newline at end of file diff --git a/monaco-editor/typedoc/theme/assets/css/elements/_hierarchy.sass b/monaco-editor/typedoc/theme/assets/css/elements/_hierarchy.sass deleted file mode 100644 index 891b52bb..00000000 --- a/monaco-editor/typedoc/theme/assets/css/elements/_hierarchy.sass +++ /dev/null @@ -1,24 +0,0 @@ -// Displays the type hierarchy -// -// -// -.tsd-hierarchy - list-style: square - padding: 0 0 0 20px - margin: 0 - - .target - font-weight: bold diff --git a/monaco-editor/typedoc/theme/assets/css/elements/_images.sass b/monaco-editor/typedoc/theme/assets/css/elements/_images.sass deleted file mode 100644 index 1fa3f017..00000000 --- a/monaco-editor/typedoc/theme/assets/css/elements/_images.sass +++ /dev/null @@ -1,3 +0,0 @@ -// fixes issue with images in readme -img - max-width: 100% diff --git a/monaco-editor/typedoc/theme/assets/css/elements/_index.sass b/monaco-editor/typedoc/theme/assets/css/elements/_index.sass deleted file mode 100644 index 4d4a0fc4..00000000 --- a/monaco-editor/typedoc/theme/assets/css/elements/_index.sass +++ /dev/null @@ -1,79 +0,0 @@ -// Displays an index of grouped links. -// -//
-//
-//
-//

Constructor methods

-// -//
-// -//
-//
-// -.tsd-index-panel - .tsd-index-content - margin-bottom: -30px !important - - .tsd-index-section - margin-bottom: 30px !important - - h3 - @extend h4 - margin: 0 -20px 10px -20px - padding: 0 20px 10px 20px - border-bottom: 1px solid $COLOR_PANEL_DIVIDER - - ul.tsd-index-list - +vendors(column-count, 3) - +vendors(column-gap, 20px) - padding: 0 - list-style: none - line-height: $LINE_HEIGHT - - +size-xs-sm - +vendors(column-count, 1) - - +size-md - +vendors(column-count, 2) - - li - +vendors(page-break-inside, avoid) - - a, - .tsd-parent-kind-module a - color: $COLOR_TS - - .tsd-parent-kind-interface a - color: $COLOR_TS_INTERFACE - - .tsd-parent-kind-enum a - color: $COLOR_TS_ENUM - - .tsd-parent-kind-class a - color: $COLOR_TS_CLASS - - - .tsd-kind-module a - color: $COLOR_TS - - .tsd-kind-interface a - color: $COLOR_TS_INTERFACE - - .tsd-kind-enum a - color: $COLOR_TS_ENUM - - .tsd-kind-class a - color: $COLOR_TS_CLASS - - .tsd-is-private a - color: $COLOR_TS_PRIVATE diff --git a/monaco-editor/typedoc/theme/assets/css/elements/_member.sass b/monaco-editor/typedoc/theme/assets/css/elements/_member.sass deleted file mode 100644 index 87d39818..00000000 --- a/monaco-editor/typedoc/theme/assets/css/elements/_member.sass +++ /dev/null @@ -1,36 +0,0 @@ -.tsd-flag - display: inline-block - padding: 1px 5px - border-radius: 4px - color: $COLOR_COMMENT_TAG_TEXT - background-color: $COLOR_COMMENT_TAG - text-indent: 0 - font-size: $FONT_SIZE_MONO - font-weight: normal - -.tsd-anchor - position: absolute - top: -100px - -.tsd-member - position: relative - - .tsd-anchor + h3 - margin-top: 0 - margin-bottom: 0 - border-bottom: none - - a[data-tsd-kind] - color: $COLOR_TS - - a[data-tsd-kind="Interface"] - color: $COLOR_TS_INTERFACE - - a[data-tsd-kind="Enum"] - color: $COLOR_TS_ENUM - - a[data-tsd-kind="Class"] - color: $COLOR_TS_CLASS - - a[data-tsd-kind="Private"] - color: $COLOR_TS_PRIVATE diff --git a/monaco-editor/typedoc/theme/assets/css/elements/_navigation.sass b/monaco-editor/typedoc/theme/assets/css/elements/_navigation.sass deleted file mode 100644 index 3f71a440..00000000 --- a/monaco-editor/typedoc/theme/assets/css/elements/_navigation.sass +++ /dev/null @@ -1,148 +0,0 @@ -// Base format for the navigation parts. -// -=INDENT($DEPTH, $BASE, $STEP, $PROGRESS:$DEPTH) - @if $PROGRESS > 0 - & li - +INDENT($DEPTH, $BASE, $STEP, $PROGRESS - 1) - @else - & a - padding-left: #{($BASE + $STEP * ($DEPTH - 1))}px - -=INDENTS($COUNT, $BASE, $STEP) - @for $DEPTH from 1 through $COUNT - +INDENT($DEPTH, $BASE, $STEP) - -.tsd-navigation - margin: 0 0 0 40px - - a - display: block - padding-top: 2px - padding-bottom: 2px - border-left: 2px solid transparent - color: $COLOR_TEXT - text-decoration: none - transition: border-left-color 0.1s - - &:hover - text-decoration: underline - - ul - margin: 0 - padding: 0 - list-style: none - - li - padding: 0 - - -// Primary part of the navigation containing the available modules. -// -// -// -.tsd-navigation.primary - padding-bottom: 40px - - a - display: block - padding-top: 6px - padding-bottom: 6px - - ul - +INDENTS(6, 5, 20) - - > ul - border-bottom: 1px solid $COLOR_PANEL_DIVIDER - - li - border-top: 1px solid $COLOR_PANEL_DIVIDER - - &.current > a - font-weight: bold - - &.label span - display: block - padding: 20px 0 6px 5px - color: $COLOR_MENU_LABEL - - &.globals + li > span, - &.globals + li > a - padding-top: 20px - - -// Secondary part of the navigation containing the table of contents -// of the current module. -// Can be made sticky by `typedoc.MenuSticky` and will highlight current sticky with `typedoc.MenuHighlight`. -// -// -// -.tsd-navigation.secondary - max-height: calc(100vh - 1rem - #{$TOOLBAR_HEIGHT}) - overflow: auto - position: -webkit-sticky - position: sticky - top: calc(.5rem + #{$TOOLBAR_HEIGHT}) - transition: .3s - - &.tsd-navigation--toolbar-hide - max-height: calc(100vh - 1rem) - top: .5rem - - ul - +INDENTS(6, 25, 20) - transition: opacity 0.2s - - &.current a - border-left-color: $COLOR_PANEL_DIVIDER - - li.focus > a, - ul.current li.focus > a - border-left-color: $COLOR_MENU_DIVIDER_FOCUS - - li.current - margin-top: 20px - margin-bottom: 20px - border-left-color: $COLOR_PANEL_DIVIDER - - > a - font-weight: bold - - -// Sticky menu setup -// -.menu-sticky-wrap - +size-md-lg - position: static diff --git a/monaco-editor/typedoc/theme/assets/css/elements/_panel.sass b/monaco-editor/typedoc/theme/assets/css/elements/_panel.sass deleted file mode 100644 index 82ae3d51..00000000 --- a/monaco-editor/typedoc/theme/assets/css/elements/_panel.sass +++ /dev/null @@ -1,70 +0,0 @@ -// Displays a panel, an organisation unit in TypeDoc used to group single entities -// like a method or a variable. -// -//
-//

Eirmod tempor invidunt

-//

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat.

-//
-// -.tsd-panel - @extend %prevent-children-margin - margin: 20px 0 - padding: 20px - background-color: $COLOR_PANEL - box-shadow: 0 0 4px rgba(#000, 0.25) - - &:empty - display: none - - > h1, > h2, > h3 - margin: 1.5em -20px 10px -20px - padding: 0 20px 10px 20px - border-bottom: 1px solid $COLOR_PANEL_DIVIDER - - &.tsd-before-signature - margin-bottom: 0 - border-bottom: 0 - - table - display: block - width: 100% - overflow: auto - margin-top: 10px - word-break: normal - word-break: keep-all - - th - font-weight: bold - - th, td - padding: 6px 13px - border: 1px solid #ddd - - tr - background-color: #fff - border-top: 1px solid #ccc - - &:nth-child(2n) - background-color: #f8f8f8 - - -// Holds a series of panels with an optional heading. -// -//
-//

Consetetur sadipscing elitr

-//
-//

Eirmod tempor invidunt

-//

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat.

-//
-//
-//

Eirmod tempor invidunt

-//

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat.

-//
-//
-// -.tsd-panel-group - margin: 60px 0 - - > h1, > h2, > h3 - padding-left: 20px - padding-right: 20px \ No newline at end of file diff --git a/monaco-editor/typedoc/theme/assets/css/elements/_search.sass b/monaco-editor/typedoc/theme/assets/css/elements/_search.sass deleted file mode 100644 index be33a9f9..00000000 --- a/monaco-editor/typedoc/theme/assets/css/elements/_search.sass +++ /dev/null @@ -1,89 +0,0 @@ -#tsd-search - transition: background-color 0.2s - - .title - position: relative - z-index: 2 - - .field - position: absolute - left: 0 - top: 0 - right: 40px - height: 40px - - input - box-sizing: border-box - position: relative - top: -50px - z-index: 1 - width: 100% - padding: 0 10px - opacity: 0 - outline: 0 - border: 0 - background: transparent - color: $COLOR_TEXT - - label - position: absolute - overflow: hidden - right: -40px - - .field input, - .title - transition: opacity 0.2s - - .results - position: absolute - visibility: hidden - top: 40px - width: 100% - margin: 0 - padding: 0 - list-style: none - box-shadow: 0 0 4px rgba(#000, 0.25) - - li - padding: 0 10px - background-color: $COLOR_BACKGROUND - - li:nth-child(even) - background-color: $COLOR_PANEL - - li.state - display: none - - li.current, - li:hover - background-color: $COLOR_PANEL_DIVIDER - - a - display: block - - &:before - top: 10px - - span.parent - color: $COLOR_TEXT_ASIDE - font-weight: normal - - &.has-focus - background-color: $COLOR_PANEL_DIVIDER - - .field input - top: 0 - opacity: 1 - - .title - z-index: 0 - opacity: 0 - - .results - visibility: visible - - &.loading .results li.state.loading - display: block - - &.failure .results li.state.failure - display: block diff --git a/monaco-editor/typedoc/theme/assets/css/elements/_signatures.sass b/monaco-editor/typedoc/theme/assets/css/elements/_signatures.sass deleted file mode 100644 index 73fb413b..00000000 --- a/monaco-editor/typedoc/theme/assets/css/elements/_signatures.sass +++ /dev/null @@ -1,152 +0,0 @@ -// Wraps a function signature. -// Changes its appearance when directly placed inside a `tsd-panel`. -// Can be combined with class `tsd-kind-icon` to display an icon in front of the signature. -// -//
-//
-// getChildByName( -// name: string -// ): -// DeclarationReflection -//
-//
-// -.tsd-signature - margin: 0 0 1em 0 - padding: 10px - border: 1px solid $COLOR_PANEL_DIVIDER - font-family: $FONT_FAMILY_MONO - font-size: $FONT_SIZE_MONO - overflow-x: auto - - &.tsd-kind-icon - padding-left: 30px - - &:before - top: 10px - left: 10px - - .tsd-panel > & - margin-left: -20px - margin-right: -20px - border-width: 1px 0 - - &.tsd-kind-icon - padding-left: 40px - - &:before - left: 20px - -.tsd-signature-symbol - color: $COLOR_TEXT_ASIDE - font-weight: normal - -.tsd-signature-type - font-style: italic - font-weight: normal - - -// Displays a list of signatures. -// Changes its appearance when directly placed inside a `tsd-panel`. -// Made interactive by JavaScript at `typedoc.Signature`. -// -// -// -.tsd-signatures - padding: 0 - margin: 0 0 1em 0 - border: 1px solid $COLOR_PANEL_DIVIDER - - .tsd-signature - margin: 0 - border-width: 1px 0 0 0 - transition: background-color 0.1s - - &:first-child - border-top-width: 0 - - &.current - background-color: $COLOR_PANEL_DIVIDER - - &.active > .tsd-signature - cursor: pointer - - .tsd-panel > & - margin-left: -20px - margin-right: -20px - border-width: 1px 0 - - .tsd-signature.tsd-kind-icon - padding-left: 40px - - &:before - left: 20px - - .tsd-panel > a.anchor + & - border-top-width: 0 - margin-top: -20px - - -// Holds the descriptions related to a list of signatures. -// Made interactive by JavaScript at `typedoc.Signature`. -// -// -// -ul.tsd-descriptions - position: relative - overflow: hidden - padding: 0 - list-style: none - - > li - @extend %prevent-children-margin - - &.active > .tsd-description - display: none - - &.current - display: block - - &.fade-in - animation: fade-in-delayed 0.3s - - &.fade-out - animation: fade-out-delayed 0.3s - position: absolute - display: block - top: 0 - left: 0 - right: 0 - opacity: 0 - visibility: hidden - - h4 - font-size: $FONT_SIZE - margin: 1em 0 0.5em 0 - -ul.tsd-parameters, -ul.tsd-type-parameters - list-style: square - margin: 0 - padding-left: 20px - - > li.tsd-parameter-signature - list-style: none - margin-left: -20px - - h5 - font-size: $FONT_SIZE - margin: 1em 0 0.5em 0 - - .tsd-comment - margin-top: -0.5em diff --git a/monaco-editor/typedoc/theme/assets/css/elements/_sources.sass b/monaco-editor/typedoc/theme/assets/css/elements/_sources.sass deleted file mode 100644 index 91319389..00000000 --- a/monaco-editor/typedoc/theme/assets/css/elements/_sources.sass +++ /dev/null @@ -1,24 +0,0 @@ -// Displays the source and inheritance information -// -// -// -.tsd-sources - font-size: $FONT_SIZE_MONO - color: $COLOR_TEXT_ASIDE - margin: 0 0 1em 0 - - a - color: $COLOR_TEXT_ASIDE - text-decoration: underline - - ul, p - margin: 0 !important - - ul - list-style: none - padding: 0 \ No newline at end of file diff --git a/monaco-editor/typedoc/theme/assets/css/elements/_toolbar.sass b/monaco-editor/typedoc/theme/assets/css/elements/_toolbar.sass deleted file mode 100644 index 2ce6d686..00000000 --- a/monaco-editor/typedoc/theme/assets/css/elements/_toolbar.sass +++ /dev/null @@ -1,175 +0,0 @@ -// Displays the toolbar at the top of the page. -// -//
-//
-//
-// -//
-//
-//
-// -.tsd-page-toolbar - position: fixed - z-index: 1 - top: 0 - left: 0 - width: 100% - height: $TOOLBAR_HEIGHT - color: $TOOLBAR_TEXT_COLOR - background: $TOOLBAR_COLOR - border-bottom: 1px solid $COLOR_PANEL_DIVIDER - transition: transform .3s linear - - a - color: $TOOLBAR_TEXT_COLOR - text-decoration: none - - &.title - font-weight: bold - - &.title:hover - text-decoration: underline - - .table-wrap - display: table - width: 100% - height: $TOOLBAR_HEIGHT - - .table-cell - display: table-cell - position: relative - white-space: nowrap - line-height: $TOOLBAR_HEIGHT - - &:first-child - width: 100% - -.tsd-page-toolbar--hide - transform: translateY(-100%) - -%TSD_WIDGET_ICON - &:before - content: '' - display: inline-block - width: 40px - height: 40px - margin: 0 -8px 0 0 - background-image: url(../../images/widgets.png) - background-repeat: no-repeat - text-indent: -1024px - vertical-align: bottom - - +retina - background-image: url(../../images/widgets@2x.png) - background-size: 320px 40px - -.tsd-widget - @extend %TSD_WIDGET_ICON - display: inline-block - overflow: hidden - opacity: 0.6 - height: $TOOLBAR_HEIGHT - transition: opacity 0.1s, background-color 0.2s - vertical-align: bottom - cursor: pointer - - &:hover - opacity: 0.8 - - &.active - opacity: 1 - background-color: $COLOR_PANEL_DIVIDER - - &.no-caption - width: 40px - - &:before - margin: 0 - - &.search:before - background-position: 0 0 - - &.menu:before - background-position: -40px 0 - - &.options:before - background-position: -80px 0 - - &.options, - &.menu - display: none - - +size-xs-sm - display: inline-block - - input[type=checkbox] + &:before - background-position: -120px 0 - - input[type=checkbox]:checked + &:before - background-position: -160px 0 - -.tsd-select - position: relative - display: inline-block - height: $TOOLBAR_HEIGHT - transition: opacity 0.1s, background-color 0.2s - vertical-align: bottom - cursor: pointer - - .tsd-select-label - @extend %TSD_WIDGET_ICON - opacity: 0.6 - transition: opacity 0.2s - - &:before - background-position: -240px 0 - - &.active - .tsd-select-label - opacity: 0.8 - - .tsd-select-list - visibility: visible - opacity: 1 - transition-delay: 0s - - .tsd-select-list - position: absolute - visibility: hidden - top: $TOOLBAR_HEIGHT - left: 0 - margin: 0 - padding: 0 - opacity: 0 - list-style: none - box-shadow: 0 0 4px rgba(#000, 0.25) - transition: visibility 0s 0.2s, opacity 0.2s - - li - @extend %TSD_WIDGET_ICON - padding: 0 20px 0 0 - background-color: $COLOR_BACKGROUND - - &:before - background-position: 40px 0 - - &:nth-child(even) - background-color: $COLOR_PANEL - - &:hover - background-color: $COLOR_PANEL_DIVIDER - - &.selected:before - background-position: -200px 0 - - +size-xs-sm - .tsd-select-list - top: 0 - left: auto - right: 100% - margin-right: -5px - - .tsd-select-label:before - background-position: -280px 0 \ No newline at end of file diff --git a/monaco-editor/typedoc/theme/assets/css/layouts/_default.sass b/monaco-editor/typedoc/theme/assets/css/layouts/_default.sass deleted file mode 100644 index 9bf02498..00000000 --- a/monaco-editor/typedoc/theme/assets/css/layouts/_default.sass +++ /dev/null @@ -1,113 +0,0 @@ -html.default - +size-md - .col-content - width: 72% - - .col-menu - width: 28% - - .tsd-navigation - padding-left: 10px - - +size-xs-sm - .col-content - float: none - width: 100% - - .col-menu - position: fixed !important - overflow: auto - -webkit-overflow-scrolling: touch - z-index: 1024 - top: 0 !important - bottom: 0 !important - left: auto !important - right: 0 !important - width: 100% - padding: 20px 20px 0 0 - max-width: 450px - visibility: hidden - background-color: $COLOR_PANEL - transform: translate(100%,0) - - > *:last-child - padding-bottom: 20px - - .overlay - content: '' - display: block - position: fixed - z-index: 1023 - top: 0 - left: 0 - right: 0 - bottom: 0 - background-color: rgba(#000, 0.75) - visibility: hidden - - &.to-has-menu - .overlay - animation: fade-in 0.4s - - header, - footer, - .col-content - animation: shift-to-left 0.4s - - .col-menu - animation: pop-in-from-right 0.4s - - &.from-has-menu - .overlay - animation: fade-out 0.4s - - header, - footer, - .col-content - animation: unshift-to-left 0.4s - - .col-menu - animation: pop-out-to-right 0.4s - - &.has-menu - body - overflow: hidden - - .overlay - visibility: visible - - header, - footer, - .col-content - transform: translate(-25%, 0) - - .col-menu - visibility: visible - transform: translate(0,0) - -.tsd-page-title - padding: 70px 0 20px 0 - margin: 0 0 40px 0 - background: $COLOR_PANEL - box-shadow: 0 0 5px rgba(#000, 0.35) - - h1 - margin: 0 - -.tsd-breadcrumb - margin: 0 - padding: 0 - color: $COLOR_TEXT_ASIDE - - a - color: $COLOR_TEXT_ASIDE - text-decoration: none - - &:hover - text-decoration: underline - - li - display: inline - - &:after - content: ' / ' diff --git a/monaco-editor/typedoc/theme/assets/css/layouts/_minimal.sass b/monaco-editor/typedoc/theme/assets/css/layouts/_minimal.sass deleted file mode 100644 index 37484f0d..00000000 --- a/monaco-editor/typedoc/theme/assets/css/layouts/_minimal.sass +++ /dev/null @@ -1,49 +0,0 @@ -html.minimal - .container - margin: 0 - - .container-main - padding-top: 50px - padding-bottom: 0 - - .content-wrap - padding-left: 300px - - .tsd-navigation - position: fixed !important - overflow: auto - -webkit-overflow-scrolling: touch - box-sizing: border-box - z-index: 1 - left: 0 - top: 40px - bottom: 0 - width: 300px - padding: 20px - margin: 0 - - .tsd-member .tsd-member - margin-left: 0 - - .tsd-page-toolbar - position: fixed - z-index: 2 - - #tsd-filter .tsd-filter-group - right: 0 - transform: none - - footer - background-color: transparent - - .container - padding: 0 - - .tsd-generator - padding: 0 - - +size-xs-sm - .tsd-navigation - display: none - .content-wrap - padding-left: 0 diff --git a/monaco-editor/typedoc/theme/assets/css/main.sass b/monaco-editor/typedoc/theme/assets/css/main.sass deleted file mode 100644 index 29bc9173..00000000 --- a/monaco-editor/typedoc/theme/assets/css/main.sass +++ /dev/null @@ -1,26 +0,0 @@ -@import constants - -@import vendors/normalize - -@import setup/mixins -@import setup/grid -@import setup/icons -@import setup/animations -@import setup/typography - -@import layouts/default -@import layouts/minimal - -@import elements/comment -@import elements/filter -@import elements/footer -@import elements/hierarchy -@import elements/index -@import elements/member -@import elements/navigation -@import elements/panel -@import elements/search -@import elements/signatures -@import elements/sources -@import elements/toolbar -@import elements/images diff --git a/monaco-editor/typedoc/theme/assets/css/setup/_animations.sass b/monaco-editor/typedoc/theme/assets/css/setup/_animations.sass deleted file mode 100644 index cbfaf7c7..00000000 --- a/monaco-editor/typedoc/theme/assets/css/setup/_animations.sass +++ /dev/null @@ -1,54 +0,0 @@ -@keyframes fade-in - from - opacity: 0 - to - opacity: 1 - -@keyframes fade-out - from - opacity: 1 - visibility: visible - to - opacity: 0 - -@keyframes fade-in-delayed - 0% - opacity: 0 - 33% - opacity: 0 - 100% - opacity: 1 - -@keyframes fade-out-delayed - 0% - opacity: 1 - visibility: visible - 66% - opacity: 0 - 100% - opacity: 0 - -@keyframes shift-to-left - from - transform: translate(0,0) - to - transform: translate(-25%,0) - -@keyframes unshift-to-left - from - transform: translate(-25%,0) - to - transform: translate(0,0) - -@keyframes pop-in-from-right - from - transform: translate(100%,0) - to - transform: translate(0,0) - -@keyframes pop-out-to-right - from - transform: translate(0,0) - visibility: visible - to - transform: translate(100%,0) \ No newline at end of file diff --git a/monaco-editor/typedoc/theme/assets/css/setup/_grid.sass b/monaco-editor/typedoc/theme/assets/css/setup/_grid.sass deleted file mode 100644 index b15b297a..00000000 --- a/monaco-editor/typedoc/theme/assets/css/setup/_grid.sass +++ /dev/null @@ -1,60 +0,0 @@ -=size-xs - @media (max-width: 640px) - & - @content - -=size-sm - @media (min-width: 641px) and (max-width: 900px) - & - @content - -=size-md - @media (min-width: 901px) and (max-width: 1024px) - & - @content - -=size-lg - @media (min-width: 1025px) - & - @content - -=size-xs-sm - @media (max-width: 900px) - & - @content - -=size-md-lg - @media (min-width: 901px) - & - @content - -.container - max-width: 1200px - margin: 0 auto - padding: 0 40px - - +size-xs - padding: 0 20px - -.container-main - padding-bottom: 200px - -.row - +clearfix - display: flex - position: relative - margin: 0 -10px - -.col - @extend %prevent-children-margin - box-sizing: border-box - float: left - padding: 0 10px - -@for $width from 1 to 12 - .col-#{$width} - @extend .col - width: $width / 12 * 100% - - .offset-#{$width} - margin-left: $width / 12 * 100% diff --git a/monaco-editor/typedoc/theme/assets/css/setup/_icons.scss b/monaco-editor/typedoc/theme/assets/css/setup/_icons.scss deleted file mode 100644 index bafecdf1..00000000 --- a/monaco-editor/typedoc/theme/assets/css/setup/_icons.scss +++ /dev/null @@ -1,150 +0,0 @@ -$type-icons: (object-literal), (class), ("class.tsd-has-type-parameter"), - (interface), ("interface.tsd-has-type-parameter"), (namespace, module), - (enum), (enum-member), (signature), (type-alias), - ("type-alias.tsd-has-type-parameter"); - -$member-icons: (variable, property), (get-signature), (set-signature), - (accessor), (function, method, call-signature), - ("function.tsd-has-type-parameter", "method.tsd-has-type-parameter"), - (constructor, constructor-signature), (index-signature), (event), (property), - (function, method, call-signature), (event); - -// parameter -// type-literal -// type-parameter - -.tsd-kind-icon { - display: block; - position: relative; - padding-left: 20px; - text-indent: -20px; - - &:before { - content: ""; - display: inline-block; - vertical-align: middle; - width: 17px; - height: 17px; - margin: 0 3px 2px 0; - background-image: url(../../images/icons.png); - - @include retina { - background-image: url(../../images/icons@2x.png); - background-size: 238px 204px; - } - } -} - -.tsd-signature.tsd-kind-icon:before { - background-position: 0 -153px; -} - -$icon-size: 17px; -$type: -0 * $icon-size; -$type-protected: -1 * $icon-size; -$type-private: -2 * $icon-size; -$member-class-public: -3 * $icon-size; -$member-class-public-inherited: -4 * $icon-size; -$member-class-protected: -5 * $icon-size; -$member-class-protected-inherited: -6 * $icon-size; -$member-private: -7 * $icon-size; -$member: -8 * $icon-size; -$member-protected: -9 * $icon-size; -$member-enum: -10 * $icon-size; -$member-enum-protected: -11 * $icon-size; -$member-interface: -12 * $icon-size; -$member-interface-inherited: -13 * $icon-size; - -@for $index from 1 through length($type-icons) { - @each $kind in nth($type-icons, $index) { - $selector: ".tsd-kind-" + $kind; - $offset: -#{17 * ($index)}px; - - #{$selector} { - > .tsd-kind-icon:before { - background-position: $type $offset; - } - - &.tsd-is-protected > .tsd-kind-icon:before { - background-position: $type-protected $offset; - } - - &.tsd-is-private > .tsd-kind-icon:before { - background-position: $type-private $offset; - } - } - } -} - -@for $index from 1 through length($member-icons) { - @each $kind in nth($member-icons, $index) { - $offset: -#{17 * ($index - 1)}px; - $selector: ".tsd-kind-" + $kind; - @if $index == 10 { - $selector: ".tsd-is-static"; - } @else if $index > 10 { - $selector: ".tsd-is-static.tsd-kind-" + $kind; - } - - #{$selector} { - > .tsd-kind-icon:before { - background-position: $member $offset; - } - - &.tsd-is-protected > .tsd-kind-icon:before { - background-position: $member-protected $offset; - } - - &.tsd-is-private > .tsd-kind-icon:before { - background-position: $member-private $offset; - } - - &.tsd-parent-kind-class { - > .tsd-kind-icon:before { - background-position: $member-class-public $offset; - } - - &.tsd-is-inherited > .tsd-kind-icon:before { - background-position: $member-class-public-inherited $offset; - } - - &.tsd-is-protected > .tsd-kind-icon:before { - background-position: $member-class-protected $offset; - } - - &.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: $member-class-protected-inherited - $offset; - } - - &.tsd-is-private > .tsd-kind-icon:before { - background-position: $member-private $offset; - } - } - - &.tsd-parent-kind-enum { - > .tsd-kind-icon:before { - background-position: $member-enum $offset; - } - - &.tsd-is-protected > .tsd-kind-icon:before { - background-position: $member-enum-protected $offset; - } - - &.tsd-is-private > .tsd-kind-icon:before { - background-position: $member-private $offset; - } - } - - &.tsd-parent-kind-interface { - > .tsd-kind-icon:before { - background-position: $member-interface $offset; - } - - &.tsd-is-inherited > .tsd-kind-icon:before { - background-position: $member-interface-inherited $offset; - } - } - } - } -} diff --git a/monaco-editor/typedoc/theme/assets/css/setup/_mixins.sass b/monaco-editor/typedoc/theme/assets/css/setup/_mixins.sass deleted file mode 100644 index 94cb8d21..00000000 --- a/monaco-editor/typedoc/theme/assets/css/setup/_mixins.sass +++ /dev/null @@ -1,30 +0,0 @@ -@mixin vendors($property, $value...) - -webkit-#{$property}: $value - -moz-#{$property}: $value - -ms-#{$property}: $value - -o-#{$property}: $value - #{$property}: $value - -@mixin clearfix - &:after - visibility: hidden - display: block - content: "" - clear: both - height: 0 - -@mixin retina - @media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) - & - @content - -%prevent-children-margin - > :first-child, - > :first-child > :first-child, - > :first-child > :first-child > :first-child - margin-top: 0 - - > :last-child, - > :last-child > :last-child, - > :last-child > :last-child > :last-child - margin-bottom: 0 diff --git a/monaco-editor/typedoc/theme/assets/css/setup/_typography.sass b/monaco-editor/typedoc/theme/assets/css/setup/_typography.sass deleted file mode 100644 index dc7af906..00000000 --- a/monaco-editor/typedoc/theme/assets/css/setup/_typography.sass +++ /dev/null @@ -1,50 +0,0 @@ -body - background: $COLOR_BACKGROUND - font-family: $FONT_FAMILY - font-size: $FONT_SIZE - color: $COLOR_TEXT - -a - color: $COLOR_LINK - text-decoration: none - - &:hover - text-decoration: underline - -code, pre - font-family: $FONT_FAMILY_MONO - padding: 0.2em - margin: 0 - font-size: $FONT_SIZE_MONO - background-color: $COLOR_CODE_BACKGROUND - -pre - padding: 10px - - code - padding: 0 - font-size: 100% - background-color: transparent - -blockquote - margin: 1em 0 - padding-left: 1em - border-left: 4px solid gray - -.tsd-typography - line-height: $LINE_HEIGHT - - ul - list-style: square - padding: 0 0 0 20px - margin: 0 - - h4, h5, h6 - font-size: 1em - margin: 0 - - h5, h6 - font-weight: normal - - p, ul, ol - margin: 1em 0 diff --git a/monaco-editor/typedoc/theme/assets/css/vendors/_normalize.sass b/monaco-editor/typedoc/theme/assets/css/vendors/_normalize.sass deleted file mode 100644 index 6ce844af..00000000 --- a/monaco-editor/typedoc/theme/assets/css/vendors/_normalize.sass +++ /dev/null @@ -1,424 +0,0 @@ -/*! normalize.css v1.1.3 | MIT License | git.io/normalize - -/* ========================================================================== - * HTML5 display definitions - * ========================================================================== - -/** - * Correct `block` display not defined in IE 6/7/8/9 and Firefox 3. - -article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary - display: block - -/** - * Correct `inline-block` display not defined in IE 6/7/8/9 and Firefox 3. - -audio, canvas, video - display: inline-block - *display: inline - *zoom: 1 - -/** - * Prevent modern browsers from displaying `audio` without controls. - * Remove excess height in iOS 5 devices. - -audio:not([controls]) - display: none - height: 0 - -/** - * Address styling not present in IE 7/8/9, Firefox 3, and Safari 4. - * Known issue: no IE 6 support. - -[hidden] - display: none - -/* ========================================================================== - * Base - * ========================================================================== - -/** - * 1. Correct text resizing oddly in IE 6/7 when body `font-size` is set using - * `em` units. - * 2. Prevent iOS text size adjust after orientation change, without disabling - * user zoom. - -html - font-size: 100% - /* 1 - -ms-text-size-adjust: 100% - /* 2 - -webkit-text-size-adjust: 100% - /* 2 - font-family: sans-serif - -/** - * Address `font-family` inconsistency between `textarea` and other form - * elements. - -button, input, select, textarea - font-family: sans-serif - -/** - * Address margins handled incorrectly in IE 6/7. - -body - margin: 0 - -/* ========================================================================== - * Links - * ========================================================================== - -/** - * Address `outline` inconsistency between Chrome and other browsers. - -a - &:focus - outline: thin dotted - &:active, &:hover - outline: 0 - -/** - * Improve readability when focused and also mouse hovered in all browsers. - -/* ========================================================================== - * Typography - * ========================================================================== - -/** - * Address font sizes and margins set differently in IE 6/7. - * Address font sizes within `section` and `article` in Firefox 4+, Safari 5, - * and Chrome. - -h1 - font-size: 2em - margin: 0.67em 0 - -h2 - font-size: 1.5em - margin: 0.83em 0 - -h3 - font-size: 1.17em - margin: 1em 0 - -h4 - font-size: 1em - margin: 1.33em 0 - -h5 - font-size: 0.83em - margin: 1.67em 0 - -h6 - font-size: 0.67em - margin: 2.33em 0 - -/** - * Address styling not present in IE 7/8/9, Safari 5, and Chrome. - -abbr[title] - border-bottom: 1px dotted - -/** - * Address style set to `bolder` in Firefox 3+, Safari 4/5, and Chrome. - -b, strong - font-weight: bold - -blockquote - margin: 1em 40px - -/** - * Address styling not present in Safari 5 and Chrome. - -dfn - font-style: italic - -/** - * Address differences between Firefox and other browsers. - * Known issue: no IE 6/7 normalization. - -hr - -moz-box-sizing: content-box - box-sizing: content-box - height: 0 - -/** - * Address styling not present in IE 6/7/8/9. - -mark - background: #ff0 - color: #000 - -/** - * Address margins set differently in IE 6/7. - -p, pre - margin: 1em 0 - -/** - * Correct font family set oddly in IE 6, Safari 4/5, and Chrome. - -code, kbd, pre, samp - font-family: monospace, serif - _font-family: 'courier new', monospace - font-size: 1em - -/** - * Improve readability of pre-formatted text in all browsers. - -pre - white-space: pre - white-space: pre-wrap - word-wrap: break-word - -/** - * Address CSS quotes not supported in IE 6/7. - -q - quotes: none - &:before, &:after - content: '' - content: none - -/** - * Address `quotes` property not supported in Safari 4. - -/** - * Address inconsistent and variable font size in all browsers. - -small - font-size: 80% - -/** - * Prevent `sub` and `sup` affecting `line-height` in all browsers. - -sub - font-size: 75% - line-height: 0 - position: relative - vertical-align: baseline - -sup - font-size: 75% - line-height: 0 - position: relative - vertical-align: baseline - top: -0.5em - -sub - bottom: -0.25em - -/* ========================================================================== - * Lists - * ========================================================================== - -/** - * Address margins set differently in IE 6/7. - -dl, menu, ol, ul - margin: 1em 0 - -dd - margin: 0 0 0 40px - -/** - * Address paddings set differently in IE 6/7. - -menu, ol, ul - padding: 0 0 0 40px - -/** - * Correct list images handled incorrectly in IE 7. - -nav - ul, ol - list-style: none - list-style-image: none - -/* ========================================================================== - * Embedded content - * ========================================================================== - -/** - * 1. Remove border when inside `a` element in IE 6/7/8/9 and Firefox 3. - * 2. Improve image quality when scaled in IE 7. - -img - border: 0 - /* 1 - -ms-interpolation-mode: bicubic -/* 2 - -/** - * Correct overflow displayed oddly in IE 9. - -svg:not(:root) - overflow: hidden - -/* ========================================================================== - * Figures - * ========================================================================== - -/** - * Address margin not present in IE 6/7/8/9, Safari 5, and Opera 11. - -figure, form - margin: 0 - -/* ========================================================================== - * Forms - * ========================================================================== - -/** - * Correct margin displayed oddly in IE 6/7. - -/** - * Define consistent border, margin, and padding. - -fieldset - border: 1px solid #c0c0c0 - margin: 0 2px - padding: 0.35em 0.625em 0.75em - -/** - * 1. Correct color not being inherited in IE 6/7/8/9. - * 2. Correct text not wrapping in Firefox 3. - * 3. Correct alignment displayed oddly in IE 6/7. - -legend - border: 0 - /* 1 - padding: 0 - white-space: normal - /* 2 - *margin-left: -7px -/* 3 - -/** - * 1. Correct font size not being inherited in all browsers. - * 2. Address margins set differently in IE 6/7, Firefox 3+, Safari 5, - * and Chrome. - * 3. Improve appearance and consistency in all browsers. - -button, input, select, textarea - font-size: 100% - /* 1 - margin: 0 - /* 2 - vertical-align: baseline - /* 3 - *vertical-align: middle -/* 3 - -/** - * Address Firefox 3+ setting `line-height` on `input` using `!important` in - * the UA stylesheet. - -button, input - line-height: normal - -/** - * Address inconsistent `text-transform` inheritance for `button` and `select`. - * All other form control elements do not inherit `text-transform` values. - * Correct `button` style inheritance in Chrome, Safari 5+, and IE 6+. - * Correct `select` style inheritance in Firefox 4+ and Opera. - -button, select - text-transform: none - -/** - * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` - * and `video` controls. - * 2. Correct inability to style clickable `input` types in iOS. - * 3. Improve usability and consistency of cursor style between image-type - * `input` and others. - * 4. Remove inner spacing in IE 7 without affecting normal text inputs. - * Known issue: inner spacing remains in IE 6. - -button, html input[type="button"] - -webkit-appearance: button - /* 2 - cursor: pointer - /* 3 - *overflow: visible -/* 4 - -input - &[type="reset"], &[type="submit"] - -webkit-appearance: button - /* 2 - cursor: pointer - /* 3 - *overflow: visible -/* 4 - -/** - * Re-set default cursor for disabled elements. - -button[disabled], html input[disabled] - cursor: default - -/** - * 1. Address box sizing set to content-box in IE 8/9. - * 2. Remove excess padding in IE 8/9. - * 3. Remove excess padding in IE 7. - * Known issue: excess padding remains in IE 6. - -input - &[type="checkbox"], &[type="radio"] - box-sizing: border-box - /* 1 - padding: 0 - /* 2 - *height: 13px - /* 3 - *width: 13px - /* 3 - &[type="search"] - -webkit-appearance: textfield - /* 1 - -moz-box-sizing: content-box - -webkit-box-sizing: content-box - /* 2 - box-sizing: content-box - &::-webkit-search-cancel-button, &::-webkit-search-decoration - -webkit-appearance: none - -/** - * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome. - * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome - * (include `-moz` to future-proof). - -/** - * Remove inner padding and search cancel button in Safari 5 and Chrome - * on OS X. - -/** - * Remove inner padding and border in Firefox 3+. - -button::-moz-focus-inner, input::-moz-focus-inner - border: 0 - padding: 0 - -/** - * 1. Remove default vertical scrollbar in IE 6/7/8/9. - * 2. Improve readability and alignment in all browsers. - -textarea - overflow: auto - /* 1 - vertical-align: top -/* 2 - -/* ========================================================================== - * Tables - * ========================================================================== - -/** - * Remove most spacing between table cells. - -table - border-collapse: collapse - border-spacing: 0 diff --git a/monaco-editor/typedoc/theme/assets/images/icons.png b/monaco-editor/typedoc/theme/assets/images/icons.png deleted file mode 100644 index 3836d5fe..00000000 Binary files a/monaco-editor/typedoc/theme/assets/images/icons.png and /dev/null differ diff --git a/monaco-editor/typedoc/theme/assets/images/icons.psd b/monaco-editor/typedoc/theme/assets/images/icons.psd deleted file mode 100644 index 757fa7a8..00000000 Binary files a/monaco-editor/typedoc/theme/assets/images/icons.psd and /dev/null differ diff --git a/monaco-editor/typedoc/theme/assets/images/icons@2x.png b/monaco-editor/typedoc/theme/assets/images/icons@2x.png deleted file mode 100644 index 5a209e2f..00000000 Binary files a/monaco-editor/typedoc/theme/assets/images/icons@2x.png and /dev/null differ diff --git a/monaco-editor/typedoc/theme/assets/images/widgets.png b/monaco-editor/typedoc/theme/assets/images/widgets.png deleted file mode 100644 index c7380532..00000000 Binary files a/monaco-editor/typedoc/theme/assets/images/widgets.png and /dev/null differ diff --git a/monaco-editor/typedoc/theme/assets/images/widgets.psd b/monaco-editor/typedoc/theme/assets/images/widgets.psd deleted file mode 100644 index deef7041..00000000 Binary files a/monaco-editor/typedoc/theme/assets/images/widgets.psd and /dev/null differ diff --git a/monaco-editor/typedoc/theme/assets/images/widgets@2x.png b/monaco-editor/typedoc/theme/assets/images/widgets@2x.png deleted file mode 100644 index 4bbbd572..00000000 Binary files a/monaco-editor/typedoc/theme/assets/images/widgets@2x.png and /dev/null differ diff --git a/monaco-editor/typedoc/theme/assets/js/src/bootstrap.ts b/monaco-editor/typedoc/theme/assets/js/src/bootstrap.ts deleted file mode 100644 index 5e99eed7..00000000 --- a/monaco-editor/typedoc/theme/assets/js/src/bootstrap.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { Application, registerComponent } from "./typedoc/Application"; -import { MenuHighlight } from "./typedoc/components/MenuHighlight"; -import { initSearch } from "./typedoc/components/Search"; -import { Signature } from "./typedoc/components/Signature"; -import { Toggle } from "./typedoc/components/Toggle"; -import { Filter } from "./typedoc/components/Filter"; - -import "../../css/main.sass"; - -initSearch(); - -registerComponent(MenuHighlight, ".menu-highlight"); -registerComponent(Signature, ".tsd-signatures"); -registerComponent(Toggle, "a[data-toggle]"); - -if (Filter.isSupported()) { - registerComponent(Filter, "#tsd-filter"); -} else { - document.documentElement.classList.add("no-filter"); -} - -const app: Application = new Application(); - -Object.defineProperty(window, "app", { value: app }); diff --git a/monaco-editor/typedoc/theme/assets/js/src/typedoc/Application.ts b/monaco-editor/typedoc/theme/assets/js/src/typedoc/Application.ts deleted file mode 100644 index 44bd8a9f..00000000 --- a/monaco-editor/typedoc/theme/assets/js/src/typedoc/Application.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { IComponentOptions } from "./Component"; - -/** - * Component definition. - */ -export interface IComponent { - constructor: new (options: IComponentOptions) => unknown; - selector: string; -} - -/** - * List of all known components. - */ -const components: IComponent[] = []; - -/** - * Register a new component. - */ -export function registerComponent( - constructor: IComponent["constructor"], - selector: string -) { - components.push({ - selector: selector, - constructor: constructor, - }); -} - -/** - * TypeDoc application class. - */ -export class Application { - /** - * Create a new Application instance. - */ - constructor() { - this.createComponents(document.body); - } - - /** - * Create all components beneath the given jQuery element. - */ - public createComponents(context: HTMLElement) { - components.forEach((c) => { - context.querySelectorAll(c.selector).forEach((el) => { - if (!el.dataset.hasInstance) { - new c.constructor({ el: el }); - el.dataset.hasInstance = String(true); - } - }); - }); - } -} diff --git a/monaco-editor/typedoc/theme/assets/js/src/typedoc/Component.ts b/monaco-editor/typedoc/theme/assets/js/src/typedoc/Component.ts deleted file mode 100644 index 1bc43752..00000000 --- a/monaco-editor/typedoc/theme/assets/js/src/typedoc/Component.ts +++ /dev/null @@ -1,14 +0,0 @@ -export interface IComponentOptions { - el: HTMLElement; -} - -/** - * TypeDoc component class. - */ -export class Component { - protected el: HTMLElement; - - constructor(options: IComponentOptions) { - this.el = options.el; - } -} diff --git a/monaco-editor/typedoc/theme/assets/js/src/typedoc/EventTarget.ts b/monaco-editor/typedoc/theme/assets/js/src/typedoc/EventTarget.ts deleted file mode 100644 index 88f46293..00000000 --- a/monaco-editor/typedoc/theme/assets/js/src/typedoc/EventTarget.ts +++ /dev/null @@ -1,42 +0,0 @@ -export interface IEventListener { - (evt: CustomEvent): void; -} - -/** - * TypeDoc event target class. - */ -export class EventTarget { - private listeners: Record[]> = {}; - - public addEventListener(type: string, callback: IEventListener) { - if (!(type in this.listeners)) { - this.listeners[type] = []; - } - this.listeners[type].push(callback); - } - - public removeEventListener(type: string, callback: IEventListener) { - if (!(type in this.listeners)) { - return; - } - const stack = this.listeners[type]; - for (let i = 0, l = stack.length; i < l; i++) { - if (stack[i] === callback) { - stack.splice(i, 1); - return; - } - } - } - - public dispatchEvent(event: CustomEvent) { - if (!(event.type in this.listeners)) { - return true; - } - const stack = this.listeners[event.type].slice(); - - for (let i = 0, l = stack.length; i < l; i++) { - stack[i].call(this, event); - } - return !event.defaultPrevented; - } -} diff --git a/monaco-editor/typedoc/theme/assets/js/src/typedoc/components/Filter.ts b/monaco-editor/typedoc/theme/assets/js/src/typedoc/components/Filter.ts deleted file mode 100644 index 650974e8..00000000 --- a/monaco-editor/typedoc/theme/assets/js/src/typedoc/components/Filter.ts +++ /dev/null @@ -1,166 +0,0 @@ -import { Component, IComponentOptions } from "../Component"; -import { pointerDown, pointerUp } from "../utils/pointer"; - -abstract class FilterItem { - protected key: string; - - protected value: T; - - protected defaultValue: T; - - constructor(key: string, value: T) { - this.key = key; - this.value = value; - this.defaultValue = value; - - this.initialize(); - - if (window.localStorage[this.key]) { - this.setValue(this.fromLocalStorage(window.localStorage[this.key])); - } - } - - protected initialize() {} - - protected abstract handleValueChange(oldValue: T, newValue: T): void; - - protected abstract fromLocalStorage(value: string): T; - - protected abstract toLocalStorage(value: T): string; - - protected setValue(value: T) { - if (this.value == value) return; - - const oldValue = this.value; - this.value = value; - window.localStorage[this.key] = this.toLocalStorage(value); - - this.handleValueChange(oldValue, value); - } -} - -class FilterItemCheckbox extends FilterItem { - private checkbox!: HTMLInputElement; - - protected initialize() { - const checkbox = document.querySelector( - "#tsd-filter-" + this.key - ); - if (!checkbox) return; - - this.checkbox = checkbox; - this.checkbox.addEventListener("change", () => { - this.setValue(this.checkbox.checked); - }); - } - - protected handleValueChange(oldValue: boolean, newValue: boolean) { - if (!this.checkbox) return; - this.checkbox.checked = this.value; - document.documentElement.classList.toggle( - "toggle-" + this.key, - this.value != this.defaultValue - ); - } - - protected fromLocalStorage(value: string): boolean { - return value == "true"; - } - - protected toLocalStorage(value: boolean): string { - return value ? "true" : "false"; - } -} - -class FilterItemSelect extends FilterItem { - private select!: HTMLElement; - - protected initialize() { - document.documentElement.classList.add( - "toggle-" + this.key + this.value - ); - - const select = document.querySelector( - "#tsd-filter-" + this.key - ); - if (!select) return; - - this.select = select; - const onActivate = () => { - this.select.classList.add("active"); - }; - const onDeactivate = () => { - this.select.classList.remove("active"); - }; - - this.select.addEventListener(pointerDown, onActivate); - this.select.addEventListener("mouseover", onActivate); - this.select.addEventListener("mouseleave", onDeactivate); - - this.select.querySelectorAll("li").forEach((el) => { - el.addEventListener(pointerUp, (e) => { - select.classList.remove("active"); - this.setValue((e.target as HTMLElement).dataset.value || ""); - }); - }); - - document.addEventListener(pointerDown, (e) => { - if (this.select.contains(e.target as HTMLElement)) return; - - this.select.classList.remove("active"); - }); - } - - protected handleValueChange(oldValue: string, newValue: string) { - this.select.querySelectorAll("li.selected").forEach((el) => { - el.classList.remove("selected"); - }); - - const selected = this.select.querySelector( - 'li[data-value="' + newValue + '"]' - ); - const label = this.select.querySelector( - ".tsd-select-label" - ); - - if (selected && label) { - selected.classList.add("selected"); - label.textContent = selected.textContent; - } - - document.documentElement.classList.remove("toggle-" + oldValue); - document.documentElement.classList.add("toggle-" + newValue); - } - - protected fromLocalStorage(value: string): string { - return value; - } - - protected toLocalStorage(value: string): string { - return value; - } -} - -export class Filter extends Component { - private optionVisibility: FilterItemSelect; - - private optionInherited: FilterItemCheckbox; - - private optionExternals: FilterItemCheckbox; - - constructor(options: IComponentOptions) { - super(options); - - this.optionVisibility = new FilterItemSelect("visibility", "private"); - this.optionInherited = new FilterItemCheckbox("inherited", true); - this.optionExternals = new FilterItemCheckbox("externals", true); - } - - static isSupported(): boolean { - try { - return typeof window.localStorage != "undefined"; - } catch (e) { - return false; - } - } -} diff --git a/monaco-editor/typedoc/theme/assets/js/src/typedoc/components/MenuHighlight.ts b/monaco-editor/typedoc/theme/assets/js/src/typedoc/components/MenuHighlight.ts deleted file mode 100644 index 1e684281..00000000 --- a/monaco-editor/typedoc/theme/assets/js/src/typedoc/components/MenuHighlight.ts +++ /dev/null @@ -1,141 +0,0 @@ -import { Component, IComponentOptions } from "../Component"; -import { Viewport } from "../services/Viewport"; - -/** - * Stored element and position data of a single anchor. - */ -interface IAnchorInfo { - /** - * The anchor element. - */ - anchor: HTMLElement; - - /** - * The link element in the navigation representing this anchor. - */ - link: HTMLElement; - - /** - * The vertical offset of the anchor on the page. - */ - position: number; -} - -/** - * Manages the sticky state of the navigation and moves the highlight - * to the current navigation item. - */ -export class MenuHighlight extends Component { - /** - * List of all discovered anchors. - */ - private anchors: IAnchorInfo[] = []; - - /** - * Index of the currently highlighted anchor. - */ - private index: number = -1; - - /** - * Create a new MenuHighlight instance. - * - * @param options Backbone view constructor options. - */ - constructor(options: IComponentOptions) { - super(options); - - Viewport.instance.addEventListener("resize", () => this.onResize()); - Viewport.instance.addEventListener<{ scrollTop: number }>( - "scroll", - (e) => this.onScroll(e) - ); - - this.createAnchors(); - } - - /** - * Find all anchors on the current page. - */ - private createAnchors() { - let base = window.location.href; - if (base.indexOf("#") != -1) { - base = base.substr(0, base.indexOf("#")); - } - - this.el.querySelectorAll("a").forEach((el) => { - const href = el.href; - if (href.indexOf("#") == -1) return; - if (href.substr(0, base.length) != base) return; - - const hash = href.substr(href.indexOf("#") + 1); - const anchor = document.querySelector( - "a.tsd-anchor[name=" + hash + "]" - ); - const link = el.parentNode; - if (!anchor || !link) return; - - this.anchors.push({ - link: link as HTMLElement, - anchor: anchor, - position: 0, - }); - }); - - this.onResize(); - } - - /** - * Triggered after the viewport was resized. - */ - private onResize() { - let anchor: IAnchorInfo; - for ( - let index = 0, count = this.anchors.length; - index < count; - index++ - ) { - anchor = this.anchors[index]; - const rect = anchor.anchor.getBoundingClientRect(); - anchor.position = rect.top + document.body.scrollTop; - } - - this.anchors.sort((a, b) => { - return a.position - b.position; - }); - - const event = new CustomEvent("scroll", { - detail: { - scrollTop: Viewport.instance.scrollTop, - }, - }); - this.onScroll(event); - } - - /** - * Triggered after the viewport was scrolled. - * - * @param event The custom event with the current vertical scroll position. - */ - private onScroll(event: CustomEvent<{ scrollTop: number }>) { - const scrollTop = event.detail.scrollTop + 5; - const anchors = this.anchors; - const count = anchors.length - 1; - let index = this.index; - - while (index > -1 && anchors[index].position > scrollTop) { - index -= 1; - } - - while (index < count && anchors[index + 1].position < scrollTop) { - index += 1; - } - - if (this.index != index) { - if (this.index > -1) - this.anchors[this.index].link.classList.remove("focus"); - this.index = index; - if (this.index > -1) - this.anchors[this.index].link.classList.add("focus"); - } - } -} diff --git a/monaco-editor/typedoc/theme/assets/js/src/typedoc/components/Search.ts b/monaco-editor/typedoc/theme/assets/js/src/typedoc/components/Search.ts deleted file mode 100644 index b799cab2..00000000 --- a/monaco-editor/typedoc/theme/assets/js/src/typedoc/components/Search.ts +++ /dev/null @@ -1,266 +0,0 @@ -import { debounce } from "../utils/debounce"; -import { Index } from "lunr"; - -interface IDocument { - id: number; - kind: number; - name: string; - url: string; - classes: string; - parent?: string; -} - -interface IData { - kinds: { [kind: number]: string }; - rows: IDocument[]; - index: object; -} - -declare global { - interface Window { - searchData?: IData; - } -} - -interface SearchState { - base: string; - data?: IData; - index?: Index; -} - -export function initSearch() { - const searchEl = document.getElementById("tsd-search"); - if (!searchEl) return; - - const searchScript = document.getElementById( - "search-script" - ) as HTMLScriptElement | null; - searchEl.classList.add("loading"); - if (searchScript) { - searchScript.addEventListener("error", () => { - searchEl.classList.remove("loading"); - searchEl.classList.add("failure"); - }); - searchScript.addEventListener("load", () => { - searchEl.classList.remove("loading"); - searchEl.classList.add("ready"); - }); - if (window.searchData) { - searchEl.classList.remove("loading"); - } - } - - const field = document.querySelector("#tsd-search-field"); - const results = document.querySelector(".results"); - - if (!field || !results) { - throw new Error( - "The input field or the result list wrapper was not found" - ); - } - - let resultClicked = false; - results.addEventListener("mousedown", () => (resultClicked = true)); - results.addEventListener("mouseup", () => { - resultClicked = false; - searchEl.classList.remove("has-focus"); - }); - - field.addEventListener("focus", () => searchEl.classList.add("has-focus")); - field.addEventListener("blur", () => { - if (!resultClicked) { - resultClicked = false; - searchEl.classList.remove("has-focus"); - } - }); - - const state: SearchState = { - base: searchEl.dataset.base + "/", - }; - - bindEvents(searchEl, results, field, state); -} - -function bindEvents( - searchEl: HTMLElement, - results: HTMLElement, - field: HTMLInputElement, - state: SearchState -) { - field.addEventListener( - "input", - debounce(() => { - updateResults(searchEl, results, field, state); - }, 200) - ); - - let preventPress = false; - field.addEventListener("keydown", (e) => { - preventPress = true; - if (e.key == "Enter") { - gotoCurrentResult(results, field); - } else if (e.key == "Escape") { - field.blur(); - } else if (e.key == "ArrowUp") { - setCurrentResult(results, -1); - } else if (e.key === "ArrowDown") { - setCurrentResult(results, 1); - } else { - preventPress = false; - } - }); - field.addEventListener("keypress", (e) => { - if (preventPress) e.preventDefault(); - }); - - /** - * Start searching by pressing slash. - */ - document.body.addEventListener("keydown", (e) => { - if (e.altKey || e.ctrlKey || e.metaKey) return; - if (!field.matches(":focus") && e.key === "/") { - field.focus(); - e.preventDefault(); - } - }); -} - -function checkIndex(state: SearchState, searchEl: HTMLElement) { - if (state.index) return; - - if (window.searchData) { - searchEl.classList.remove("loading"); - searchEl.classList.add("ready"); - state.data = window.searchData; - state.index = Index.load(window.searchData.index); - } -} - -function updateResults( - searchEl: HTMLElement, - results: HTMLElement, - query: HTMLInputElement, - state: SearchState -) { - checkIndex(state, searchEl); - // Don't clear results if loading state is not ready, - // because loading or error message can be removed. - if (!state.index || !state.data) return; - - results.textContent = ""; - - const searchText = query.value.trim(); - - // Perform a wildcard search - let res = state.index.search(`*${searchText}*`); - - for (let i = 0, c = Math.min(10, res.length); i < c; i++) { - const row = state.data.rows[Number(res[i].ref)]; - - // Bold the matched part of the query in the search results - let name = boldMatches(row.name, searchText); - if (row.parent) { - name = `${boldMatches( - row.parent, - searchText - )}.${name}`; - } - - const item = document.createElement("li"); - item.classList.value = row.classes; - - const anchor = document.createElement("a"); - anchor.href = state.base + row.url; - anchor.classList.add("tsd-kind-icon"); - anchor.innerHTML = name; - item.append(anchor); - - results.appendChild(item); - } -} - -/** - * Move the highlight within the result set. - */ -function setCurrentResult(results: HTMLElement, dir: number) { - let current = results.querySelector(".current"); - if (!current) { - current = results.querySelector( - dir == 1 ? "li:first-child" : "li:last-child" - ); - if (current) { - current.classList.add("current"); - } - } else { - const rel = - dir == 1 - ? current.nextElementSibling - : current.previousElementSibling; - if (rel) { - current.classList.remove("current"); - rel.classList.add("current"); - } - } -} - -/** - * Navigate to the highlighted result. - */ -function gotoCurrentResult(results: HTMLElement, field: HTMLInputElement) { - let current = results.querySelector(".current"); - - if (!current) { - current = results.querySelector("li:first-child"); - } - - if (current) { - const link = current.querySelector("a"); - if (link) { - window.location.href = link.href; - } - field.blur(); - } -} - -function boldMatches(text: string, search: string) { - if (search === "") { - return text; - } - - const lowerText = text.toLocaleLowerCase(); - const lowerSearch = search.toLocaleLowerCase(); - - const parts = []; - let lastIndex = 0; - let index = lowerText.indexOf(lowerSearch); - while (index != -1) { - parts.push( - escapeHtml(text.substring(lastIndex, index)), - `${escapeHtml( - text.substring(index, index + lowerSearch.length) - )}` - ); - - lastIndex = index + lowerSearch.length; - index = lowerText.indexOf(lowerSearch, lastIndex); - } - - parts.push(escapeHtml(text.substring(lastIndex))); - - return parts.join(""); -} - -const SPECIAL_HTML = { - "&": "&", - "<": "<", - ">": ">", - "'": "'", - '"': """, -} as const; - -function escapeHtml(text: string) { - return text.replace( - /[&<>"'"]/g, - (match) => SPECIAL_HTML[match as keyof typeof SPECIAL_HTML] - ); -} diff --git a/monaco-editor/typedoc/theme/assets/js/src/typedoc/components/Signature.ts b/monaco-editor/typedoc/theme/assets/js/src/typedoc/components/Signature.ts deleted file mode 100644 index 1682c82f..00000000 --- a/monaco-editor/typedoc/theme/assets/js/src/typedoc/components/Signature.ts +++ /dev/null @@ -1,157 +0,0 @@ -import { Component, IComponentOptions } from "../Component"; -import { Viewport } from "../services/Viewport"; - -/** - * Holds a signature and its description. - */ -class SignatureGroup { - /** - * The target signature. - */ - signature: Element; - - /** - * The description for the signature. - */ - description: Element; - - /** - * Create a new SignatureGroup instance. - * - * @param signature The target signature. - * @param description The description for the signature. - */ - constructor(signature: Element, description: Element) { - this.signature = signature; - this.description = description; - } - - /** - * Add the given class to all elements of the group. - * - * @param className The class name to add. - */ - addClass(className: string): SignatureGroup { - this.signature.classList.add(className); - this.description.classList.add(className); - return this; - } - - /** - * Remove the given class from all elements of the group. - * - * @param className The class name to remove. - */ - removeClass(className: string): SignatureGroup { - this.signature.classList.remove(className); - this.description.classList.remove(className); - return this; - } -} - -/** - * Controls the tab like behaviour of methods and functions with multiple signatures. - */ -export class Signature extends Component { - /** - * List of found signature groups. - */ - private groups: SignatureGroup[] = []; - - /** - * The container holding all the descriptions. - */ - private container?: HTMLElement; - - /** - * The index of the currently displayed signature. - */ - private index: number = -1; - - /** - * Create a new Signature instance. - * - * @param options Backbone view constructor options. - */ - constructor(options: IComponentOptions) { - super(options); - - this.createGroups(); - - if (this.container) { - this.el.classList.add("active"); - Array.from(this.el.children).forEach((signature) => { - signature.addEventListener("touchstart", (event) => - this.onClick(event) - ); - signature.addEventListener("click", (event) => - this.onClick(event) - ); - }); - this.container.classList.add("active"); - this.setIndex(0); - } - } - - /** - * Set the index of the active signature. - * - * @param index The index of the signature to activate. - */ - private setIndex(index: number) { - if (index < 0) index = 0; - if (index > this.groups.length - 1) index = this.groups.length - 1; - if (this.index == index) return; - - const to = this.groups[index]; - if (this.index > -1) { - const from = this.groups[this.index]; - - from.removeClass("current").addClass("fade-out"); - to.addClass("current"); - to.addClass("fade-in"); - Viewport.instance.triggerResize(); - - setTimeout(() => { - from.removeClass("fade-out"); - to.removeClass("fade-in"); - }, 300); - } else { - to.addClass("current"); - Viewport.instance.triggerResize(); - } - - this.index = index; - } - - /** - * Find all signature/description groups. - */ - private createGroups() { - const signatures = this.el.children; - if (signatures.length < 2) return; - - this.container = this.el.nextElementSibling as HTMLElement; - const descriptions = this.container.children; - - this.groups = []; - for (let index = 0; index < signatures.length; index++) { - this.groups.push( - new SignatureGroup(signatures[index], descriptions[index]) - ); - } - } - - /** - * Triggered when the user clicks onto a signature header. - * - * @param e The related event object. - */ - private onClick(e: Event) { - this.groups.forEach((group, index) => { - if (group.signature === e.currentTarget) { - this.setIndex(index); - } - }); - } -} diff --git a/monaco-editor/typedoc/theme/assets/js/src/typedoc/components/Toggle.ts b/monaco-editor/typedoc/theme/assets/js/src/typedoc/components/Toggle.ts deleted file mode 100644 index 79b510cd..00000000 --- a/monaco-editor/typedoc/theme/assets/js/src/typedoc/components/Toggle.ts +++ /dev/null @@ -1,79 +0,0 @@ -import { Component, IComponentOptions } from "../Component"; -import { hasPointerMoved, pointerDown, pointerUp } from "../utils/pointer"; - -export class Toggle extends Component { - active?: boolean; - - className: string; - - constructor(options: IComponentOptions) { - super(options); - - this.className = this.el.dataset.toggle || ""; - this.el.addEventListener(pointerUp, (e) => this.onPointerUp(e)); - this.el.addEventListener("click", (e) => e.preventDefault()); - document.addEventListener(pointerDown, (e) => - this.onDocumentPointerDown(e) - ); - document.addEventListener(pointerUp, (e) => - this.onDocumentPointerUp(e) - ); - } - - setActive(value: boolean) { - if (this.active == value) return; - this.active = value; - - document.documentElement.classList.toggle( - "has-" + this.className, - value - ); - this.el.classList.toggle("active", value); - - const transition = - (this.active ? "to-has-" : "from-has-") + this.className; - document.documentElement.classList.add(transition); - setTimeout( - () => document.documentElement.classList.remove(transition), - 500 - ); - } - - onPointerUp(event: Event) { - if (hasPointerMoved) return; - this.setActive(true); - event.preventDefault(); - } - - onDocumentPointerDown(e: Event) { - if (this.active) { - if ( - (e.target as HTMLElement).closest( - ".col-menu, .tsd-filter-group" - ) - ) { - return; - } - - this.setActive(false); - } - } - - onDocumentPointerUp(e: Event) { - if (hasPointerMoved) return; - if (this.active) { - if ((e.target as HTMLElement).closest(".col-menu")) { - const link = (e.target as HTMLElement).closest("a"); - if (link) { - let href = window.location.href; - if (href.indexOf("#") != -1) { - href = href.substr(0, href.indexOf("#")); - } - if (link.href.substr(0, href.length) == href) { - setTimeout(() => this.setActive(false), 250); - } - } - } - } - } -} diff --git a/monaco-editor/typedoc/theme/assets/js/src/typedoc/services/Viewport.ts b/monaco-editor/typedoc/theme/assets/js/src/typedoc/services/Viewport.ts deleted file mode 100644 index 32d0bffa..00000000 --- a/monaco-editor/typedoc/theme/assets/js/src/typedoc/services/Viewport.ts +++ /dev/null @@ -1,130 +0,0 @@ -import { EventTarget } from "../EventTarget"; -import { throttle } from "../utils/trottle"; - -/** - * A global service that monitors the window size and scroll position. - */ -export class Viewport extends EventTarget { - public static readonly instance = new Viewport(); - - /** - * The current scroll position. - */ - scrollTop: number = 0; - - /** - * The previous scrollTop. - */ - lastY: number = 0; - - /** - * The width of the window. - */ - width: number = 0; - - /** - * The height of the window. - */ - height: number = 0; - - /** - * The toolbar (contains the search input). - */ - toolbar: HTMLDivElement; - - /** - * Boolean indicating whether the toolbar is shown. - */ - showToolbar: boolean = true; - - /** - * The sticky side nav that contains members of the current page. - */ - secondaryNav: HTMLElement; - - /** - * Create new Viewport instance. - */ - constructor() { - super(); - - this.toolbar = ( - document.querySelector(".tsd-page-toolbar") - ); - this.secondaryNav = ( - document.querySelector(".tsd-navigation.secondary") - ); - - window.addEventListener( - "scroll", - throttle(() => this.onScroll(), 10) - ); - window.addEventListener( - "resize", - throttle(() => this.onResize(), 10) - ); - - this.onResize(); - this.onScroll(); - } - - /** - * Trigger a resize event. - */ - triggerResize() { - const event = new CustomEvent("resize", { - detail: { - width: this.width, - height: this.height, - }, - }); - - this.dispatchEvent(event); - } - - /** - * Triggered when the size of the window has changed. - */ - onResize() { - this.width = window.innerWidth || 0; - this.height = window.innerHeight || 0; - - const event = new CustomEvent("resize", { - detail: { - width: this.width, - height: this.height, - }, - }); - - this.dispatchEvent(event); - } - - /** - * Triggered when the user scrolled the viewport. - */ - onScroll() { - this.scrollTop = window.scrollY || 0; - - const event = new CustomEvent("scroll", { - detail: { - scrollTop: this.scrollTop, - }, - }); - - this.dispatchEvent(event); - this.hideShowToolbar(); - } - - /** - * Handle hiding/showing of the toolbar. - */ - hideShowToolbar() { - const isShown = this.showToolbar; - this.showToolbar = this.lastY >= this.scrollTop || this.scrollTop === 0; - if (isShown !== this.showToolbar) { - this.toolbar.classList.toggle("tsd-page-toolbar--hide"); - this.secondaryNav.classList.toggle("tsd-navigation--toolbar-hide"); - } - this.lastY = this.scrollTop; - } -} diff --git a/monaco-editor/typedoc/theme/assets/js/src/typedoc/utils/debounce.ts b/monaco-editor/typedoc/theme/assets/js/src/typedoc/utils/debounce.ts deleted file mode 100644 index 9d984d1d..00000000 --- a/monaco-editor/typedoc/theme/assets/js/src/typedoc/utils/debounce.ts +++ /dev/null @@ -1,7 +0,0 @@ -export const debounce = (fn: Function, wait: number = 100) => { - let timeout: ReturnType; - return (...args: any[]) => { - clearTimeout(timeout) - timeout = setTimeout(() => fn(args), wait) - } -} diff --git a/monaco-editor/typedoc/theme/assets/js/src/typedoc/utils/pointer.ts b/monaco-editor/typedoc/theme/assets/js/src/typedoc/utils/pointer.ts deleted file mode 100644 index b1d88bd7..00000000 --- a/monaco-editor/typedoc/theme/assets/js/src/typedoc/utils/pointer.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Simple point interface. - */ -export interface Point { - x: number; - y: number; -} - -/** - * Event name of the pointer down event. - */ -export let pointerDown: string = "mousedown"; - -/** - * Event name of the pointer move event. - */ -export let pointerMove: string = "mousemove"; - -/** - * Event name of the pointer up event. - */ -export let pointerUp: string = "mouseup"; - -/** - * Position the pointer was pressed at. - */ -export const pointerDownPosition: Point = { x: 0, y: 0 }; - -/** - * Should the next click on the document be supressed? - */ -export let preventNextClick: boolean = false; - -/** - * Is the pointer down? - */ -export let isPointerDown: boolean = false; - -/** - * Is the pointer a touch point? - */ -export let isPointerTouch: boolean = false; - -/** - * Did the pointer move since the last down event? - */ -export let hasPointerMoved: boolean = false; - -/** - * Is the user agent a mobile agent? - */ -export const isMobile: boolean = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( - navigator.userAgent -); -document.documentElement.classList.add(isMobile ? "is-mobile" : "not-mobile"); - -if (isMobile && "ontouchstart" in document.documentElement) { - isPointerTouch = true; - pointerDown = "touchstart"; - pointerMove = "touchmove"; - pointerUp = "touchend"; -} - -document.addEventListener(pointerDown, (e) => { - isPointerDown = true; - hasPointerMoved = false; - const t = - pointerDown == "touchstart" - ? (e as TouchEvent).targetTouches[0] - : (e as MouseEvent); - pointerDownPosition.y = t.pageY || 0; - pointerDownPosition.x = t.pageX || 0; -}); - -document.addEventListener(pointerMove, (e) => { - if (!isPointerDown) return; - if (!hasPointerMoved) { - const t = - pointerDown == "touchstart" - ? (e as TouchEvent).targetTouches[0] - : (e as MouseEvent); - const x = pointerDownPosition.x - (t.pageX || 0); - const y = pointerDownPosition.y - (t.pageY || 0); - hasPointerMoved = Math.sqrt(x * x + y * y) > 10; - } -}); - -document.addEventListener(pointerUp, () => { - isPointerDown = false; -}); - -document.addEventListener("click", (e) => { - if (preventNextClick) { - e.preventDefault(); - e.stopImmediatePropagation(); - preventNextClick = false; - } -}); diff --git a/monaco-editor/typedoc/theme/assets/js/src/typedoc/utils/trottle.ts b/monaco-editor/typedoc/theme/assets/js/src/typedoc/utils/trottle.ts deleted file mode 100644 index 421c3780..00000000 --- a/monaco-editor/typedoc/theme/assets/js/src/typedoc/utils/trottle.ts +++ /dev/null @@ -1,12 +0,0 @@ -export const throttle = ( - fn: (...args: A) => void, - wait = 100 -) => { - let time = Date.now(); - return (...args: A) => { - if (time + wait - Date.now() < 0) { - fn(...args); - time = Date.now(); - } - }; -}; diff --git a/monaco-editor/typedoc/theme/layouts/default.hbs b/monaco-editor/typedoc/theme/layouts/default.hbs deleted file mode 100644 index 87722a78..00000000 --- a/monaco-editor/typedoc/theme/layouts/default.hbs +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - {{#ifCond model.name '==' project.name}}{{project.name}}{{else}}{{model.name}} | {{project.name}}{{/ifCond}} - - - - - - - - -{{> header}} - -
-
-
- {{{contents}}} -
- -
-
- -{{> footer}} - -
- - -{{> analytics}} - - - diff --git a/monaco-editor/typedoc/theme/partials/analytics.hbs b/monaco-editor/typedoc/theme/partials/analytics.hbs deleted file mode 100644 index 2c4ec9bb..00000000 --- a/monaco-editor/typedoc/theme/partials/analytics.hbs +++ /dev/null @@ -1,11 +0,0 @@ -{{#if settings.gaID}} - -{{/if}} \ No newline at end of file diff --git a/monaco-editor/typedoc/theme/partials/breadcrumb.hbs b/monaco-editor/typedoc/theme/partials/breadcrumb.hbs deleted file mode 100644 index ad63bac7..00000000 --- a/monaco-editor/typedoc/theme/partials/breadcrumb.hbs +++ /dev/null @@ -1,16 +0,0 @@ -{{#if parent}} - {{#with parent}}{{> breadcrumb}}{{/with}} -
  • - {{#if url}} - {{name}} - {{else}} - {{name}} - {{/if}} -
  • -{{else}} - {{#if url}} -
  • - {{ name }} -
  • - {{/if}} -{{/if}} diff --git a/monaco-editor/typedoc/theme/partials/comment.hbs b/monaco-editor/typedoc/theme/partials/comment.hbs deleted file mode 100644 index 1fbd2d78..00000000 --- a/monaco-editor/typedoc/theme/partials/comment.hbs +++ /dev/null @@ -1,22 +0,0 @@ -{{#with comment}} - {{#if hasVisibleComponent}} -
    - {{#if shortText}} -
    - {{#markdown}}{{{shortText}}}{{/markdown}} -
    - {{/if}} - {{#if text}} - {{#markdown}}{{{text}}}{{/markdown}} - {{/if}} - {{#if tags}} -
    - {{#each tags}} -
    {{tagName}}
    -
    {{#markdown}}{{{text}}}{{/markdown}}
    - {{/each}} -
    - {{/if}} -
    - {{/if}} -{{/with}} \ No newline at end of file diff --git a/monaco-editor/typedoc/theme/partials/footer.hbs b/monaco-editor/typedoc/theme/partials/footer.hbs deleted file mode 100644 index e5913db4..00000000 --- a/monaco-editor/typedoc/theme/partials/footer.hbs +++ /dev/null @@ -1,21 +0,0 @@ - - -
    -

    Legend

    -
    - {{#each legend}} -
      - {{#each .}} -
    • {{name}}
    • - {{/each}} -
    - {{/each}} -
    -
    - - -{{#unless settings.hideGenerator}} -
    -

    Generated using TypeDoc

    -
    -{{/unless}} \ No newline at end of file diff --git a/monaco-editor/typedoc/theme/partials/header.hbs b/monaco-editor/typedoc/theme/partials/header.hbs deleted file mode 100644 index a25a1985..00000000 --- a/monaco-editor/typedoc/theme/partials/header.hbs +++ /dev/null @@ -1,77 +0,0 @@ -
    -
    -
    -
    - - - {{!--MONACO_CHANGE -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - {{#unless settings.excludeExternals}} - - - {{/unless}} -
    -
    - - Menu -
    - MONACO_CHANGE--}} -
    -
    -
    -
    -
    - {{#if model.parent}} {{! Don't show breadcrumbs on main project page, it is the root page. !}} -
      - {{#with model}}{{> breadcrumb}}{{/with}} -
    - {{/if}} - {{!--MONACO_CHANGE -

    {{#compact}} - {{#ifCond model.kindString "!==" "Project" }} - {{model.kindString}}  - {{/ifCond}} - {{model.name}} - {{#if model.typeParameters}} - < - {{#each model.typeParameters}} - {{#if @index}}, {{/if}} - {{name}} - {{/each}} - > - {{/if}} - {{/compact}}

    - MONACO_CHANGE--}} -
    -
    -
    diff --git a/monaco-editor/typedoc/theme/partials/hierarchy.hbs b/monaco-editor/typedoc/theme/partials/hierarchy.hbs deleted file mode 100644 index c8166bb2..00000000 --- a/monaco-editor/typedoc/theme/partials/hierarchy.hbs +++ /dev/null @@ -1,17 +0,0 @@ -
      - {{#each types}} -
    • - {{#if ../isTarget}} - {{this}} - {{else}} - {{#compact}}{{> type}}{{/compact}} - {{/if}} - - {{#if @last}} - {{#with ../next}} - {{> hierarchy}} - {{/with}} - {{/if}} -
    • - {{/each}} -
    diff --git a/monaco-editor/typedoc/theme/partials/index.hbs b/monaco-editor/typedoc/theme/partials/index.hbs deleted file mode 100644 index b667317c..00000000 --- a/monaco-editor/typedoc/theme/partials/index.hbs +++ /dev/null @@ -1,50 +0,0 @@ -{{#if categories}} -
    -

    Index

    -
    -
    - {{#each categories}} -
    -

    {{title}}

    - -
    - {{/each}} -
    -
    -
    -{{else}} - {{#if groups}} -
    -

    Index

    -
    -
    - {{#each groups}} -
    - {{#if categories}} - {{#each categories}} -

    {{#if title}}{{title}} {{/if}}{{../title}}

    - - {{/each}} - {{else}} -

    {{title}}

    - - {{/if}} -
    - {{/each}} -
    -
    -
    - {{/if}} -{{/if}} diff --git a/monaco-editor/typedoc/theme/partials/member.declaration.hbs b/monaco-editor/typedoc/theme/partials/member.declaration.hbs deleted file mode 100644 index 4dcaa961..00000000 --- a/monaco-editor/typedoc/theme/partials/member.declaration.hbs +++ /dev/null @@ -1,36 +0,0 @@ -
    {{#compact}} - {{{wbr name}}} - {{#if typeParameters}} - < - {{#each typeParameters}} - {{#if @index}}, {{/if}} - {{name}} - {{/each}} - > - {{/if}} - {{#if isOptional}}?{{/if}}: {{#with type}}{{>type}}{{/with}} - {{#if defaultValue}} - -  =  - {{defaultValue}} - - {{/if}} -{{/compact}}
    - -{{> member.sources}} - -{{> comment}} - -{{#if typeParameters}} -

    Type parameters

    - {{> typeParameters}} -{{/if}} - -{{#if type.declaration}} -
    -

    Type declaration

    - {{#with type.declaration}} - {{> parameter}} - {{/with}} -
    -{{/if}} diff --git a/monaco-editor/typedoc/theme/partials/member.getterSetter.hbs b/monaco-editor/typedoc/theme/partials/member.getterSetter.hbs deleted file mode 100644 index 902ea4cc..00000000 --- a/monaco-editor/typedoc/theme/partials/member.getterSetter.hbs +++ /dev/null @@ -1,37 +0,0 @@ -
      - {{#if getSignature}} - {{#with getSignature}} -
    • {{#compact}} - get  - {{../name}} - {{> member.signature.title hideName=true }} - {{/compact}}
    • - {{/with}} - {{/if}} - {{#if setSignature}} - {{#with setSignature}} -
    • {{#compact}} - set  - {{../name}} - {{> member.signature.title hideName=true }} - {{/compact}}
    • - {{/with}} - {{/if}} -
    - -
      - {{#if getSignature}} - {{#with getSignature}} -
    • - {{> member.signature.body }} -
    • - {{/with}} - {{/if}} - {{#if setSignature}} - {{#with setSignature}} -
    • - {{> member.signature.body }} -
    • - {{/with}} - {{/if}} -
    diff --git a/monaco-editor/typedoc/theme/partials/member.hbs b/monaco-editor/typedoc/theme/partials/member.hbs deleted file mode 100644 index 0cf5cacb..00000000 --- a/monaco-editor/typedoc/theme/partials/member.hbs +++ /dev/null @@ -1,24 +0,0 @@ -
    - - {{#if name}} -

    {{#each flags}}{{this}} {{/each}}{{{wbr name}}}

    - {{/if}} - - {{#if signatures}} - {{> member.signatures}} - {{else}}{{#if hasGetterOrSetter}} - {{> member.getterSetter}} - {{else}}{{#if isReference}} - {{> member.reference}} - {{else}} - {{> member.declaration}} - {{/if}}{{/if}}{{/if}} - - {{#each groups}} - {{#each children}} - {{#unless hasOwnDocument}} - {{> member}} - {{/unless}} - {{/each}} - {{/each}} -
    diff --git a/monaco-editor/typedoc/theme/partials/member.reference.hbs b/monaco-editor/typedoc/theme/partials/member.reference.hbs deleted file mode 100644 index 13aa3cc3..00000000 --- a/monaco-editor/typedoc/theme/partials/member.reference.hbs +++ /dev/null @@ -1,11 +0,0 @@ -{{#with tryGetTargetReflectionDeep}} - {{#ifCond ../name '===' name}} - Re-exports {{name}} - {{else if flags.isExported}} - Renames and re-exports {{name}} - {{else}} - Renames and exports {{name}} - {{/ifCond}} -{{else}} - Re-exports {{name}} -{{/with}} diff --git a/monaco-editor/typedoc/theme/partials/member.signature.body.hbs b/monaco-editor/typedoc/theme/partials/member.signature.body.hbs deleted file mode 100644 index f4157855..00000000 --- a/monaco-editor/typedoc/theme/partials/member.signature.body.hbs +++ /dev/null @@ -1,56 +0,0 @@ -{{#unless hideSources}} - {{> member.sources}} -{{/unless}} - -{{> comment}} - -{{#if typeParameters}} -

    Type parameters

    - {{> typeParameters}} -{{/if}} - -{{#if parameters}} -

    Parameters

    -
      - {{#each parameters}} -
    • -
      {{#compact}} - {{#each flags}} - {{this}}  - {{/each}} - {{#if flags.isRest}}...{{/if}} - {{name}}:  - {{#with type}}{{>type}}{{/with}} - {{#if defaultValue}} - -  =  - {{defaultValue}} - - {{/if}} - {{/compact}}
      - - {{> comment}} - - {{#if type.declaration}} - {{#with type.declaration}} - {{> parameter}} - {{/with}} - {{/if}} -
    • - {{/each}} -
    -{{/if}} - -{{#if type}} -

    Returns {{#compact}}{{#with type}}{{>type}}{{/with}}{{/compact}}

    - - {{#if comment.returns}} - {{#markdown}}{{{comment.returns}}}{{/markdown}} - {{/if}} - - {{#if type.declaration}} - {{#with type.declaration}} - {{> parameter}} - {{/with}} - {{/if}} -{{/if}} diff --git a/monaco-editor/typedoc/theme/partials/member.signature.title.hbs b/monaco-editor/typedoc/theme/partials/member.signature.title.hbs deleted file mode 100644 index 035c4cae..00000000 --- a/monaco-editor/typedoc/theme/partials/member.signature.title.hbs +++ /dev/null @@ -1,32 +0,0 @@ -{{#unless hideName}}{{{wbr name}}}{{/unless}} -{{#if typeParameters}} - < - {{#each typeParameters}} - {{#if @index}}, {{/if}} - {{name}} - {{/each}} - > -{{/if}} -( -{{#each parameters}} - {{#if @index}}, {{/if}} - {{#if flags.isRest}}...{{/if}} - {{name}} - - {{#if flags.isOptional}}?{{/if}} - {{#if defaultValue}}?{{/if}} - :  - - {{#with type}}{{>type}}{{/with}} -{{/each}} -) -{{#if type}} - {{#if arrowStyle}} - => - {{else}} - : - {{/if}} - {{#with type}} - {{>type}} - {{/with}} -{{/if}} diff --git a/monaco-editor/typedoc/theme/partials/member.signatures.hbs b/monaco-editor/typedoc/theme/partials/member.signatures.hbs deleted file mode 100644 index b549f98a..00000000 --- a/monaco-editor/typedoc/theme/partials/member.signatures.hbs +++ /dev/null @@ -1,13 +0,0 @@ -
      - {{#each signatures}} -
    • {{#compact}}{{> member.signature.title }}{{/compact}}
    • - {{/each}} -
    - -
      - {{#each signatures}} -
    • - {{> member.signature.body }} -
    • - {{/each}} -
    diff --git a/monaco-editor/typedoc/theme/partials/member.sources.hbs b/monaco-editor/typedoc/theme/partials/member.sources.hbs deleted file mode 100644 index 49dcf628..00000000 --- a/monaco-editor/typedoc/theme/partials/member.sources.hbs +++ /dev/null @@ -1,25 +0,0 @@ - diff --git a/monaco-editor/typedoc/theme/partials/members.group.hbs b/monaco-editor/typedoc/theme/partials/members.group.hbs deleted file mode 100644 index 18b82d6c..00000000 --- a/monaco-editor/typedoc/theme/partials/members.group.hbs +++ /dev/null @@ -1,21 +0,0 @@ -{{#if categories}} - {{#each categories}} -
    -

    {{#if title}}{{title}} {{/if}}{{../title}}

    - {{#each children}} - {{#unless hasOwnDocument}} - {{> member}} - {{/unless}} - {{/each}} -
    - {{/each}} -{{else}} -
    -

    {{title}}

    - {{#each children}} - {{#unless hasOwnDocument}} - {{> member}} - {{/unless}} - {{/each}} -
    -{{/if}} \ No newline at end of file diff --git a/monaco-editor/typedoc/theme/partials/members.hbs b/monaco-editor/typedoc/theme/partials/members.hbs deleted file mode 100644 index 5b415231..00000000 --- a/monaco-editor/typedoc/theme/partials/members.hbs +++ /dev/null @@ -1,20 +0,0 @@ -{{#if categories}} - {{#each categories}} - {{#unless allChildrenHaveOwnDocument}} -
    -

    {{title}}

    - {{#each children}} - {{#unless hasOwnDocument}} - {{> member}} - {{/unless}} - {{/each}} -
    - {{/unless}} - {{/each}} -{{else}} - {{#each groups}} - {{#unless allChildrenHaveOwnDocument}} - {{> members.group}} - {{/unless}} - {{/each}} -{{/if}} \ No newline at end of file diff --git a/monaco-editor/typedoc/theme/partials/navigation.hbs b/monaco-editor/typedoc/theme/partials/navigation.hbs deleted file mode 100644 index b1f91e4e..00000000 --- a/monaco-editor/typedoc/theme/partials/navigation.hbs +++ /dev/null @@ -1,26 +0,0 @@ -{{#if isVisible}} - {{#if isLabel}} -
  • - {{{wbr title}}} -
  • - {{else}} - {{#if isGlobals}} -
  • - {{{wbr title}}} -
  • - {{else}} -
  • - {{{wbr title}}} - {{#if isInPath}} - {{#if children}} -
      - {{#each children}} - {{> navigation}} - {{/each}} -
    - {{/if}} - {{/if}} -
  • - {{/if}} - {{/if}} -{{/if}} diff --git a/monaco-editor/typedoc/theme/partials/parameter.hbs b/monaco-editor/typedoc/theme/partials/parameter.hbs deleted file mode 100644 index d732ae29..00000000 --- a/monaco-editor/typedoc/theme/partials/parameter.hbs +++ /dev/null @@ -1,132 +0,0 @@ -
      - {{#if signatures}} -
    • -
        - {{#each signatures}} -
      • {{#compact}} - {{> member.signature.title hideName=true }} - {{/compact}}
      • - {{/each}} -
      - -
        - {{#each signatures}} -
      • {{> member.signature.body hideSources=true }}
      • - {{/each}} -
      -
    • - {{/if}} - {{#if indexSignature}} -
    • -
      {{#compact}} - [ - {{#each indexSignature.parameters}} - {{#if flags.isRest}}...{{/if}}{{name}}: {{#with type}}{{>type}}{{/with}} - {{/each}} - ]:  - {{#with indexSignature.type}}{{>type}}{{/with}} - {{/compact}}
      - - {{#with indexSignature}} - {{> comment}} - {{/with}} - - {{#if indexSignature.type.declaration}} - {{#with indexSignature.type.declaration}} - {{> parameter}} - {{/with}} - {{/if}} -
    • - {{/if}} - {{#each children}} - {{#if signatures}} -
    • -
      {{#compact}} - {{#if flags.isRest}}...{{/if}} - {{{wbr name}}} - - {{#if isOptional}}?{{/if}} - :  - - function - {{/compact}}
      - - {{> member.signatures}} -
    • - {{else}}{{#if type}} {{! standard type }} -
    • -
      {{#compact}} - {{#each flags}} - {{this}}  - {{/each}} - {{#if flags.isRest}}...{{/if}} - {{#with type}} - {{{wbr ../name}}} - - {{#if ../flags.isOptional}}?{{/if}} - :  - - {{>type}} - {{/with}} - {{/compact}}
      - - {{> comment}} - - {{#if children}} - {{> parameter}} - {{/if}} - - {{#if type.declaration}} - {{#with type.declaration}} - {{> parameter}} - {{/with}} - {{/if}} -
    • - {{else}} {{! getter/setter }} - {{#with getSignature}} {{! getter }} -
    • -
      {{#compact}} - {{#each flags}} - {{this}}  - {{/each}} - get  - {{{wbr ../name}}} - ():  - {{#with type}} - {{> type}} - {{/with}} - {{/compact}}
      - - {{> comment }} -
    • - {{/with}} - {{#with setSignature}} {{! setter }} -
    • -
      {{#compact}} - {{#each flags}} - {{this}}  - {{/each}} - set  - {{{wbr ../name}}} - ( - {{#each parameters}} - {{name}} - : - {{#with type}} - {{> type}} - {{else}} - any - {{/with}} - {{/each}} - ):  - {{#with type}} - {{> type}} - {{/with}} - {{/compact}}
      - - {{> comment }} -
    • - {{/with}} - {{/if}}{{/if}} - {{/each}} -
    diff --git a/monaco-editor/typedoc/theme/partials/toc.hbs b/monaco-editor/typedoc/theme/partials/toc.hbs deleted file mode 100644 index 56b1d748..00000000 --- a/monaco-editor/typedoc/theme/partials/toc.hbs +++ /dev/null @@ -1,10 +0,0 @@ -
  • - {{{wbr title}}} - {{#if children}} -
      - {{#each children}} - {{> toc}} - {{/each}} -
    - {{/if}} -
  • diff --git a/monaco-editor/typedoc/theme/partials/toc.root.hbs b/monaco-editor/typedoc/theme/partials/toc.root.hbs deleted file mode 100644 index cba0d663..00000000 --- a/monaco-editor/typedoc/theme/partials/toc.root.hbs +++ /dev/null @@ -1,18 +0,0 @@ -{{#if isInPath}} - -
      -{{/if}} -
    • - {{{wbr title}}} - {{#if children}} -
        - {{#each children}} - {{> toc}} - {{/each}} -
      - {{/if}} -
    • -{{#if isInPath}} -
    -
      -{{/if}} diff --git a/monaco-editor/typedoc/theme/partials/type.hbs b/monaco-editor/typedoc/theme/partials/type.hbs deleted file mode 100644 index 1e19959a..00000000 --- a/monaco-editor/typedoc/theme/partials/type.hbs +++ /dev/null @@ -1,335 +0,0 @@ -{{! Each type gets its own inline helper to determine how it is rendered. }} -{{! The name of the helper is the value of the 'type' property on the type.}} - -{{! -The type helper accepts an optional needsParens parameter that is checked -if an inner type may result in invalid output without them. For example: -1 | 2[] !== (1 | 2)[] -() => 1 | 2 !== (() => 1) | 2 -}} - -{{#*inline 'array'}} - {{#with elementType}} - {{> type needsParens=true}} - [] - {{/with}} -{{/inline}} - -{{#*inline 'conditional'}} - {{#if needsParens}} - ( - {{/if}} - {{#with checkType}} - {{> type needsParens=true}} - {{/with}} - extends - {{#with extendsType}} - {{> type}} - {{/with}} - ? - {{#with trueType}} - {{> type}} - {{/with}} - : - {{#with falseType}} - {{> type}} - {{/with}} - {{#if needsParens}} - ) - {{/if}} -{{/inline}} - -{{#*inline 'indexedAccess'}} - {{#with objectType}} - {{> type}} - {{/with}} - [ - {{#with indexType}} - {{> type}} - {{/with}} - ] -{{/inline}} - -{{#*inline 'inferred'}} - infer {{name}} -{{/inline}} - -{{#*inline 'intersection'}} - {{#if needsParens}} - ( - {{/if}} - {{#each types}} - {{#unless @first}} - & - {{/unless}} - {{> type}} - {{/each}} - {{#if needsParens}} - ) - {{/if}} -{{/inline}} - -{{#*inline 'intrinsic'}} - {{name}} -{{/inline}} - -{{#*inline 'literal'}} - {{stringify value}} -{{/inline}} - -{{#*inline 'mapped'}} - { - {{#ifCond readonlyModifier '===' '+'}} - readonly - {{else}} - {{#ifCond readonlyModifier '===' '-'}} - -readonly - {{/ifCond}} - {{/ifCond}} - - [ - {{parameter}} - in - - {{#with parameterType}} - {{>type}} - {{/with}} - - {{#with nameType}} - as - {{>type}} - {{/with}} - - ] - {{#ifCond readonlyModifier '===' '+'}} - ?: - {{else}} - {{#ifCond readonlyModifier '===' '-'}} - -?: - {{else}} - : - {{/ifCond}} - {{/ifCond}} - - {{#with templateType}} - {{>type}} - {{/with}} - - } -{{/inline}} - -{{#*inline 'optional'}} - {{#with elementType}} - {{> type}} - {{/with}} - ? -{{/inline}} - -{{#*inline 'predicate'}} - {{#if asserts}} - asserts - {{/if}} - {{name}} - {{#if targetType}} - is - {{#with targetType}} - {{>type}} - {{/with}} - {{/if}} -{{/inline}} - -{{#*inline 'query'}} - typeof - {{#with queryType}} - {{> type}} - {{/with}} -{{/inline}} - -{{#*inline 'reference'}} - {{#with getReflection }} - - {{name}} - - {{else}} - {{name}} - {{/with}} - {{#if typeArguments}} - < - {{#each typeArguments}} - {{#unless @first}} - , - {{/unless}} - {{> type}} - {{/each}} - > - {{/if}} -{{/inline}} - -{{#*inline 'reflection'}} - {{#if declaration.children}} {{! object literal }} - { - {{#each declaration.children}} - {{#unless @first}} - ; - {{/unless}} - - {{#if getSignature}} - {{#if setSignature}} - {{name}} - : - {{#with getSignature.type}} - {{> type}} - {{else}} - any - {{/with}} - {{else}} - get - {{name}} - (): - {{#with getSignature.type}} - {{> type}} - {{else}} - any - {{/with}} - {{/if}} - {{else}} - {{#if setSignature}} - set - {{name}} - ( - {{! Rather hacky to use each here... but we know there is exactly one. }} - {{#each setSignature.parameters}} - {{name}} - : - {{#with type}} - {{> type}} - {{else}} - any - {{/with}} - {{/each}} - ) - {{else}} - {{name}} - {{#if flags.isOptional }} - ?: - {{else}} - : - {{/if}} - {{#with type}} - {{> type}} - {{else}} - any - {{/with}} - {{/if}} - {{/if}} - {{/each}} - } - {{else if declaration.signatures}} - {{#if (lookup declaration.signatures 1) }} {{! more than one signature}} - { - {{#each declaration.signatures}} - {{> member.signature.title hideName=true}} - {{#unless @last}} - ; - {{/unless}} - {{/each}} - } - {{else}} - {{#if needsParens}} - ( - {{/if}} - {{#with (lookup declaration.signatures '0') }} - {{> member.signature.title hideName=true arrowStyle=true}} - {{/with}} - {{#if needsParens}} - ) - {{/if}} - {{/if}} - {{else}} - {} - {{/if}} -{{/inline}} - -{{#*inline 'rest'}} - ... - {{#with elementType}} - {{> type}} - {{/with}} -{{/inline}} - -{{#*inline 'tuple'}} - [ - {{#each elements}} - {{#unless @first}} - , - {{/unless}} - {{> type}} - {{/each}} - ] -{{/inline}} - -{{#*inline 'template-literal'}} - ` - {{#if head}} - {{head}} - {{/if}} - {{#each tail}} - ${ - {{#with this.[0]}} - {{>type}} - {{/with}} - } - {{#if this.[1]}} - {{this.[1]}} - {{/if}} - {{/each}} - ` -{{/inline}} - -{{#*inline 'typeOperator'}} - {{operator}} - {{#with target}} - {{> type}} - {{/with}} -{{/inline}} - -{{#*inline 'typeParameter'}} - {{name}} -{{/inline}} - -{{#*inline 'union'}} - {{#if needsParens}} - ( - {{/if}} - {{#each types}} - {{#unless @first}} - | - {{/unless}} - {{> type needsParens=true}} - {{/each}} - {{#if needsParens}} - ) - {{/if}} -{{/inline}} - -{{#*inline 'unknown'}} - {{name}} -{{/inline}} - -{{#*inline 'named-tuple-member'}} - {{name}} - {{#if isOptional}} - ?: - {{else}} - : - {{/if}} - {{#with element}} - {{> type}} - {{/with}} -{{/inline}} - -{{#if this}} - {{> (lookup . 'type') }} -{{else}} - void -{{/if}} diff --git a/monaco-editor/typedoc/theme/partials/typeAndParent.hbs b/monaco-editor/typedoc/theme/partials/typeAndParent.hbs deleted file mode 100644 index 02b25f55..00000000 --- a/monaco-editor/typedoc/theme/partials/typeAndParent.hbs +++ /dev/null @@ -1,42 +0,0 @@ -{{#compact}} - {{#if this}} - {{#if elementType}} - {{#with elementType}} - {{> typeAndParent}} - {{/with}} - [] - {{else}} - {{#if reflection}} - {{#ifSignature reflection}} - {{#if reflection.parent.parent.url}} - {{reflection.parent.parent.name}} - {{else}} - {{reflection.parent.parent.name}} - {{/if}} - . - {{#if reflection.parent.url}} - {{reflection.parent.name}} - {{else}} - {{reflection.parent.name}} - {{/if}} - {{else}} - {{#if reflection.parent.url}} - {{reflection.parent.name}} - {{else}} - {{reflection.parent.name}} - {{/if}} - . - {{#if reflection.url}} - {{reflection.name}} - {{else}} - {{reflection.name}} - {{/if}} - {{/ifSignature}} - {{else}} - {{this}} - {{/if}} - {{/if}} - {{else}} - void - {{/if}} -{{/compact}} \ No newline at end of file diff --git a/monaco-editor/typedoc/theme/partials/typeParameters.hbs b/monaco-editor/typedoc/theme/partials/typeParameters.hbs deleted file mode 100644 index 81a0e848..00000000 --- a/monaco-editor/typedoc/theme/partials/typeParameters.hbs +++ /dev/null @@ -1,17 +0,0 @@ -
        - {{#each typeParameters}} -
      • -

        {{#compact}} - {{name}} - {{#if type}} - - {{#with type}}{{> type}}{{/with}} - {{/if}} - {{#if default}} -  = {{#with default}}{{> type}}{{/with}} - {{/if}} - {{/compact}}

        - {{> comment}} -
      • - {{/each}} -
      diff --git a/monaco-editor/typedoc/theme/templates/index.hbs b/monaco-editor/typedoc/theme/templates/index.hbs deleted file mode 100644 index cf79d3d2..00000000 --- a/monaco-editor/typedoc/theme/templates/index.hbs +++ /dev/null @@ -1,3 +0,0 @@ -
      - {{#markdown}}{{{model.readme}}}{{/markdown}} -
      \ No newline at end of file diff --git a/monaco-editor/typedoc/theme/templates/reflection.hbs b/monaco-editor/typedoc/theme/templates/reflection.hbs deleted file mode 100644 index 78aa0660..00000000 --- a/monaco-editor/typedoc/theme/templates/reflection.hbs +++ /dev/null @@ -1,79 +0,0 @@ -{{#with model}} - {{#if hasComment}} -
      - {{> comment}} -
      - {{/if}} -{{/with}} - -{{#if model.typeParameters}} -
      -

      Type parameters

      - {{#with model}}{{> typeParameters}}{{/with}} -
      -{{/if}} - -{{#if model.typeHierarchy}} -
      -

      Hierarchy

      - {{#with model.typeHierarchy}}{{> hierarchy}}{{/with}} -
      -{{/if}} - -{{#if model.implementedTypes}} -
      -

      Implements

      -
        - {{#each model.implementedTypes}} -
      • {{#compact}}{{> type}}{{/compact}}
      • - {{/each}} -
      -
      -{{/if}} - -{{#if model.implementedBy}} -
      -

      Implemented by

      -
        - {{#each model.implementedBy}} -
      • {{#compact}}{{> type}}{{/compact}}
      • - {{/each}} -
      -
      -{{/if}} - -{{#if model.signatures}} -
      -

      Callable

      - {{#with model}}{{> member.signatures}}{{/with}} -
      -{{/if}} - -{{#if model.indexSignature}} -
      -

      Indexable

      -
      {{#compact}} - [ - {{#each model.indexSignature.parameters}} - {{name}}: {{#with type}}{{>type}}{{/with}} - {{/each}} - ]:  - {{#with model.indexSignature.type}}{{>type}}{{/with}} - {{/compact}}
      - - {{#with model.indexSignature}} - {{> comment}} - {{/with}} - - {{#if model.indexSignature.type.declaration}} - {{#with model.indexSignature.type.declaration}} - {{> parameter}} - {{/with}} - {{/if}} -
      -{{/if}} - -{{#with model}} - {{> index}} - {{> members}} -{{/with}}