ngx-rs-ant 1.1.9 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/box-container/box-container.component.d.ts +6 -2
- package/box-container/box-container.module.d.ts +2 -3
- package/data-detail/data-detail.component.d.ts +3 -2
- package/drawer/drawer.module.d.ts +1 -1
- package/dynamic-params/dynamic-params.module.d.ts +2 -3
- package/esm2020/box-container/box-container.component.mjs +17 -2
- package/esm2020/box-container/box-container.module.mjs +1 -5
- package/esm2020/data-detail/data-detail.component.mjs +10 -9
- package/esm2020/drawer/drawer.module.mjs +5 -5
- package/esm2020/dynamic-params/dynamic-params.module.mjs +1 -5
- package/esm2020/form/form.component.mjs +23 -9
- package/esm2020/form/form.module.mjs +1 -12
- package/esm2020/icon-selector/icon-selector.module.mjs +1 -1
- package/esm2020/java-editor/java-editor.component.mjs +67 -0
- package/esm2020/java-editor/java-editor.module.mjs +28 -0
- package/esm2020/public-api.mjs +4 -1
- package/esm2020/util/change-filter.mjs +63 -0
- package/fesm2015/ngx-rs-ant.mjs +198 -40
- package/fesm2015/ngx-rs-ant.mjs.map +1 -1
- package/fesm2020/ngx-rs-ant.mjs +197 -40
- package/fesm2020/ngx-rs-ant.mjs.map +1 -1
- package/form/form.component.d.ts +8 -4
- package/form/form.module.d.ts +3 -5
- package/java-editor/java-editor.component.d.ts +19 -0
- package/java-editor/java-editor.module.d.ts +9 -0
- package/package.json +3 -2
- package/public-api.d.ts +3 -0
- package/util/change-filter.d.ts +12 -0
package/fesm2015/ngx-rs-ant.mjs
CHANGED
|
@@ -3,13 +3,11 @@ import { Component, Input, HostBinding, EventEmitter, Output, HostListener, View
|
|
|
3
3
|
import { PluginFactory } from 'coast-plugin-register';
|
|
4
4
|
import * as i1 from '@angular/common';
|
|
5
5
|
import { CommonModule } from '@angular/common';
|
|
6
|
-
import { Subject, map, of, lastValueFrom, interval } from 'rxjs';
|
|
6
|
+
import { Subject, ReplaySubject, Subscription, map, of, lastValueFrom, interval } from 'rxjs';
|
|
7
7
|
import * as i2 from 'devextreme-angular/ui/number-box';
|
|
8
8
|
import * as i2$1 from 'devextreme-angular/ui/draggable';
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import { DevExtremeModule, DxDataGridComponent, DxValidationGroupComponent, DxButtonModule } from 'devextreme-angular';
|
|
12
|
-
import { HelperUtils, DevUIModule } from 'ng-devui';
|
|
9
|
+
import { DevExtremeModule, DxDataGridComponent, DxValidationGroupComponent, DxLoadPanelModule } from 'devextreme-angular';
|
|
10
|
+
import { HelperUtils } from 'ng-devui';
|
|
13
11
|
import * as i1$1 from '@angular/common/http';
|
|
14
12
|
import CustomStore from 'devextreme/data/custom_store';
|
|
15
13
|
import * as i3 from 'devextreme-angular/core';
|
|
@@ -18,12 +16,12 @@ import * as i5$1 from 'devextreme-angular/ui/nested';
|
|
|
18
16
|
import * as i5 from 'devextreme-angular/ui/tooltip';
|
|
19
17
|
import * as i2$2 from '@angular/platform-browser';
|
|
20
18
|
import * as i4 from 'devextreme-angular/ui/button';
|
|
21
|
-
import * as i3$
|
|
19
|
+
import * as i3$1 from 'devextreme-angular/ui/accordion';
|
|
22
20
|
import * as i6 from 'devextreme-angular/ui/load-panel';
|
|
23
21
|
import { __awaiter } from 'tslib';
|
|
24
22
|
import notify from 'devextreme/ui/notify';
|
|
25
23
|
import * as i7 from 'devextreme-angular/ui/validation-group';
|
|
26
|
-
import * as i3$
|
|
24
|
+
import * as i3$2 from 'devextreme-angular/ui/text-box';
|
|
27
25
|
import * as i4$2 from 'devextreme-angular/ui/popover';
|
|
28
26
|
|
|
29
27
|
class DividerLineComponent {
|
|
@@ -675,6 +673,68 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
|
|
|
675
673
|
args: [BoxItemHostDirective]
|
|
676
674
|
}] } });
|
|
677
675
|
|
|
676
|
+
class ChangeFilter {
|
|
677
|
+
constructor() {
|
|
678
|
+
this.subject = new ReplaySubject(1);
|
|
679
|
+
this.subscriptions = new Subscription();
|
|
680
|
+
}
|
|
681
|
+
doFilter(changes) {
|
|
682
|
+
this.subject.next(changes);
|
|
683
|
+
}
|
|
684
|
+
dispose() {
|
|
685
|
+
this.subscriptions.unsubscribe();
|
|
686
|
+
}
|
|
687
|
+
notEmpty(key, handler) {
|
|
688
|
+
this.subscriptions.add(this.subject.subscribe(changes => {
|
|
689
|
+
if (changes[key]) {
|
|
690
|
+
const value = changes[key].currentValue;
|
|
691
|
+
if (value !== undefined && value !== null) {
|
|
692
|
+
handler(value);
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
}));
|
|
696
|
+
}
|
|
697
|
+
has(key, handler) {
|
|
698
|
+
this.subscriptions.add(this.subject.subscribe(changes => {
|
|
699
|
+
if (changes[key]) {
|
|
700
|
+
const value = changes[key].currentValue;
|
|
701
|
+
handler(value);
|
|
702
|
+
}
|
|
703
|
+
}));
|
|
704
|
+
}
|
|
705
|
+
notFirst(key, handler) {
|
|
706
|
+
this.subscriptions.add(this.subject.subscribe(changes => {
|
|
707
|
+
if (changes[key] && !changes[key].isFirstChange()) {
|
|
708
|
+
const value = changes[key].currentValue;
|
|
709
|
+
handler(value);
|
|
710
|
+
}
|
|
711
|
+
}));
|
|
712
|
+
}
|
|
713
|
+
notFirstAndEmpty(key, handler) {
|
|
714
|
+
this.subscriptions.add(this.subject.subscribe(changes => {
|
|
715
|
+
if (changes[key] && !changes[key].isFirstChange()) {
|
|
716
|
+
const value = changes[key].currentValue;
|
|
717
|
+
if (value !== undefined && value !== null) {
|
|
718
|
+
handler(value);
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
}));
|
|
722
|
+
}
|
|
723
|
+
anyNotFirst(keys, handler) {
|
|
724
|
+
this.subscriptions.add(this.subject.subscribe(changes => {
|
|
725
|
+
let hasChange = false;
|
|
726
|
+
for (let key of keys) {
|
|
727
|
+
if (changes[key] && !changes[key].isFirstChange()) {
|
|
728
|
+
hasChange = true;
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
if (hasChange) {
|
|
732
|
+
handler();
|
|
733
|
+
}
|
|
734
|
+
}));
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
|
|
678
738
|
class BoxContainerComponent {
|
|
679
739
|
constructor() {
|
|
680
740
|
this.editMode = false;
|
|
@@ -683,9 +743,23 @@ class BoxContainerComponent {
|
|
|
683
743
|
list: [{ type: 'blank', style: {} }]
|
|
684
744
|
};
|
|
685
745
|
this.readonly = false;
|
|
746
|
+
this.changeFilter = new ChangeFilter();
|
|
686
747
|
}
|
|
687
748
|
ngOnInit() {
|
|
749
|
+
this.load();
|
|
750
|
+
this.changeFilter.anyNotFirst(['config', 'model', 'readonly'], () => {
|
|
751
|
+
this.load();
|
|
752
|
+
});
|
|
753
|
+
}
|
|
754
|
+
ngOnChanges(changes) {
|
|
755
|
+
this.changeFilter.doFilter(changes);
|
|
756
|
+
}
|
|
757
|
+
ngOnDestroy() {
|
|
758
|
+
this.changeFilter.dispose();
|
|
759
|
+
}
|
|
760
|
+
load() {
|
|
688
761
|
var _a;
|
|
762
|
+
this.boxContainerContent.clear();
|
|
689
763
|
const boxItemComponentRef = this.boxContainerContent.createComponent(BoxItemComponent);
|
|
690
764
|
const instance = boxItemComponentRef.instance;
|
|
691
765
|
instance.boxContainer = this;
|
|
@@ -705,7 +779,7 @@ class BoxContainerComponent {
|
|
|
705
779
|
}
|
|
706
780
|
}
|
|
707
781
|
BoxContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: BoxContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
708
|
-
BoxContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: BoxContainerComponent, selector: "rs-box-container", inputs: { config: "config", model: "model", readonly: "readonly" }, viewQueries: [{ propertyName: "boxContainerContent", first: true, predicate: ["boxContainerContent"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<ng-container #boxContainerContent></ng-container>\n", styles: [":host{flex:1;position:relative;display:flex;flex-flow:row nowrap}\n"] });
|
|
782
|
+
BoxContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: BoxContainerComponent, selector: "rs-box-container", inputs: { config: "config", model: "model", readonly: "readonly" }, viewQueries: [{ propertyName: "boxContainerContent", first: true, predicate: ["boxContainerContent"], descendants: true, read: ViewContainerRef, static: true }], usesOnChanges: true, ngImport: i0, template: "<ng-container #boxContainerContent></ng-container>\n", styles: [":host{flex:1;position:relative;display:flex;flex-flow:row nowrap}\n"] });
|
|
709
783
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: BoxContainerComponent, decorators: [{
|
|
710
784
|
type: Component,
|
|
711
785
|
args: [{ selector: 'rs-box-container', template: "<ng-container #boxContainerContent></ng-container>\n", styles: [":host{flex:1;position:relative;display:flex;flex-flow:row nowrap}\n"] }]
|
|
@@ -737,12 +811,10 @@ BoxContainerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", vers
|
|
|
737
811
|
StyleComponent,
|
|
738
812
|
PluginNotFoundComponent,
|
|
739
813
|
ConfigBlankComponent], imports: [CommonModule,
|
|
740
|
-
FormsModule,
|
|
741
814
|
DevExtremeModule], exports: [BoxContainerComponent,
|
|
742
815
|
ItemConfigComponent,
|
|
743
816
|
ItemStyleComponent] });
|
|
744
817
|
BoxContainerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: BoxContainerModule, imports: [CommonModule,
|
|
745
|
-
FormsModule,
|
|
746
818
|
DevExtremeModule] });
|
|
747
819
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: BoxContainerModule, decorators: [{
|
|
748
820
|
type: NgModule,
|
|
@@ -765,7 +837,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
|
|
|
765
837
|
],
|
|
766
838
|
imports: [
|
|
767
839
|
CommonModule,
|
|
768
|
-
FormsModule,
|
|
769
840
|
DevExtremeModule
|
|
770
841
|
],
|
|
771
842
|
exports: [
|
|
@@ -1892,14 +1963,27 @@ function validate_group(validationGroup) {
|
|
|
1892
1963
|
}
|
|
1893
1964
|
|
|
1894
1965
|
class FormComponent {
|
|
1895
|
-
constructor(service) {
|
|
1966
|
+
constructor(viewContainerRef, service) {
|
|
1967
|
+
this.viewContainerRef = viewContainerRef;
|
|
1896
1968
|
this.service = service;
|
|
1897
1969
|
this.readonly = false;
|
|
1898
1970
|
this.submitCallback = new EventEmitter();
|
|
1899
1971
|
this.loading = false;
|
|
1900
|
-
this.
|
|
1972
|
+
this.changeFilter = new ChangeFilter();
|
|
1901
1973
|
}
|
|
1902
1974
|
ngOnInit() {
|
|
1975
|
+
this.load();
|
|
1976
|
+
this.changeFilter.anyNotFirst(['tenant', 'className', 'oid', 'copyOid', 'template'], () => {
|
|
1977
|
+
this.load();
|
|
1978
|
+
});
|
|
1979
|
+
}
|
|
1980
|
+
ngOnChanges(changes) {
|
|
1981
|
+
this.changeFilter.doFilter(changes);
|
|
1982
|
+
}
|
|
1983
|
+
ngOnDestroy() {
|
|
1984
|
+
this.changeFilter.dispose();
|
|
1985
|
+
}
|
|
1986
|
+
load() {
|
|
1903
1987
|
this.loading = true;
|
|
1904
1988
|
this.service.getFormTemplateConfig(this.tenant, this.className, this.template).subscribe(response => {
|
|
1905
1989
|
this.config = response.data.template;
|
|
@@ -1937,12 +2021,12 @@ class FormComponent {
|
|
|
1937
2021
|
this.formSubmitter.instance.element().click();
|
|
1938
2022
|
}
|
|
1939
2023
|
}
|
|
1940
|
-
FormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: FormComponent, deps: [{ token: FormService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1941
|
-
FormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: FormComponent, selector: "rs-form", inputs: { tenant: "tenant", className: "className", oid: "oid", copyOid: "copyOid", template: "template", readonly: "readonly" }, outputs: { submitCallback: "submitCallback" }, providers: [FormService], viewQueries: [{ propertyName: "validator", first: true, predicate: DxValidationGroupComponent, descendants: true }, { propertyName: "formSubmitter", first: true, predicate: ["formSubmitter"], descendants: true }], ngImport: i0, template: "<dx-load-panel [
|
|
2024
|
+
FormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: FormComponent, deps: [{ token: i0.ViewContainerRef }, { token: FormService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2025
|
+
FormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: FormComponent, selector: "rs-form", inputs: { tenant: "tenant", className: "className", oid: "oid", copyOid: "copyOid", template: "template", readonly: "readonly" }, outputs: { submitCallback: "submitCallback" }, providers: [FormService], viewQueries: [{ propertyName: "validator", first: true, predicate: DxValidationGroupComponent, descendants: true }, { propertyName: "formSubmitter", first: true, predicate: ["formSubmitter"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<dx-load-panel [container]=\"viewContainerRef.element.nativeElement\" [showPane]=\"false\"\n [visible]=\"loading\">\n <dxo-position [of]=\"viewContainerRef.element.nativeElement\"></dxo-position>\n</dx-load-panel>\n<dx-validation-group *ngIf=\"!loading\">\n <rs-box-container [config]=\"config\" [model]=\"model\" [readonly]=\"readonly\"></rs-box-container>\n <dx-button #formSubmitter [visible]=\"false\" (onClick)=\"submitForm()\"></dx-button>\n</dx-validation-group>\n", styles: [":host{padding:12px 24px 20px}:host form{display:flex;flex-flow:row nowrap}:host form dx-validation-group{width:100%}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: BoxContainerComponent, selector: "rs-box-container", inputs: ["config", "model", "readonly"] }, { kind: "component", type: i5$1.DxoPositionComponent, selector: "dxo-position", inputs: ["at", "boundary", "boundaryOffset", "collision", "my", "of", "offset"] }, { kind: "component", type: i4.DxButtonComponent, selector: "dx-button", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "icon", "rtlEnabled", "stylingMode", "tabIndex", "template", "text", "type", "useSubmitBehavior", "validationGroup", "visible", "width"], outputs: ["onClick", "onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "iconChange", "rtlEnabledChange", "stylingModeChange", "tabIndexChange", "templateChange", "textChange", "typeChange", "useSubmitBehaviorChange", "validationGroupChange", "visibleChange", "widthChange"] }, { kind: "component", type: i6.DxLoadPanelComponent, selector: "dx-load-panel", inputs: ["animation", "closeOnOutsideClick", "container", "copyRootClassesToWrapper", "deferRendering", "delay", "elementAttr", "focusStateEnabled", "height", "hideOnOutsideClick", "hideOnParentScroll", "hint", "hoverStateEnabled", "indicatorSrc", "maxHeight", "maxWidth", "message", "minHeight", "minWidth", "position", "rtlEnabled", "shading", "shadingColor", "showIndicator", "showPane", "visible", "width", "wrapperAttr"], outputs: ["onContentReady", "onDisposing", "onHidden", "onHiding", "onInitialized", "onOptionChanged", "onShowing", "onShown", "animationChange", "closeOnOutsideClickChange", "containerChange", "copyRootClassesToWrapperChange", "deferRenderingChange", "delayChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hideOnOutsideClickChange", "hideOnParentScrollChange", "hintChange", "hoverStateEnabledChange", "indicatorSrcChange", "maxHeightChange", "maxWidthChange", "messageChange", "minHeightChange", "minWidthChange", "positionChange", "rtlEnabledChange", "shadingChange", "shadingColorChange", "showIndicatorChange", "showPaneChange", "visibleChange", "widthChange", "wrapperAttrChange"] }, { kind: "component", type: i7.DxValidationGroupComponent, selector: "dx-validation-group", inputs: ["elementAttr", "height", "width"], outputs: ["onDisposing", "onInitialized", "onOptionChanged", "elementAttrChange", "heightChange", "widthChange"] }] });
|
|
1942
2026
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: FormComponent, decorators: [{
|
|
1943
2027
|
type: Component,
|
|
1944
|
-
args: [{ selector: 'rs-form', providers: [FormService], template: "<dx-load-panel [
|
|
1945
|
-
}], ctorParameters: function () { return [{ type: FormService }]; }, propDecorators: { tenant: [{
|
|
2028
|
+
args: [{ selector: 'rs-form', providers: [FormService], template: "<dx-load-panel [container]=\"viewContainerRef.element.nativeElement\" [showPane]=\"false\"\n [visible]=\"loading\">\n <dxo-position [of]=\"viewContainerRef.element.nativeElement\"></dxo-position>\n</dx-load-panel>\n<dx-validation-group *ngIf=\"!loading\">\n <rs-box-container [config]=\"config\" [model]=\"model\" [readonly]=\"readonly\"></rs-box-container>\n <dx-button #formSubmitter [visible]=\"false\" (onClick)=\"submitForm()\"></dx-button>\n</dx-validation-group>\n", styles: [":host{padding:12px 24px 20px}:host form{display:flex;flex-flow:row nowrap}:host form dx-validation-group{width:100%}\n"] }]
|
|
2029
|
+
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: FormService }]; }, propDecorators: { tenant: [{
|
|
1946
2030
|
type: Input
|
|
1947
2031
|
}], className: [{
|
|
1948
2032
|
type: Input
|
|
@@ -1965,11 +2049,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
|
|
|
1965
2049
|
}] } });
|
|
1966
2050
|
|
|
1967
2051
|
class DataDetailComponent {
|
|
1968
|
-
constructor(service) {
|
|
2052
|
+
constructor(viewContainerRef, service) {
|
|
2053
|
+
this.viewContainerRef = viewContainerRef;
|
|
1969
2054
|
this.service = service;
|
|
1970
2055
|
this.sections = [];
|
|
1971
2056
|
this.loading = false;
|
|
1972
|
-
this.window = window;
|
|
1973
2057
|
}
|
|
1974
2058
|
ngOnInit() {
|
|
1975
2059
|
this.loading = true;
|
|
@@ -1979,12 +2063,12 @@ class DataDetailComponent {
|
|
|
1979
2063
|
});
|
|
1980
2064
|
}
|
|
1981
2065
|
}
|
|
1982
|
-
DataDetailComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: DataDetailComponent, deps: [{ token: DataDetailService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1983
|
-
DataDetailComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: DataDetailComponent, selector: "coast-data-detail", inputs: { tenant: "tenant", className: "className", oid: "oid" }, providers: [DataDetailService], ngImport: i0, template: "<dx-load-panel [showPane]=\"false\"
|
|
2066
|
+
DataDetailComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: DataDetailComponent, deps: [{ token: i0.ViewContainerRef }, { token: DataDetailService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2067
|
+
DataDetailComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: DataDetailComponent, selector: "coast-data-detail", inputs: { tenant: "tenant", className: "className", oid: "oid" }, providers: [DataDetailService], ngImport: i0, template: "<dx-load-panel [container]=\"viewContainerRef.element.nativeElement\" [showPane]=\"false\"\n [visible]=\"loading\">\n <dxo-position [of]=\"viewContainerRef.element.nativeElement\"></dxo-position>\n</dx-load-panel>\n<div *ngIf=\"!loading && sections.length === 0\" class=\"empty\">\n <span>\u60A8\u65E0\u6743\u67E5\u770B\u8BE5\u6570\u636E\u5B9E\u4F8B\u4EFB\u4F55\u4FE1\u606F</span>\n</div>\n<ng-container *ngIf=\"sections.length > 0\">\n <dx-accordion [collapsible]=\"true\" [multiple]=\"true\" [deferRendering]=\"false\" [dataSource]=\"sections\"\n [selectedItems]=\"sections\">\n <div *dxTemplate=\"let section of 'title'\" class=\"section-title\">\n <div class=\"section-title-name\">{{section.name}}</div>\n </div>\n <div *dxTemplate=\"let section of 'item'\">\n <rs-form [tenant]=\"tenant\" [className]=\"className\" [oid]=\"oid\" [template]=\"section.formTemplate\"\n [readonly]=\"true\"></rs-form>\n </div>\n </dx-accordion>\n</ng-container>\n", styles: [":host{flex:1;padding:24px;display:flex;flex-flow:column nowrap}:host div.empty{flex:1;padding:16px;display:flex;flex-flow:row nowrap;justify-content:center;align-items:center}:host div.empty span{text-align:center;-webkit-user-select:none;user-select:none}:host .section-title{border-bottom:1px solid var(--coast-border-color, #dddddd)}:host .section-title .section-title-name{height:24px;font-size:14px;font-weight:700;padding:4px 8px;display:flex;flex-flow:column nowrap;justify-content:center}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$1.DxAccordionComponent, selector: "dx-accordion", inputs: ["accessKey", "activeStateEnabled", "animationDuration", "collapsible", "dataSource", "deferRendering", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "itemHoldTimeout", "items", "itemTemplate", "itemTitleTemplate", "keyExpr", "multiple", "noDataText", "repaintChangesOnly", "rtlEnabled", "selectedIndex", "selectedItem", "selectedItemKeys", "selectedItems", "tabIndex", "visible", "width"], outputs: ["onContentReady", "onDisposing", "onInitialized", "onItemClick", "onItemContextMenu", "onItemHold", "onItemRendered", "onItemTitleClick", "onOptionChanged", "onSelectionChanged", "accessKeyChange", "activeStateEnabledChange", "animationDurationChange", "collapsibleChange", "dataSourceChange", "deferRenderingChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "itemHoldTimeoutChange", "itemsChange", "itemTemplateChange", "itemTitleTemplateChange", "keyExprChange", "multipleChange", "noDataTextChange", "repaintChangesOnlyChange", "rtlEnabledChange", "selectedIndexChange", "selectedItemChange", "selectedItemKeysChange", "selectedItemsChange", "tabIndexChange", "visibleChange", "widthChange"] }, { kind: "directive", type: i3.DxTemplateDirective, selector: "[dxTemplate]", inputs: ["dxTemplateOf"] }, { kind: "component", type: i5$1.DxoPositionComponent, selector: "dxo-position", inputs: ["at", "boundary", "boundaryOffset", "collision", "my", "of", "offset"] }, { kind: "component", type: i6.DxLoadPanelComponent, selector: "dx-load-panel", inputs: ["animation", "closeOnOutsideClick", "container", "copyRootClassesToWrapper", "deferRendering", "delay", "elementAttr", "focusStateEnabled", "height", "hideOnOutsideClick", "hideOnParentScroll", "hint", "hoverStateEnabled", "indicatorSrc", "maxHeight", "maxWidth", "message", "minHeight", "minWidth", "position", "rtlEnabled", "shading", "shadingColor", "showIndicator", "showPane", "visible", "width", "wrapperAttr"], outputs: ["onContentReady", "onDisposing", "onHidden", "onHiding", "onInitialized", "onOptionChanged", "onShowing", "onShown", "animationChange", "closeOnOutsideClickChange", "containerChange", "copyRootClassesToWrapperChange", "deferRenderingChange", "delayChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hideOnOutsideClickChange", "hideOnParentScrollChange", "hintChange", "hoverStateEnabledChange", "indicatorSrcChange", "maxHeightChange", "maxWidthChange", "messageChange", "minHeightChange", "minWidthChange", "positionChange", "rtlEnabledChange", "shadingChange", "shadingColorChange", "showIndicatorChange", "showPaneChange", "visibleChange", "widthChange", "wrapperAttrChange"] }, { kind: "component", type: FormComponent, selector: "rs-form", inputs: ["tenant", "className", "oid", "copyOid", "template", "readonly"], outputs: ["submitCallback"] }] });
|
|
1984
2068
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: DataDetailComponent, decorators: [{
|
|
1985
2069
|
type: Component,
|
|
1986
|
-
args: [{ selector: 'coast-data-detail', providers: [DataDetailService], template: "<dx-load-panel [showPane]=\"false\"
|
|
1987
|
-
}], ctorParameters: function () { return [{ type: DataDetailService }]; }, propDecorators: { tenant: [{
|
|
2070
|
+
args: [{ selector: 'coast-data-detail', providers: [DataDetailService], template: "<dx-load-panel [container]=\"viewContainerRef.element.nativeElement\" [showPane]=\"false\"\n [visible]=\"loading\">\n <dxo-position [of]=\"viewContainerRef.element.nativeElement\"></dxo-position>\n</dx-load-panel>\n<div *ngIf=\"!loading && sections.length === 0\" class=\"empty\">\n <span>\u60A8\u65E0\u6743\u67E5\u770B\u8BE5\u6570\u636E\u5B9E\u4F8B\u4EFB\u4F55\u4FE1\u606F</span>\n</div>\n<ng-container *ngIf=\"sections.length > 0\">\n <dx-accordion [collapsible]=\"true\" [multiple]=\"true\" [deferRendering]=\"false\" [dataSource]=\"sections\"\n [selectedItems]=\"sections\">\n <div *dxTemplate=\"let section of 'title'\" class=\"section-title\">\n <div class=\"section-title-name\">{{section.name}}</div>\n </div>\n <div *dxTemplate=\"let section of 'item'\">\n <rs-form [tenant]=\"tenant\" [className]=\"className\" [oid]=\"oid\" [template]=\"section.formTemplate\"\n [readonly]=\"true\"></rs-form>\n </div>\n </dx-accordion>\n</ng-container>\n", styles: [":host{flex:1;padding:24px;display:flex;flex-flow:column nowrap}:host div.empty{flex:1;padding:16px;display:flex;flex-flow:row nowrap;justify-content:center;align-items:center}:host div.empty span{text-align:center;-webkit-user-select:none;user-select:none}:host .section-title{border-bottom:1px solid var(--coast-border-color, #dddddd)}:host .section-title .section-title-name{height:24px;font-size:14px;font-weight:700;padding:4px 8px;display:flex;flex-flow:column nowrap;justify-content:center}\n"] }]
|
|
2071
|
+
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: DataDetailService }]; }, propDecorators: { tenant: [{
|
|
1988
2072
|
type: Input
|
|
1989
2073
|
}], className: [{
|
|
1990
2074
|
type: Input
|
|
@@ -1996,15 +2080,9 @@ class FormModule {
|
|
|
1996
2080
|
}
|
|
1997
2081
|
FormModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: FormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1998
2082
|
FormModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.7", ngImport: i0, type: FormModule, declarations: [FormComponent], imports: [CommonModule,
|
|
1999
|
-
DevUIModule,
|
|
2000
|
-
FormsModule,
|
|
2001
|
-
ReactiveFormsModule,
|
|
2002
2083
|
BoxContainerModule,
|
|
2003
2084
|
DevExtremeModule], exports: [FormComponent] });
|
|
2004
2085
|
FormModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: FormModule, imports: [CommonModule,
|
|
2005
|
-
DevUIModule,
|
|
2006
|
-
FormsModule,
|
|
2007
|
-
ReactiveFormsModule,
|
|
2008
2086
|
BoxContainerModule,
|
|
2009
2087
|
DevExtremeModule] });
|
|
2010
2088
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: FormModule, decorators: [{
|
|
@@ -2015,9 +2093,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
|
|
|
2015
2093
|
],
|
|
2016
2094
|
imports: [
|
|
2017
2095
|
CommonModule,
|
|
2018
|
-
DevUIModule,
|
|
2019
|
-
FormsModule,
|
|
2020
|
-
ReactiveFormsModule,
|
|
2021
2096
|
BoxContainerModule,
|
|
2022
2097
|
DevExtremeModule
|
|
2023
2098
|
],
|
|
@@ -2100,9 +2175,9 @@ class DrawerModule {
|
|
|
2100
2175
|
}
|
|
2101
2176
|
DrawerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: DrawerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2102
2177
|
DrawerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.7", ngImport: i0, type: DrawerModule, declarations: [DrawerComponent], imports: [CommonModule,
|
|
2103
|
-
|
|
2178
|
+
DevExtremeModule] });
|
|
2104
2179
|
DrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: DrawerModule, imports: [CommonModule,
|
|
2105
|
-
|
|
2180
|
+
DevExtremeModule] });
|
|
2106
2181
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: DrawerModule, decorators: [{
|
|
2107
2182
|
type: NgModule,
|
|
2108
2183
|
args: [{
|
|
@@ -2111,7 +2186,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
|
|
|
2111
2186
|
],
|
|
2112
2187
|
imports: [
|
|
2113
2188
|
CommonModule,
|
|
2114
|
-
|
|
2189
|
+
DevExtremeModule
|
|
2115
2190
|
]
|
|
2116
2191
|
}]
|
|
2117
2192
|
}] });
|
|
@@ -2154,7 +2229,7 @@ class DynamicParamsComponent {
|
|
|
2154
2229
|
}
|
|
2155
2230
|
}
|
|
2156
2231
|
DynamicParamsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: DynamicParamsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2157
|
-
DynamicParamsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: DynamicParamsComponent, selector: "rs-dynamic-params", inputs: { label: "label", params: "params" }, ngImport: i0, template: "<div class=\"dx-field\">\n <div class=\"dx-field-label\">\n <span>{{label || '\u52A8\u6001\u53C2\u6570'}}</span>\n <dx-button type=\"default\" stylingMode=\"text\" icon=\"coast-icon coast-icon-add\" (onClick)=\"add()\"></dx-button>\n </div>\n <div class=\"dx-field-value\">\n <div *ngFor=\"let param of params; let index = index\">\n <dx-text-box placeholder=\"\u53C2\u6570\u540D\" [(value)]=\"param.name\"></dx-text-box>\n <dx-text-box placeholder=\"\u53C2\u6570\u503C\" [(value)]=\"param.value\"></dx-text-box>\n <dx-button type=\"danger\" stylingMode=\"text\" icon=\"coast-icon coast-icon-close\"\n (onClick)=\"delete(index)\"></dx-button>\n </div>\n </div>\n</div>\n", styles: [":host .dx-field .dx-field-label{display:flex;align-items:center}:host .dx-field .dx-field-value div{display:flex;flex-flow:row nowrap}:host .dx-field .dx-field-value div dx-text-box{flex:1}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i4.DxButtonComponent, selector: "dx-button", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "icon", "rtlEnabled", "stylingMode", "tabIndex", "template", "text", "type", "useSubmitBehavior", "validationGroup", "visible", "width"], outputs: ["onClick", "onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "iconChange", "rtlEnabledChange", "stylingModeChange", "tabIndexChange", "templateChange", "textChange", "typeChange", "useSubmitBehaviorChange", "validationGroupChange", "visibleChange", "widthChange"] }, { kind: "component", type: i3$
|
|
2232
|
+
DynamicParamsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: DynamicParamsComponent, selector: "rs-dynamic-params", inputs: { label: "label", params: "params" }, ngImport: i0, template: "<div class=\"dx-field\">\n <div class=\"dx-field-label\">\n <span>{{label || '\u52A8\u6001\u53C2\u6570'}}</span>\n <dx-button type=\"default\" stylingMode=\"text\" icon=\"coast-icon coast-icon-add\" (onClick)=\"add()\"></dx-button>\n </div>\n <div class=\"dx-field-value\">\n <div *ngFor=\"let param of params; let index = index\">\n <dx-text-box placeholder=\"\u53C2\u6570\u540D\" [(value)]=\"param.name\"></dx-text-box>\n <dx-text-box placeholder=\"\u53C2\u6570\u503C\" [(value)]=\"param.value\"></dx-text-box>\n <dx-button type=\"danger\" stylingMode=\"text\" icon=\"coast-icon coast-icon-close\"\n (onClick)=\"delete(index)\"></dx-button>\n </div>\n </div>\n</div>\n", styles: [":host .dx-field .dx-field-label{display:flex;align-items:center}:host .dx-field .dx-field-value div{display:flex;flex-flow:row nowrap}:host .dx-field .dx-field-value div dx-text-box{flex:1}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i4.DxButtonComponent, selector: "dx-button", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "icon", "rtlEnabled", "stylingMode", "tabIndex", "template", "text", "type", "useSubmitBehavior", "validationGroup", "visible", "width"], outputs: ["onClick", "onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "iconChange", "rtlEnabledChange", "stylingModeChange", "tabIndexChange", "templateChange", "textChange", "typeChange", "useSubmitBehaviorChange", "validationGroupChange", "visibleChange", "widthChange"] }, { kind: "component", type: i3$2.DxTextBoxComponent, selector: "dx-text-box", inputs: ["accessKey", "activeStateEnabled", "buttons", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "inputAttr", "isValid", "label", "labelMode", "mask", "maskChar", "maskInvalidMessage", "maskRules", "maxLength", "mode", "name", "placeholder", "readOnly", "rtlEnabled", "showClearButton", "showMaskMode", "spellcheck", "stylingMode", "tabIndex", "text", "useMaskedValue", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "visible", "width"], outputs: ["onChange", "onContentReady", "onCopy", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onKeyDown", "onKeyUp", "onOptionChanged", "onPaste", "onValueChanged", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isValidChange", "labelChange", "labelModeChange", "maskChange", "maskCharChange", "maskInvalidMessageChange", "maskRulesChange", "maxLengthChange", "modeChange", "nameChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "showClearButtonChange", "showMaskModeChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useMaskedValueChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "visibleChange", "widthChange", "onBlur"] }] });
|
|
2158
2233
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: DynamicParamsComponent, decorators: [{
|
|
2159
2234
|
type: Component,
|
|
2160
2235
|
args: [{ selector: 'rs-dynamic-params', template: "<div class=\"dx-field\">\n <div class=\"dx-field-label\">\n <span>{{label || '\u52A8\u6001\u53C2\u6570'}}</span>\n <dx-button type=\"default\" stylingMode=\"text\" icon=\"coast-icon coast-icon-add\" (onClick)=\"add()\"></dx-button>\n </div>\n <div class=\"dx-field-value\">\n <div *ngFor=\"let param of params; let index = index\">\n <dx-text-box placeholder=\"\u53C2\u6570\u540D\" [(value)]=\"param.name\"></dx-text-box>\n <dx-text-box placeholder=\"\u53C2\u6570\u503C\" [(value)]=\"param.value\"></dx-text-box>\n <dx-button type=\"danger\" stylingMode=\"text\" icon=\"coast-icon coast-icon-close\"\n (onClick)=\"delete(index)\"></dx-button>\n </div>\n </div>\n</div>\n", styles: [":host .dx-field .dx-field-label{display:flex;align-items:center}:host .dx-field .dx-field-value div{display:flex;flex-flow:row nowrap}:host .dx-field .dx-field-value div dx-text-box{flex:1}\n"] }]
|
|
@@ -2168,10 +2243,8 @@ class DynamicParamsModule {
|
|
|
2168
2243
|
}
|
|
2169
2244
|
DynamicParamsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: DynamicParamsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2170
2245
|
DynamicParamsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.7", ngImport: i0, type: DynamicParamsModule, declarations: [DynamicParamsComponent], imports: [CommonModule,
|
|
2171
|
-
FormsModule,
|
|
2172
2246
|
DevExtremeModule], exports: [DynamicParamsComponent] });
|
|
2173
2247
|
DynamicParamsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: DynamicParamsModule, imports: [CommonModule,
|
|
2174
|
-
FormsModule,
|
|
2175
2248
|
DevExtremeModule] });
|
|
2176
2249
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: DynamicParamsModule, decorators: [{
|
|
2177
2250
|
type: NgModule,
|
|
@@ -2181,7 +2254,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
|
|
|
2181
2254
|
],
|
|
2182
2255
|
imports: [
|
|
2183
2256
|
CommonModule,
|
|
2184
|
-
FormsModule,
|
|
2185
2257
|
DevExtremeModule
|
|
2186
2258
|
],
|
|
2187
2259
|
exports: [
|
|
@@ -2254,6 +2326,92 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
|
|
|
2254
2326
|
}]
|
|
2255
2327
|
}] });
|
|
2256
2328
|
|
|
2329
|
+
class JavaEditorComponent {
|
|
2330
|
+
set code(code) {
|
|
2331
|
+
var _a;
|
|
2332
|
+
this._code = code || '';
|
|
2333
|
+
(_a = this._editor) === null || _a === void 0 ? void 0 : _a.setValue(this._code);
|
|
2334
|
+
}
|
|
2335
|
+
get code() {
|
|
2336
|
+
return this._code;
|
|
2337
|
+
}
|
|
2338
|
+
constructor(viewContainerRef) {
|
|
2339
|
+
this.viewContainerRef = viewContainerRef;
|
|
2340
|
+
this._code = '';
|
|
2341
|
+
this.codeChange = new EventEmitter();
|
|
2342
|
+
this.onContentReady = new EventEmitter();
|
|
2343
|
+
this.loading = true;
|
|
2344
|
+
}
|
|
2345
|
+
ngOnInit() {
|
|
2346
|
+
const baseUrl = './assets/monaco-editor/min/vs';
|
|
2347
|
+
const loaderScript = document.createElement('script');
|
|
2348
|
+
loaderScript.type = 'text/javascript';
|
|
2349
|
+
loaderScript.src = `${baseUrl}/loader.js`;
|
|
2350
|
+
loaderScript.addEventListener('load', () => {
|
|
2351
|
+
window.require.config({ paths: { 'vs': `${baseUrl}` } });
|
|
2352
|
+
window.require([`vs/editor/editor.main`], () => {
|
|
2353
|
+
this.initMonaco();
|
|
2354
|
+
});
|
|
2355
|
+
});
|
|
2356
|
+
document.body.appendChild(loaderScript);
|
|
2357
|
+
}
|
|
2358
|
+
initMonaco() {
|
|
2359
|
+
this._editor = monaco.editor.create(this.editorContainer.nativeElement, {
|
|
2360
|
+
value: this.code,
|
|
2361
|
+
language: 'java',
|
|
2362
|
+
automaticLayout: true,
|
|
2363
|
+
minimap: {
|
|
2364
|
+
enabled: false
|
|
2365
|
+
}
|
|
2366
|
+
});
|
|
2367
|
+
this._editor.onDidChangeModelContent((e) => {
|
|
2368
|
+
this.codeChange.emit(this._editor.getValue());
|
|
2369
|
+
});
|
|
2370
|
+
this.onContentReady.emit(this._editor);
|
|
2371
|
+
this.loading = false;
|
|
2372
|
+
}
|
|
2373
|
+
}
|
|
2374
|
+
JavaEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: JavaEditorComponent, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2375
|
+
JavaEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: JavaEditorComponent, selector: "rs-java-editor", inputs: { code: "code", consoleMessage: "consoleMessage" }, outputs: { codeChange: "codeChange", onContentReady: "onContentReady" }, viewQueries: [{ propertyName: "editorContainer", first: true, predicate: ["editorContainer"], descendants: true, static: true }], ngImport: i0, template: "<dx-load-panel [container]=\"viewContainerRef.element.nativeElement\" [showPane]=\"false\"\n [visible]=\"loading\">\n <dxo-position [of]=\"viewContainerRef.element.nativeElement\"></dxo-position>\n</dx-load-panel>\n<div class=\"editor-container\" #editorContainer></div>\n<div *ngIf=\"consoleMessage\" class=\"editor-console\">{{consoleMessage}}</div>\n", styles: [":host{display:flex;flex-flow:column nowrap}:host .editor-container{flex:1}:host .editor-console{flex:0 0 30px;padding:4px;border:1px solid var(--coast-border-color, #dddddd);background-color:var(--coast-empty-color, #d4d4d4)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6.DxLoadPanelComponent, selector: "dx-load-panel", inputs: ["animation", "closeOnOutsideClick", "container", "copyRootClassesToWrapper", "deferRendering", "delay", "elementAttr", "focusStateEnabled", "height", "hideOnOutsideClick", "hideOnParentScroll", "hint", "hoverStateEnabled", "indicatorSrc", "maxHeight", "maxWidth", "message", "minHeight", "minWidth", "position", "rtlEnabled", "shading", "shadingColor", "showIndicator", "showPane", "visible", "width", "wrapperAttr"], outputs: ["onContentReady", "onDisposing", "onHidden", "onHiding", "onInitialized", "onOptionChanged", "onShowing", "onShown", "animationChange", "closeOnOutsideClickChange", "containerChange", "copyRootClassesToWrapperChange", "deferRenderingChange", "delayChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hideOnOutsideClickChange", "hideOnParentScrollChange", "hintChange", "hoverStateEnabledChange", "indicatorSrcChange", "maxHeightChange", "maxWidthChange", "messageChange", "minHeightChange", "minWidthChange", "positionChange", "rtlEnabledChange", "shadingChange", "shadingColorChange", "showIndicatorChange", "showPaneChange", "visibleChange", "widthChange", "wrapperAttrChange"] }, { kind: "component", type: i5$1.DxoPositionComponent, selector: "dxo-position", inputs: ["at", "boundary", "boundaryOffset", "collision", "my", "of", "offset"] }] });
|
|
2376
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: JavaEditorComponent, decorators: [{
|
|
2377
|
+
type: Component,
|
|
2378
|
+
args: [{ selector: 'rs-java-editor', template: "<dx-load-panel [container]=\"viewContainerRef.element.nativeElement\" [showPane]=\"false\"\n [visible]=\"loading\">\n <dxo-position [of]=\"viewContainerRef.element.nativeElement\"></dxo-position>\n</dx-load-panel>\n<div class=\"editor-container\" #editorContainer></div>\n<div *ngIf=\"consoleMessage\" class=\"editor-console\">{{consoleMessage}}</div>\n", styles: [":host{display:flex;flex-flow:column nowrap}:host .editor-container{flex:1}:host .editor-console{flex:0 0 30px;padding:4px;border:1px solid var(--coast-border-color, #dddddd);background-color:var(--coast-empty-color, #d4d4d4)}\n"] }]
|
|
2379
|
+
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { code: [{
|
|
2380
|
+
type: Input
|
|
2381
|
+
}], codeChange: [{
|
|
2382
|
+
type: Output
|
|
2383
|
+
}], consoleMessage: [{
|
|
2384
|
+
type: Input
|
|
2385
|
+
}], onContentReady: [{
|
|
2386
|
+
type: Output
|
|
2387
|
+
}], editorContainer: [{
|
|
2388
|
+
type: ViewChild,
|
|
2389
|
+
args: ['editorContainer', { static: true }]
|
|
2390
|
+
}] } });
|
|
2391
|
+
|
|
2392
|
+
class JavaEditorModule {
|
|
2393
|
+
}
|
|
2394
|
+
JavaEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: JavaEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2395
|
+
JavaEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.7", ngImport: i0, type: JavaEditorModule, declarations: [JavaEditorComponent], imports: [CommonModule,
|
|
2396
|
+
DxLoadPanelModule], exports: [JavaEditorComponent] });
|
|
2397
|
+
JavaEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: JavaEditorModule, imports: [CommonModule,
|
|
2398
|
+
DxLoadPanelModule] });
|
|
2399
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: JavaEditorModule, decorators: [{
|
|
2400
|
+
type: NgModule,
|
|
2401
|
+
args: [{
|
|
2402
|
+
declarations: [
|
|
2403
|
+
JavaEditorComponent
|
|
2404
|
+
],
|
|
2405
|
+
imports: [
|
|
2406
|
+
CommonModule,
|
|
2407
|
+
DxLoadPanelModule
|
|
2408
|
+
],
|
|
2409
|
+
exports: [
|
|
2410
|
+
JavaEditorComponent
|
|
2411
|
+
]
|
|
2412
|
+
}]
|
|
2413
|
+
}] });
|
|
2414
|
+
|
|
2257
2415
|
class ModalComponent {
|
|
2258
2416
|
constructor(elementRef, changeDetectorRef) {
|
|
2259
2417
|
this.elementRef = elementRef;
|
|
@@ -2609,5 +2767,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
|
|
|
2609
2767
|
* Generated bundle index. Do not edit.
|
|
2610
2768
|
*/
|
|
2611
2769
|
|
|
2612
|
-
export { BoxContainerComponent, BoxContainerModule, DataDetailComponent, DataDetailModule, DataGridComponent, DataGridFactory, DataGridModule, DataGridService, DrawerComponent, DrawerModule, DrawerService, DynamicParamsComponent, DynamicParamsModule, FormComponent, FormModule, FormService, IconSelectorComponent, IconSelectorModule, InstanceLinkTemplateDirective, ItemConfigComponent, ItemStyleComponent, MasterDetailTemplateDirective, ModalComponent, ModalModule, ModalService, PluginManager, RowButtonsTemplateDirective, WebsocketModule, WebsocketService, notify_error, notify_success, notify_warning, validate, validate_group };
|
|
2770
|
+
export { BoxContainerComponent, BoxContainerModule, ChangeFilter, DataDetailComponent, DataDetailModule, DataGridComponent, DataGridFactory, DataGridModule, DataGridService, DrawerComponent, DrawerModule, DrawerService, DynamicParamsComponent, DynamicParamsModule, FormComponent, FormModule, FormService, IconSelectorComponent, IconSelectorModule, InstanceLinkTemplateDirective, ItemConfigComponent, ItemStyleComponent, JavaEditorComponent, JavaEditorModule, MasterDetailTemplateDirective, ModalComponent, ModalModule, ModalService, PluginManager, RowButtonsTemplateDirective, WebsocketModule, WebsocketService, notify_error, notify_success, notify_warning, validate, validate_group };
|
|
2613
2771
|
//# sourceMappingURL=ngx-rs-ant.mjs.map
|