@alauda-fe/common 1.4.28-beta.0 → 1.4.28-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/code/code-editor-configs.d.ts +2 -0
- package/code/managed-fields-folder.util.d.ts +35 -0
- package/code/public-api.d.ts +4 -0
- package/code/resource-yaml-display/component.d.ts +64 -6
- package/code/resource-yaml-display/schema/component.d.ts +61 -0
- package/code/resource-yaml-editor/component.d.ts +95 -0
- package/code/yaml-examples.d.ts +8 -0
- package/code/yaml-sidebar/component.d.ts +57 -0
- package/code/yaml-sidebar/types.d.ts +21 -0
- package/code/yaml-sidebar/yaml-examples.d.ts +8 -0
- package/core/directives/scroll-to-first-invalid.directive.d.ts +1 -1
- package/core/services/kubernetes-schema.service.d.ts +44 -0
- package/core/services/public-api.d.ts +1 -0
- package/core/types/openapi.d.ts +37 -0
- package/core/types/public-api.d.ts +1 -0
- package/esm2022/abnormal-page/abnormal-page.component.mjs +1 -1
- package/esm2022/array-form-table/form/component.mjs +1 -1
- package/esm2022/array-form-table/key-value-form/component.mjs +1 -1
- package/esm2022/array-form-table/key-value-table/component.mjs +1 -1
- package/esm2022/array-form-table/string-array-form/component.mjs +1 -1
- package/esm2022/async-data/error-page/component.mjs +1 -1
- package/esm2022/async-data/page-state/component.mjs +1 -1
- package/esm2022/business/notification-disabled-container/component.mjs +1 -1
- package/esm2022/business/resource-select/exports/cluster-list/component.mjs +1 -1
- package/esm2022/business/resource-select/exports/cluster-selector/component.mjs +1 -1
- package/esm2022/business/resource-select/exports/icon/component.mjs +1 -1
- package/esm2022/business/resource-select/exports/mesh-group-selector/component.mjs +1 -1
- package/esm2022/business/resource-select/exports/namespace-list/component.mjs +1 -1
- package/esm2022/business/resource-select/exports/namespace-page/component.mjs +1 -1
- package/esm2022/business/resource-select/exports/namespace-selector/component.mjs +1 -1
- package/esm2022/business/resource-select/exports/project-list/component.mjs +1 -1
- package/esm2022/business/resource-select/exports/project-page/component.mjs +1 -1
- package/esm2022/business/resource-select/exports/project-selector/component.mjs +1 -1
- package/esm2022/business/resource-select/internals/data-grid/component.mjs +1 -1
- package/esm2022/business/resource-select/internals/meshgroup-list/component.mjs +1 -1
- package/esm2022/business/resource-select/internals/no-data/component.mjs +1 -1
- package/esm2022/business/resource-select/internals/resource-dashboard/component.mjs +1 -1
- package/esm2022/business/resource-select/internals/selector-popup/component.mjs +1 -1
- package/esm2022/chart/common/axis/axis-label.component.mjs +1 -1
- package/esm2022/chart/common/axis/x-axis-ticks.component.mjs +1 -1
- package/esm2022/chart/common/axis/x-axis.component.mjs +1 -1
- package/esm2022/chart/common/axis/x-plot-lines.component.mjs +1 -1
- package/esm2022/chart/common/axis/y-axis-ticks.component.mjs +1 -1
- package/esm2022/chart/common/axis/y-axis.component.mjs +1 -1
- package/esm2022/chart/common/axis/y-plot-lines.component.mjs +1 -1
- package/esm2022/chart/common/chart/chart.component.mjs +1 -1
- package/esm2022/chart/common/legend/legend.component.mjs +1 -1
- package/esm2022/chart/common/range-area/range-area.component.mjs +1 -1
- package/esm2022/chart/common/reference-area/reference-area.component.mjs +1 -1
- package/esm2022/chart/common/series/area-series.component.mjs +1 -1
- package/esm2022/chart/common/series/bar-path.component.mjs +1 -1
- package/esm2022/chart/common/series/bar-series.component.mjs +1 -1
- package/esm2022/chart/common/series/line-series.component.mjs +1 -1
- package/esm2022/chart/common/tooltip/tooltip.component.mjs +1 -1
- package/esm2022/chart/custom-template/dropdown-legend.mjs +1 -1
- package/esm2022/code/code-display-dialog/component.mjs +1 -1
- package/esm2022/code/code-editor-configs.mjs +12 -2
- package/esm2022/code/k8s-yaml-display-dialog/component.mjs +1 -1
- package/esm2022/code/managed-fields-folder.util.mjs +136 -0
- package/esm2022/code/public-api.mjs +5 -1
- package/esm2022/code/resource-yaml-display/component.mjs +254 -43
- package/esm2022/code/resource-yaml-display/schema/component.mjs +531 -0
- package/esm2022/code/resource-yaml-editor/component.mjs +387 -0
- package/esm2022/code/yaml-examples.mjs +337 -0
- package/esm2022/code/yaml-sidebar/component.mjs +482 -0
- package/esm2022/code/yaml-sidebar/types.mjs +2 -0
- package/esm2022/code/yaml-sidebar/yaml-examples.mjs +340 -0
- package/esm2022/core/components/tree/node/component.mjs +1 -1
- package/esm2022/core/components/tree/tree/component.mjs +1 -1
- package/esm2022/core/directives/readonly-field.directive.mjs +1 -1
- package/esm2022/core/services/kubernetes-schema.service.mjs +129 -0
- package/esm2022/core/services/public-api.mjs +2 -1
- package/esm2022/core/services/workspace-helper.service.mjs +4 -3
- package/esm2022/core/types/openapi.mjs +2 -0
- package/esm2022/core/types/public-api.mjs +2 -1
- package/esm2022/custom-columns-setting/component.mjs +1 -1
- package/esm2022/disabled-container/disabled-container.component.mjs +1 -1
- package/esm2022/editable/editable.component.mjs +1 -1
- package/esm2022/editable-text/component.mjs +1 -1
- package/esm2022/exec/placeholder/component.mjs +1 -1
- package/esm2022/exec/terminal/component.mjs +1 -1
- package/esm2022/exec/terminal-group/component.mjs +1 -1
- package/esm2022/feature-gate-forbidden/component/component.mjs +1 -1
- package/esm2022/form/errors-mapper/errors-mapper-component/component.mjs +1 -1
- package/esm2022/form/errors-mapper/errors-mapper.directive.mjs +1 -1
- package/esm2022/form/labels-editor/component.mjs +1 -1
- package/esm2022/form/taints-editor/component.mjs +1 -1
- package/esm2022/form/upload-file/component.mjs +1 -1
- package/esm2022/form/validators/strong-password/strong-password-tooltip/component.mjs +1 -1
- package/esm2022/graph-canvas/components/graph-actions.component.mjs +1 -1
- package/esm2022/graph-canvas/components/graph-canvas.component.mjs +1 -1
- package/esm2022/graph-canvas/components/graph-link.component.mjs +1 -1
- package/esm2022/graph-canvas/components/graph-links.component.mjs +1 -1
- package/esm2022/grid-layout/components/grid/component.mjs +1 -1
- package/esm2022/grid-layout/components/grid-items/component.mjs +1 -1
- package/esm2022/help-document/component.mjs +1 -1
- package/esm2022/k8s-resource-list/footer/component.mjs +1 -1
- package/esm2022/k8s-shared/resource-mark/k8s-resource-mark.component.mjs +1 -1
- package/esm2022/k8s-shared/update-description-dialog/component.mjs +1 -1
- package/esm2022/k8s-shared/update-display-name-dialog/component.mjs +1 -1
- package/esm2022/k8s-shared/update-key-value-dialog/component.mjs +1 -1
- package/esm2022/lazy-component/lazy-load-component.mjs +1 -1
- package/esm2022/license/license-error/component.mjs +1 -1
- package/esm2022/list-display/component.mjs +1 -1
- package/esm2022/metric-chart/metric-chart.component.mjs +1 -1
- package/esm2022/metric-chart/metric-time-pick.mjs +1 -1
- package/esm2022/multi-search/action-input/component.mjs +1 -1
- package/esm2022/multi-search/form/component.mjs +1 -1
- package/esm2022/multi-search/multi-search-tags/component.mjs +1 -1
- package/esm2022/mutable/mosaic/mosaic.component.mjs +1 -1
- package/esm2022/notification/feedback-notification/component.mjs +1 -1
- package/esm2022/overview-banner/overview-banner.component.mjs +1 -1
- package/esm2022/page-guard/component/component.mjs +1 -1
- package/esm2022/page-scaffold/navigation/breadcrumb/breadcrumb.component.mjs +1 -1
- package/esm2022/page-scaffold/navigation/nav-menu/nav-item-li/nav-item-li.component.mjs +1 -1
- package/esm2022/page-scaffold/navigation/nav-menu/nav-item-ul/nav-item-ul.component.mjs +1 -1
- package/esm2022/page-scaffold/navigation/nav-menu/nav-menu.component.mjs +1 -1
- package/esm2022/page-scaffold/page/notices/maintenance.component.mjs +1 -1
- package/esm2022/page-scaffold/page/notices/notice.component.mjs +1 -1
- package/esm2022/page-scaffold/page/page.component.mjs +1 -1
- package/esm2022/page-scaffold/page-header/account-menu/component/component.mjs +1 -1
- package/esm2022/page-scaffold/page-header/common-layout/namespace-select/component.mjs +1 -1
- package/esm2022/page-scaffold/page-header/common-layout/product-select/component.mjs +1 -1
- package/esm2022/page-scaffold/page-header/component.mjs +1 -1
- package/esm2022/page-scaffold/page-header/enterprise-support-status/component.mjs +1 -1
- package/esm2022/page-scaffold/page-header/header-notify/component/header-notify.component.mjs +1 -1
- package/esm2022/page-scaffold/page-header/header-notify/component/notification-list/notification-list.component.mjs +1 -1
- package/esm2022/page-scaffold/page-header/help-menu/component/component.mjs +1 -1
- package/esm2022/pie-derivative-chart/donut-status/component.mjs +1 -1
- package/esm2022/pie-derivative-chart/radial-bar/radial-bar-chart.component.mjs +1 -1
- package/esm2022/pod-status/component.mjs +1 -1
- package/esm2022/searchable-selector/component.mjs +1 -1
- package/esm2022/skeleton/item/component.mjs +1 -1
- package/esm2022/skeleton/nav-skeleton/component.mjs +1 -1
- package/esm2022/table/component.mjs +1 -1
- package/esm2022/view-chart/custom-template/dropdown-legend.mjs +1 -1
- package/esm2022/view-chart/legend/legend.component.mjs +1 -1
- package/esm2022/view-chart/view-chart.component.mjs +1 -1
- package/esm2022/view-zchart/custom-template/dropdown-legend.mjs +1 -1
- package/esm2022/view-zchart/legend/legend.component.mjs +1 -1
- package/esm2022/view-zchart/view-zchart.component.mjs +1 -1
- package/esm2022/widget/card-section/card-section.component.mjs +1 -1
- package/esm2022/widget/confirm-delete/confirm-delete.component.mjs +1 -1
- package/esm2022/widget/current-time/component.mjs +1 -1
- package/esm2022/widget/date-range-picker/component.mjs +1 -1
- package/esm2022/widget/field-set/column/component.mjs +2 -2
- package/esm2022/widget/field-set/group/component.mjs +1 -1
- package/esm2022/widget/field-set/item/component.mjs +1 -1
- package/esm2022/widget/foldable-block/component.mjs +1 -1
- package/esm2022/widget/foldable-item-in-table/component.mjs +1 -1
- package/esm2022/widget/loading-mask/loading-mask.component.mjs +1 -1
- package/esm2022/widget/password-input/component.mjs +1 -1
- package/esm2022/widget/relative-time/component.mjs +1 -1
- package/esm2022/widget/resource-label/component.mjs +1 -1
- package/esm2022/widget/resource-multi-select/component.mjs +1 -1
- package/esm2022/widget/search-panel/component.mjs +1 -1
- package/esm2022/widget/search-panel/search-item/component.mjs +1 -1
- package/esm2022/widget/status-icon/status-icon.component.mjs +1 -1
- package/esm2022/widget/tags-label/component.mjs +1 -1
- package/esm2022/widget/terminating-tag/component.mjs +1 -1
- package/esm2022/widget/text-ellipsis/component.mjs +1 -1
- package/esm2022/widget/text-with-url/component.mjs +1 -1
- package/esm2022/widget/zero-state/zero-state.component.mjs +1 -1
- package/esm2022/workload-status-icon/component.mjs +1 -1
- package/esm2022/xterm/xterm-terminal/xterm-terminal.component.mjs +1 -1
- package/esm2022/xterm/xterm.component.mjs +1 -1
- package/package.json +2 -2
- package/styles/global.scss +4 -0
- package/table/component.d.ts +1 -1
|
@@ -1,25 +1,32 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { CodeEditorModule } from '@alauda/code-editor';
|
|
3
|
-
import { CARD_MODULE, CHECKBOX_MODULE } from '@alauda/ui';
|
|
2
|
+
import { CodeEditorModule, MonacoLanguageService, } from '@alauda/code-editor';
|
|
3
|
+
import { CARD_MODULE, CHECKBOX_MODULE, ButtonModule, IconModule, } from '@alauda/ui';
|
|
4
4
|
import { AsyncPipe, NgIf, NgTemplateOutlet } from '@angular/common';
|
|
5
|
-
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
5
|
+
import { ChangeDetectionStrategy, Component, Input, ViewChild, } from '@angular/core';
|
|
6
6
|
import { FormsModule } from '@angular/forms';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { yamlDefaults, setDiagnosticsOptions } from 'monaco-yaml';
|
|
8
|
+
import { BehaviorSubject, combineLatest, Observable, map, distinctUntilChanged, of, switchMap, shareReplay, takeUntil, Subject, } from 'rxjs';
|
|
9
|
+
import { KubernetesSchemaService } from '../../core/services/kubernetes-schema.service';
|
|
10
|
+
import { YamlUtilService } from '../../core/services/yaml-util.service';
|
|
11
|
+
import { ObservableInput } from '../../core/utils/decorators';
|
|
9
12
|
import { TranslateModule } from '../../translate/translate.module';
|
|
10
|
-
import { viewActions, yamlReadOptions } from '../code-editor-configs';
|
|
13
|
+
import { viewActions, yamlReadMinimapOptions, yamlReadOptions, } from '../code-editor-configs';
|
|
14
|
+
import { foldManagedFields, } from '../managed-fields-folder.util';
|
|
15
|
+
import { ResourceYamlSidebarComponent } from '../yaml-sidebar/component';
|
|
11
16
|
import * as i0 from "@angular/core";
|
|
12
|
-
import * as i1 from "../../core/
|
|
13
|
-
import * as i2 from "
|
|
14
|
-
import * as i3 from "@
|
|
15
|
-
import * as i4 from "@alauda/
|
|
16
|
-
import * as i5 from "
|
|
17
|
+
import * as i1 from "../../core/services/yaml-util.service";
|
|
18
|
+
import * as i2 from "../../core/services/kubernetes-schema.service";
|
|
19
|
+
import * as i3 from "@alauda/code-editor";
|
|
20
|
+
import * as i4 from "@alauda/ui";
|
|
21
|
+
import * as i5 from "@angular/forms";
|
|
22
|
+
import * as i6 from "../../translate/translate.pipe";
|
|
23
|
+
const _c0 = ["codeEditorRef"];
|
|
17
24
|
function ResourceYamlDisplayComponent_aui_card_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
18
25
|
i0.ɵɵelementContainer(0);
|
|
19
26
|
} }
|
|
20
27
|
function ResourceYamlDisplayComponent_aui_card_0_Template(rf, ctx) { if (rf & 1) {
|
|
21
28
|
i0.ɵɵelementStart(0, "aui-card");
|
|
22
|
-
i0.ɵɵtemplate(1, ResourceYamlDisplayComponent_aui_card_0_ng_container_1_Template, 1, 0, "ng-container",
|
|
29
|
+
i0.ɵɵtemplate(1, ResourceYamlDisplayComponent_aui_card_0_ng_container_1_Template, 1, 0, "ng-container", 3);
|
|
23
30
|
i0.ɵɵelementEnd();
|
|
24
31
|
} if (rf & 2) {
|
|
25
32
|
i0.ɵɵnextContext();
|
|
@@ -27,11 +34,11 @@ function ResourceYamlDisplayComponent_aui_card_0_Template(rf, ctx) { if (rf & 1)
|
|
|
27
34
|
i0.ɵɵadvance();
|
|
28
35
|
i0.ɵɵproperty("ngTemplateOutlet", content_r1);
|
|
29
36
|
} }
|
|
30
|
-
function
|
|
37
|
+
function ResourceYamlDisplayComponent_ng_template_1_aui_checkbox_7_Template(rf, ctx) { if (rf & 1) {
|
|
31
38
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
32
|
-
i0.ɵɵelementStart(0, "aui-checkbox",
|
|
39
|
+
i0.ɵɵelementStart(0, "aui-checkbox", 12);
|
|
33
40
|
i0.ɵɵpipe(1, "async");
|
|
34
|
-
i0.ɵɵlistener("ngModelChange", function
|
|
41
|
+
i0.ɵɵlistener("ngModelChange", function ResourceYamlDisplayComponent_ng_template_1_aui_checkbox_7_Template_aui_checkbox_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.conciseChange($event)); });
|
|
35
42
|
i0.ɵɵtext(2);
|
|
36
43
|
i0.ɵɵpipe(3, "translate");
|
|
37
44
|
i0.ɵɵelementEnd();
|
|
@@ -41,72 +48,256 @@ function ResourceYamlDisplayComponent_ng_template_1_aui_checkbox_3_Template(rf,
|
|
|
41
48
|
i0.ɵɵadvance(2);
|
|
42
49
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 4, "preview_concise_yaml"), " ");
|
|
43
50
|
} }
|
|
44
|
-
function
|
|
51
|
+
function ResourceYamlDisplayComponent_ng_template_1_button_9_Template(rf, ctx) { if (rf & 1) {
|
|
45
52
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
46
|
-
i0.ɵɵelementStart(0, "
|
|
53
|
+
i0.ɵɵelementStart(0, "button", 13);
|
|
47
54
|
i0.ɵɵpipe(1, "async");
|
|
48
55
|
i0.ɵɵpipe(2, "async");
|
|
49
|
-
i0.ɵɵ
|
|
50
|
-
i0.ɵɵtext(3);
|
|
56
|
+
i0.ɵɵpipe(3, "async");
|
|
51
57
|
i0.ɵɵpipe(4, "translate");
|
|
58
|
+
i0.ɵɵlistener("click", function ResourceYamlDisplayComponent_ng_template_1_button_9_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.toggleSidebar()); });
|
|
59
|
+
i0.ɵɵelement(5, "aui-icon", 14);
|
|
60
|
+
i0.ɵɵpipe(6, "async");
|
|
52
61
|
i0.ɵɵelementEnd();
|
|
53
62
|
} if (rf & 2) {
|
|
54
63
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
55
|
-
i0.ɵɵproperty("
|
|
56
|
-
i0.ɵɵadvance(
|
|
57
|
-
i0.ɵɵ
|
|
64
|
+
i0.ɵɵproperty("type", i0.ɵɵpipeBind1(1, 4, ctx_r2.showSidebar$$) ? "primary" : "text")("disabled", !i0.ɵɵpipeBind1(2, 6, ctx_r2.finalSchema$))("title", i0.ɵɵpipeBind1(3, 8, ctx_r2.finalSchema$) ? "" : i0.ɵɵpipeBind1(4, 10, "schema_not_available"));
|
|
65
|
+
i0.ɵɵadvance(5);
|
|
66
|
+
i0.ɵɵproperty("icon", i0.ɵɵpipeBind1(6, 12, ctx_r2.showSidebar$$) ? "prod:expand_sidebar" : "prod:collapse_sidebar");
|
|
67
|
+
} }
|
|
68
|
+
function ResourceYamlDisplayComponent_ng_template_1_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
69
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
70
|
+
i0.ɵɵelementStart(0, "div", 15)(1, "acl-resource-yaml-sidebar", 16);
|
|
71
|
+
i0.ɵɵpipe(2, "async");
|
|
72
|
+
i0.ɵɵlistener("close", function ResourceYamlDisplayComponent_ng_template_1_div_10_Template_acl_resource_yaml_sidebar_close_1_listener() { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.toggleSidebar()); });
|
|
73
|
+
i0.ɵɵelementEnd()();
|
|
74
|
+
} if (rf & 2) {
|
|
75
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
76
|
+
i0.ɵɵadvance();
|
|
77
|
+
i0.ɵɵproperty("resource", ctx_r2.getCurrentResource())("schema", i0.ɵɵpipeBind1(2, 4, ctx_r2.finalSchema$))("schemaEnable", ctx_r2.schemaEnable)("exampleEnable", false);
|
|
58
78
|
} }
|
|
59
79
|
function ResourceYamlDisplayComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
60
|
-
i0.ɵɵelementStart(0, "
|
|
80
|
+
i0.ɵɵelementStart(0, "div", 4);
|
|
61
81
|
i0.ɵɵpipe(1, "async");
|
|
62
|
-
i0.ɵɵ
|
|
63
|
-
i0.ɵɵ
|
|
82
|
+
i0.ɵɵelementStart(2, "div", 5)(3, "aui-code-editor", 6, 1);
|
|
83
|
+
i0.ɵɵpipe(5, "async");
|
|
84
|
+
i0.ɵɵelementContainerStart(6, 7);
|
|
85
|
+
i0.ɵɵtemplate(7, ResourceYamlDisplayComponent_ng_template_1_aui_checkbox_7_Template, 4, 6, "aui-checkbox", 8);
|
|
86
|
+
i0.ɵɵelementContainerEnd();
|
|
87
|
+
i0.ɵɵelementContainerStart(8, 9);
|
|
88
|
+
i0.ɵɵtemplate(9, ResourceYamlDisplayComponent_ng_template_1_button_9_Template, 7, 14, "button", 10);
|
|
64
89
|
i0.ɵɵelementContainerEnd();
|
|
90
|
+
i0.ɵɵelementEnd()();
|
|
91
|
+
i0.ɵɵtemplate(10, ResourceYamlDisplayComponent_ng_template_1_div_10_Template, 3, 6, "div", 11);
|
|
92
|
+
i0.ɵɵpipe(11, "async");
|
|
65
93
|
i0.ɵɵelementEnd();
|
|
66
94
|
} if (rf & 2) {
|
|
67
95
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
68
|
-
i0.ɵɵ
|
|
96
|
+
i0.ɵɵclassProp("with-sidebar", i0.ɵɵpipeBind1(1, 9, ctx_r2.showSidebar$$));
|
|
69
97
|
i0.ɵɵadvance(3);
|
|
98
|
+
i0.ɵɵproperty("ngModel", i0.ɵɵpipeBind1(5, 11, ctx_r2.yaml$))("options", ctx_r2.editorOptions)("actionsConfig", ctx_r2.viewActions)("modelUri", ctx_r2.modelUri);
|
|
99
|
+
i0.ɵɵadvance(4);
|
|
70
100
|
i0.ɵɵproperty("ngIf", ctx_r2.conciseEnable);
|
|
101
|
+
i0.ɵɵadvance(2);
|
|
102
|
+
i0.ɵɵproperty("ngIf", ctx_r2.sidebarEnable);
|
|
71
103
|
i0.ɵɵadvance();
|
|
72
|
-
i0.ɵɵproperty("ngIf", ctx_r2.
|
|
104
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(11, 13, ctx_r2.showSidebar$$));
|
|
73
105
|
} }
|
|
74
106
|
export class ResourceYamlDisplayComponent {
|
|
75
|
-
constructor(yamlUtil) {
|
|
107
|
+
constructor(yamlUtil, schemaService, monacoLanguageService) {
|
|
76
108
|
this.yamlUtil = yamlUtil;
|
|
109
|
+
this.schemaService = schemaService;
|
|
110
|
+
this.monacoLanguageService = monacoLanguageService;
|
|
111
|
+
this.destroy$ = new Subject();
|
|
77
112
|
this.concise$$ = new BehaviorSubject(false);
|
|
78
|
-
this.reduce$$ = new BehaviorSubject(
|
|
113
|
+
this.reduce$$ = new BehaviorSubject(false);
|
|
114
|
+
this.showSidebar$$ = new BehaviorSubject(false);
|
|
115
|
+
this.showDebugPanel$$ = new BehaviorSubject(false);
|
|
116
|
+
this.monacoEditor = null;
|
|
117
|
+
this.registeredSchemas = new Set();
|
|
79
118
|
this.hasWrapper = true;
|
|
119
|
+
this.showDebugInfo = false;
|
|
80
120
|
this.conciseEnable = true;
|
|
81
121
|
this.manageFieldActionEnable = true;
|
|
122
|
+
this.sidebarEnable = true;
|
|
123
|
+
this.schemaEnable = true;
|
|
124
|
+
this.exampleEnable = true;
|
|
125
|
+
this.autoFoldManagedFields = true;
|
|
126
|
+
this.minimap = true;
|
|
127
|
+
this.yamlReadMinimapOptions = yamlReadMinimapOptions;
|
|
128
|
+
this.yamlReadOptions = yamlReadOptions;
|
|
129
|
+
this.hasFolded = false;
|
|
130
|
+
/**
|
|
131
|
+
* 自动获取的 schema,当没有手动提供 schema 时使用
|
|
132
|
+
*/
|
|
133
|
+
this.autoSchema$ = this.resource$.pipe(switchMap(resource => {
|
|
134
|
+
if (!resource) {
|
|
135
|
+
return of(null);
|
|
136
|
+
}
|
|
137
|
+
const firstResource = (Array.isArray(resource) ? resource[0] : resource);
|
|
138
|
+
if (!firstResource?.apiVersion || !firstResource?.kind) {
|
|
139
|
+
return of(null);
|
|
140
|
+
}
|
|
141
|
+
return this.schemaService.getResourceSchema(firstResource.apiVersion, firstResource.kind);
|
|
142
|
+
}), shareReplay(1));
|
|
143
|
+
/**
|
|
144
|
+
* 最终使用的 schema,优先使用手动提供的,否则使用自动获取的
|
|
145
|
+
*/
|
|
146
|
+
this.finalSchema$ = combineLatest([this.schema$, this.autoSchema$]).pipe(map(([manualSchema, autoSchema]) => manualSchema || autoSchema), distinctUntilChanged(), shareReplay(1));
|
|
82
147
|
this.yaml$ = combineLatest([
|
|
83
148
|
this.resource$,
|
|
84
149
|
this.concise$$,
|
|
85
150
|
this.reduce$$.pipe(distinctUntilChanged()),
|
|
86
151
|
]).pipe(map(([resource, concise, reduce]) => this.yamlUtil.generateFilteredYamlResource(resource, concise, reduce)));
|
|
87
|
-
this.editorOptions = yamlReadOptions;
|
|
88
152
|
this.viewActions = viewActions;
|
|
153
|
+
this.yamlSchemaService =
|
|
154
|
+
this.monacoLanguageService.getLanguageSchemaService(['yaml', 'yamlDefaults'], yamlDefaults);
|
|
155
|
+
// 启用 YAML 语法提示功能
|
|
156
|
+
setDiagnosticsOptions({
|
|
157
|
+
validate: true,
|
|
158
|
+
format: true,
|
|
159
|
+
completion: true,
|
|
160
|
+
hover: true,
|
|
161
|
+
});
|
|
162
|
+
// 自动设置 schema
|
|
163
|
+
combineLatest([this.resource$, this.finalSchema$])
|
|
164
|
+
.pipe(takeUntil(this.destroy$))
|
|
165
|
+
.subscribe(([resource, schema]) => {
|
|
166
|
+
if (resource && schema) {
|
|
167
|
+
const firstResource = Array.isArray(resource)
|
|
168
|
+
? resource[0]
|
|
169
|
+
: resource;
|
|
170
|
+
if (firstResource && !Array.isArray(firstResource)) {
|
|
171
|
+
this.setYamlSchema(firstResource, schema);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
this.finalSchema$.pipe(takeUntil(this.destroy$)).subscribe();
|
|
176
|
+
}
|
|
177
|
+
get editorOptions() {
|
|
178
|
+
return this.minimap ? yamlReadMinimapOptions : yamlReadOptions;
|
|
89
179
|
}
|
|
90
180
|
conciseChange(value) {
|
|
91
181
|
this.concise$$.next(value);
|
|
92
|
-
|
|
93
|
-
|
|
182
|
+
}
|
|
183
|
+
toggleSidebar() {
|
|
184
|
+
this.showSidebar$$.next(!this.showSidebar$$.value);
|
|
185
|
+
}
|
|
186
|
+
toggleDebugInfo() {
|
|
187
|
+
this.showDebugPanel$$.next(!this.showDebugPanel$$.value);
|
|
188
|
+
}
|
|
189
|
+
getCurrentResource() {
|
|
190
|
+
const resource = this.resource;
|
|
191
|
+
if (Array.isArray(resource)) {
|
|
192
|
+
return resource.length > 0 ? resource[0] : null;
|
|
193
|
+
}
|
|
194
|
+
return resource || null;
|
|
195
|
+
}
|
|
196
|
+
getCurrentSchema() {
|
|
197
|
+
return this.schema || null;
|
|
198
|
+
}
|
|
199
|
+
selfFoldManagedFields() {
|
|
200
|
+
if (this.hasFolded) {
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
this.hasFolded = true;
|
|
204
|
+
setTimeout(() => {
|
|
205
|
+
const editor = this.getEditorInstance();
|
|
206
|
+
if (editor) {
|
|
207
|
+
foldManagedFields(editor);
|
|
208
|
+
}
|
|
209
|
+
}, 0);
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* 设置 YAML schema 以提供 hover 提示和自动完成
|
|
213
|
+
*/
|
|
214
|
+
setYamlSchema(resource, schema) {
|
|
215
|
+
if (!schema) {
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
// 使用 apiVersion + kind 组合作为标识
|
|
219
|
+
const apiVersion = resource?.apiVersion || 'unknown';
|
|
220
|
+
const kind = resource?.kind || 'unknown';
|
|
221
|
+
const schemaKey = `${apiVersion}/${kind}`;
|
|
222
|
+
this.modelUri = `${schemaKey}.yaml`;
|
|
223
|
+
this.selfFoldManagedFields();
|
|
224
|
+
// 检查是否已经注册过相同的 schema,避免重复注册
|
|
225
|
+
if (this.registeredSchemas.has(schemaKey)) {
|
|
226
|
+
return;
|
|
94
227
|
}
|
|
228
|
+
// 获取完整的 definitions 以支持 $ref 引用
|
|
229
|
+
const definitions = this.schemaService.definitions || {};
|
|
230
|
+
// 创建包含完整 definitions 的 schema 对象
|
|
231
|
+
const fullSchema = {
|
|
232
|
+
...schema,
|
|
233
|
+
definitions,
|
|
234
|
+
};
|
|
235
|
+
// 确保schema被正确注册,并启用自动完成功能
|
|
236
|
+
this.yamlSchemaService.addSchema({
|
|
237
|
+
uri: `k8s://${schemaKey}.schema.json`,
|
|
238
|
+
fileMatch: [this.modelUri],
|
|
239
|
+
schema: fullSchema,
|
|
240
|
+
});
|
|
241
|
+
this.registeredSchemas.add(schemaKey);
|
|
95
242
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
243
|
+
ngAfterViewInit() {
|
|
244
|
+
if (this.autoFoldManagedFields && this.schemaService.definitions) {
|
|
245
|
+
this.selfFoldManagedFields();
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* 获取 Monaco Editor 实例
|
|
250
|
+
*/
|
|
251
|
+
getEditorInstance() {
|
|
252
|
+
if (this.codeEditorRef && !this.monacoEditor) {
|
|
253
|
+
// 尝试从 ViewChild 获取编辑器实例
|
|
254
|
+
const editorComponent = this.codeEditorRef;
|
|
255
|
+
if (editorComponent.editor) {
|
|
256
|
+
this.monacoEditor = editorComponent.editor;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
return this.monacoEditor;
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* 自动折叠 managedFields 字段
|
|
263
|
+
*/
|
|
264
|
+
foldManagedFields() {
|
|
265
|
+
const editor = this.getEditorInstance();
|
|
266
|
+
if (editor) {
|
|
267
|
+
foldManagedFields(editor);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
ngOnDestroy() {
|
|
271
|
+
this.destroy$.next();
|
|
272
|
+
this.destroy$.complete();
|
|
273
|
+
this.monacoEditor = null;
|
|
274
|
+
}
|
|
275
|
+
static { this.ɵfac = function ResourceYamlDisplayComponent_Factory(t) { return new (t || ResourceYamlDisplayComponent)(i0.ɵɵdirectiveInject(i1.YamlUtilService), i0.ɵɵdirectiveInject(i2.KubernetesSchemaService), i0.ɵɵdirectiveInject(i3.MonacoLanguageService)); }; }
|
|
276
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ResourceYamlDisplayComponent, selectors: [["acl-resource-yaml-display"]], viewQuery: function ResourceYamlDisplayComponent_Query(rf, ctx) { if (rf & 1) {
|
|
277
|
+
i0.ɵɵviewQuery(_c0, 5);
|
|
278
|
+
} if (rf & 2) {
|
|
279
|
+
let _t;
|
|
280
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.codeEditorRef = _t.first);
|
|
281
|
+
} }, inputs: { hasWrapper: "hasWrapper", showDebugInfo: "showDebugInfo", conciseEnable: "conciseEnable", manageFieldActionEnable: "manageFieldActionEnable", sidebarEnable: "sidebarEnable", schemaEnable: "schemaEnable", exampleEnable: "exampleEnable", autoFoldManagedFields: "autoFoldManagedFields", schema: "schema", resource: "resource", minimap: "minimap" }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 3, vars: 2, consts: [["content", ""], ["codeEditorRef", ""], [4, "ngIf", "ngIfElse"], [4, "ngTemplateOutlet"], [1, "yaml-display-container"], [1, "yaml-editor-section"], ["name", "yaml", 3, "ngModel", "options", "actionsConfig", "modelUri"], ["auiCodeEditorToolbarLeft", ""], ["class", "aui-code-editor-toolbar__control-button", 3, "ngModel", "ngModelChange", 4, "ngIf"], ["auiCodeEditorToolbarRightSide", ""], ["auiButton", "", "class", "aui-code-editor-toolbar__control-button", "size", "small", 3, "type", "disabled", "title", "click", 4, "ngIf"], ["class", "yaml-sidebar-section", 4, "ngIf"], [1, "aui-code-editor-toolbar__control-button", 3, "ngModelChange", "ngModel"], ["auiButton", "", "size", "small", 1, "aui-code-editor-toolbar__control-button", 3, "click", "type", "disabled", "title"], [3, "icon"], [1, "yaml-sidebar-section"], [3, "close", "resource", "schema", "schemaEnable", "exampleEnable"]], template: function ResourceYamlDisplayComponent_Template(rf, ctx) { if (rf & 1) {
|
|
282
|
+
i0.ɵɵtemplate(0, ResourceYamlDisplayComponent_aui_card_0_Template, 2, 1, "aui-card", 2)(1, ResourceYamlDisplayComponent_ng_template_1_Template, 12, 15, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
99
283
|
} if (rf & 2) {
|
|
100
284
|
const content_r1 = i0.ɵɵreference(2);
|
|
101
285
|
i0.ɵɵproperty("ngIf", ctx.hasWrapper)("ngIfElse", content_r1);
|
|
102
|
-
} }, dependencies: [
|
|
103
|
-
FormsModule,
|
|
104
|
-
|
|
286
|
+
} }, dependencies: [i4.CardComponent, NgIf,
|
|
287
|
+
FormsModule, i5.NgControlStatus, i5.NgModel, i4.CheckboxComponent, ButtonModule,
|
|
288
|
+
CodeEditorModule, i3.CodeEditorComponent, TranslateModule, i6.TranslatePipe, AsyncPipe,
|
|
289
|
+
NgTemplateOutlet,
|
|
290
|
+
ResourceYamlSidebarComponent,
|
|
291
|
+
IconModule, i4.IconComponent], styles: ["[_nghost-%COMP%]:not(.dialog-content){display:block;height:calc(100vh - (var(--acl-page-header-height) + 44px) - 147px)}[_nghost-%COMP%]:not(.dialog-content) .aui-code-editor{min-height:100%}[_nghost-%COMP%]:not(.dialog-content) > .aui-card[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%]:not(.dialog-content) > .aui-card[_ngcontent-%COMP%] .aui-card__content[_ngcontent-%COMP%], [_nghost-%COMP%]:not(.dialog-content) > .aui-card[_ngcontent-%COMP%] aui-code-editor[_ngcontent-%COMP%], [_nghost-%COMP%]:not(.dialog-content) > .aui-card[_ngcontent-%COMP%] .aui-code-editor[_ngcontent-%COMP%]{height:100%;min-height:100%}[_nghost-%COMP%]{display:block}[_nghost-%COMP%] aui-card, [_nghost-%COMP%] .aui-card, [_nghost-%COMP%] .aui-card__content{height:100%}[_nghost-%COMP%] .aui-checkbox{margin-right:0}[_nghost-%COMP%] aui-code-editor[_ngcontent-%COMP%]{height:100%}.yaml-display-container[_ngcontent-%COMP%]{display:flex;height:100%}.yaml-display-container.with-sidebar[_ngcontent-%COMP%] .yaml-editor-section[_ngcontent-%COMP%]{flex:1;min-width:0}.yaml-display-container.with-sidebar[_ngcontent-%COMP%] .yaml-sidebar-section[_ngcontent-%COMP%]{width:400px;flex-shrink:0}.yaml-display-container[_ngcontent-%COMP%]:not(.with-sidebar) .yaml-editor-section[_ngcontent-%COMP%]{flex:1}.yaml-editor-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.yaml-editor-section[_ngcontent-%COMP%] aui-code-editor[_ngcontent-%COMP%]{flex:1;height:100%}.yaml-sidebar-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.yaml-sidebar-section[_ngcontent-%COMP%] acl-resource-yaml-sidebar[_ngcontent-%COMP%]{flex:1;height:100%}.yaml-debug-section[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:350px;height:100%;background:var(--aui-color-bg-container);border-left:1px solid var(--aui-color-border-default);z-index:1000;overflow-y:auto}.debug-panel[_ngcontent-%COMP%]{padding:16px;font-size:12px}.debug-panel[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:0 0 12px;font-size:14px;color:var(--aui-color-text-primary)}.debug-panel[_ngcontent-%COMP%] .debug-item[_ngcontent-%COMP%]{margin-bottom:16px}.debug-panel[_ngcontent-%COMP%] .debug-item[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:var(--aui-color-text-primary);display:block;margin-bottom:4px}.debug-panel[_ngcontent-%COMP%] .debug-item[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding-left:16px}.debug-panel[_ngcontent-%COMP%] .debug-item[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:2px;color:var(--aui-color-text-secondary)}.debug-panel[_ngcontent-%COMP%] .debug-actions[_ngcontent-%COMP%]{border-top:1px solid var(--aui-color-border-default);padding-top:12px;text-align:right}@media (max-width: 1200px){.yaml-display-container.with-sidebar[_ngcontent-%COMP%] .yaml-sidebar-section[_ngcontent-%COMP%]{width:350px}}@media (max-width: 992px){.yaml-display-container.with-sidebar[_ngcontent-%COMP%]{flex-direction:column}.yaml-display-container.with-sidebar[_ngcontent-%COMP%] .yaml-editor-section[_ngcontent-%COMP%]{flex:1;min-height:50%}.yaml-display-container.with-sidebar[_ngcontent-%COMP%] .yaml-sidebar-section[_ngcontent-%COMP%]{width:100%;height:50%;border-top:1px solid var(--aui-color-border, #e0e0e0);border-left:none}}"], changeDetection: 0 }); }
|
|
105
292
|
}
|
|
106
293
|
__decorate([
|
|
107
294
|
ObservableInput(),
|
|
108
295
|
__metadata("design:type", Observable)
|
|
109
296
|
], ResourceYamlDisplayComponent.prototype, "resource$", void 0);
|
|
297
|
+
__decorate([
|
|
298
|
+
ObservableInput(),
|
|
299
|
+
__metadata("design:type", Observable)
|
|
300
|
+
], ResourceYamlDisplayComponent.prototype, "schema$", void 0);
|
|
110
301
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ResourceYamlDisplayComponent, [{
|
|
111
302
|
type: Component,
|
|
112
303
|
args: [{ selector: 'acl-resource-yaml-display', preserveWhitespaces: false, standalone: true, imports: [
|
|
@@ -114,19 +305,39 @@ __decorate([
|
|
|
114
305
|
NgIf,
|
|
115
306
|
FormsModule,
|
|
116
307
|
CHECKBOX_MODULE,
|
|
308
|
+
ButtonModule,
|
|
117
309
|
CodeEditorModule,
|
|
118
310
|
TranslateModule,
|
|
119
311
|
AsyncPipe,
|
|
120
312
|
NgTemplateOutlet,
|
|
121
|
-
|
|
122
|
-
|
|
313
|
+
ResourceYamlSidebarComponent,
|
|
314
|
+
IconModule,
|
|
315
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<aui-card *ngIf=\"hasWrapper; else content\">\n <ng-container *ngTemplateOutlet=\"content\" />\n</aui-card>\n<ng-template #content>\n <div\n class=\"yaml-display-container\"\n [class.with-sidebar]=\"showSidebar$$ | async\"\n >\n <div class=\"yaml-editor-section\">\n <aui-code-editor\n #codeEditorRef\n name=\"yaml\"\n [ngModel]=\"yaml$ | async\"\n [options]=\"editorOptions\"\n [actionsConfig]=\"viewActions\"\n [modelUri]=\"modelUri\"\n >\n <ng-container auiCodeEditorToolbarLeft>\n <aui-checkbox\n *ngIf=\"conciseEnable\"\n class=\"aui-code-editor-toolbar__control-button\"\n [ngModel]=\"concise$$ | async\"\n (ngModelChange)=\"conciseChange($event)\"\n >\n {{ 'preview_concise_yaml' | translate }}\n </aui-checkbox>\n </ng-container>\n <ng-container auiCodeEditorToolbarRightSide>\n <!-- Schema \u6309\u94AE\uFF1A\u5F53\u542F\u7528\u4FA7\u8FB9\u680F\u65F6\u663E\u793A -->\n <button\n auiButton\n *ngIf=\"sidebarEnable\"\n class=\"aui-code-editor-toolbar__control-button\"\n [type]=\"(showSidebar$$ | async) ? 'primary' : 'text'\"\n [disabled]=\"!(finalSchema$ | async)\"\n size=\"small\"\n (click)=\"toggleSidebar()\"\n [title]=\"\n (finalSchema$ | async) ? '' : ('schema_not_available' | translate)\n \"\n >\n <aui-icon\n [icon]=\"\n (showSidebar$$ | async)\n ? 'prod:expand_sidebar'\n : 'prod:collapse_sidebar'\n \"\n ></aui-icon>\n </button>\n </ng-container>\n </aui-code-editor>\n </div>\n\n <div\n class=\"yaml-sidebar-section\"\n *ngIf=\"showSidebar$$ | async\"\n >\n <acl-resource-yaml-sidebar\n [resource]=\"getCurrentResource()\"\n [schema]=\"finalSchema$ | async\"\n (close)=\"toggleSidebar()\"\n [schemaEnable]=\"schemaEnable\"\n [exampleEnable]=\"false\"\n ></acl-resource-yaml-sidebar>\n </div>\n </div>\n</ng-template>\n", styles: [":host(:not(.dialog-content)){display:block;height:calc(100vh - (var(--acl-page-header-height) + 44px) - 147px)}:host(:not(.dialog-content)) ::ng-deep .aui-code-editor{min-height:100%}:host(:not(.dialog-content))>.aui-card{height:100%}:host(:not(.dialog-content))>.aui-card .aui-card__content,:host(:not(.dialog-content))>.aui-card aui-code-editor,:host(:not(.dialog-content))>.aui-card .aui-code-editor{height:100%;min-height:100%}:host{display:block}:host ::ng-deep aui-card,:host ::ng-deep .aui-card,:host ::ng-deep .aui-card__content{height:100%}:host ::ng-deep .aui-checkbox{margin-right:0}:host aui-code-editor{height:100%}.yaml-display-container{display:flex;height:100%}.yaml-display-container.with-sidebar .yaml-editor-section{flex:1;min-width:0}.yaml-display-container.with-sidebar .yaml-sidebar-section{width:400px;flex-shrink:0}.yaml-display-container:not(.with-sidebar) .yaml-editor-section{flex:1}.yaml-editor-section{display:flex;flex-direction:column;height:100%}.yaml-editor-section aui-code-editor{flex:1;height:100%}.yaml-sidebar-section{display:flex;flex-direction:column;height:100%}.yaml-sidebar-section acl-resource-yaml-sidebar{flex:1;height:100%}.yaml-debug-section{position:absolute;top:0;right:0;width:350px;height:100%;background:var(--aui-color-bg-container);border-left:1px solid var(--aui-color-border-default);z-index:1000;overflow-y:auto}.debug-panel{padding:16px;font-size:12px}.debug-panel h4{margin:0 0 12px;font-size:14px;color:var(--aui-color-text-primary)}.debug-panel .debug-item{margin-bottom:16px}.debug-panel .debug-item strong{color:var(--aui-color-text-primary);display:block;margin-bottom:4px}.debug-panel .debug-item ul{margin:0;padding-left:16px}.debug-panel .debug-item ul li{margin-bottom:2px;color:var(--aui-color-text-secondary)}.debug-panel .debug-actions{border-top:1px solid var(--aui-color-border-default);padding-top:12px;text-align:right}@media (max-width: 1200px){.yaml-display-container.with-sidebar .yaml-sidebar-section{width:350px}}@media (max-width: 992px){.yaml-display-container.with-sidebar{flex-direction:column}.yaml-display-container.with-sidebar .yaml-editor-section{flex:1;min-height:50%}.yaml-display-container.with-sidebar .yaml-sidebar-section{width:100%;height:50%;border-top:1px solid var(--aui-color-border, #e0e0e0);border-left:none}}\n"] }]
|
|
316
|
+
}], () => [{ type: i1.YamlUtilService }, { type: i2.KubernetesSchemaService }, { type: i3.MonacoLanguageService }], { codeEditorRef: [{
|
|
317
|
+
type: ViewChild,
|
|
318
|
+
args: ['codeEditorRef']
|
|
319
|
+
}], hasWrapper: [{
|
|
320
|
+
type: Input
|
|
321
|
+
}], showDebugInfo: [{
|
|
123
322
|
type: Input
|
|
124
323
|
}], conciseEnable: [{
|
|
125
324
|
type: Input
|
|
126
325
|
}], manageFieldActionEnable: [{
|
|
127
326
|
type: Input
|
|
327
|
+
}], sidebarEnable: [{
|
|
328
|
+
type: Input
|
|
329
|
+
}], schemaEnable: [{
|
|
330
|
+
type: Input
|
|
331
|
+
}], exampleEnable: [{
|
|
332
|
+
type: Input
|
|
333
|
+
}], autoFoldManagedFields: [{
|
|
334
|
+
type: Input
|
|
335
|
+
}], schema: [{
|
|
336
|
+
type: Input
|
|
128
337
|
}], resource: [{
|
|
129
338
|
type: Input
|
|
130
|
-
}], resource$: []
|
|
131
|
-
|
|
132
|
-
|
|
339
|
+
}], resource$: [], schema$: [], minimap: [{
|
|
340
|
+
type: Input
|
|
341
|
+
}] }); })();
|
|
342
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ResourceYamlDisplayComponent, { className: "ResourceYamlDisplayComponent" }); })();
|
|
343
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21tb24vc3JjL2NvZGUvcmVzb3VyY2UteWFtbC1kaXNwbGF5L2NvbXBvbmVud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ZXIgYXVpQ29kZUVkaXRvclRvb2xiYXJMZWZ0PlxuICAgICAgICAgIDxhdWktY2hlY2tib3hcbiAgICAgICAgICAgICpuZ0lmPVwiY29uY2lzZUVuYWJsZVwiXG4gICAgICAgICAgICBjbGFzcz1cImF1aS1jb2RlLWVkaXRvci10b29sYmFyX19jb250cm9sLWJ1dHRvblwiXG4gICAgICAgICAgICBbbmdNb2RlbF09XCJjb25jaXNlJCQgfCBhc3luY1wiXG4gICAgICAgICAgICAobmdNb2RlbENoYW5nZSk9XCJjb25jaXNlQ2hhbmdlKCRldmVudClcIlxuICAgICAgICAgID5cbiAgICAgICAgICAgIHt7ICdwcmV2aWV3X2NvbmNpc2VfeWFtbCcgfCB0cmFuc2xhdGUgfX1cbiAgICAgICAgICA8L2F1aS1jaGVja2JveD5cbiAgICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgICAgIDxuZy1jb250YWluZXIgYXVpQ29kZUVkaXRvclRvb2xiYXJSaWdodFNpZGU+XG4gICAgICAgICAgPCEtLSBTY2hlbWEg5oyJ6ZKu77ya5b2T5ZCv55So5L6n6L655qCP5pe25pi+56S6IC0tPlxuICAgICAgICAgIDxidXR0b25cbiAgICAgICAgICAgIGF1aUJ1dHRvblxuICAgICAgICAgICAgKm5nSWY9XCJzaWRlYmFyRW5hYmxlXCJcbiAgICAgICAgICAgIGNsYXNzPVwiYXVpLWNvZGUtZWRpdG9yLXRvb2xiYXJfX2NvbnRyb2wtYnV0dG9uXCJcbiAgICAgICAgICAgIFt0eXBlXT1cIihzaG93U2lkZWJhciQkIHwgYXN5bmMpID8gJ3ByaW1hcnknIDogJ3RleHQnXCJcbiAgICAgICAgICAgIFtkaXNhYmxlZF09XCIhKGZpbmFsU2NoZW1hJCB8IGFzeW5jKVwiXG4gICAgICAgICAgICBzaXplPVwic21hbGxcIlxuICAgICAgICAgICAgKGNsaWNrKT1cInRvZ2dsZVNpZGViYXIoKVwiXG4gICAgICAgICAgICBbdGl0bGVdPVwiXG4gICAgICAgICAgICAgIChmaW5hbFNjaGVtYSQgfCBhc3luYykgPyAnJyA6ICgnc2NoZW1hX25vdF9hdmFpbGFibGUnIHwgdHJhbnNsYXRlKVxuICAgICAgICAgICAgXCJcbiAgICAgICAgICA+XG4gICAgICAgICAgICA8YXVpLWljb25cbiAgICAgICAgICAgICAgW2ljb25dPVwiXG4gICAgICAgICAgICAgICAgKHNob3dTaWRlYmFyJCQgfCBhc3luYylcbiAgICAgICAgICAgICAgICAgID8gJ3Byb2Q6ZXhwYW5kX3NpZGViYXInXG4gICAgICAgICAgICAgICAgICA6ICdwcm9kOmNvbGxhcHNlX3NpZGViYXInXG4gICAgICAgICAgICAgIFwiXG4gICAgICAgICAgICA+PC9hdWktaWNvbj5cbiAgICAgICAgICA8L2J1dHRvbj5cbiAgICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgICA8L2F1aS1jb2RlLWVkaXRvcj5cbiAgICA8L2Rpdj5cblxuICAgIDxkaXZcbiAgICAgIGNsYXNzPVwieWFtbC1zaWRlYmFyLXNlY3Rpb25cIlxuICAgICAgKm5nSWY9XCJzaG93U2lkZWJhciQkIHwgYXN5bmNcIlxuICAgID5cbiAgICAgIDxhY2wtcmVzb3VyY2UteWFtbC1zaWRlYmFyXG4gICAgICAgIFtyZXNvdXJjZV09XCJnZXRDdXJyZW50UmVzb3VyY2UoKVwiXG4gICAgICAgIFtzY2hlbWFdPVwiZmluYWxTY2hlbWEkIHwgYXN5bmNcIlxuICAgICAgICAoY2xvc2UpPVwidG9nZ2xlU2lkZWJhcigpXCJcbiAgICAgICAgW3NjaGVtYUVuYWJsZV09XCJzY2hlbWFFbmFibGVcIlxuICAgICAgICBbZXhhbXBsZUVuYWJsZV09XCJmYWxzZVwiXG4gICAgICA+PC9hY2wtcmVzb3VyY2UteWFtbC1zaWRlYmFyPlxuICAgIDwvZGl2PlxuICA8L2Rpdj5cbjwvbmctdGVtcGxhdGU+XG4iXX0=
|