raise-common-lib 0.0.202 → 0.0.204
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/bundles/raise-common-lib.umd.js +153 -100
- package/bundles/raise-common-lib.umd.js.map +1 -1
- package/bundles/raise-common-lib.umd.min.js +1 -1
- package/bundles/raise-common-lib.umd.min.js.map +1 -1
- package/esm2015/lib/form/drawer-form/drawer-form.component.js +1 -1
- package/esm2015/lib/layout/page-list/index.component.js +14 -2
- package/esm2015/lib/layout/rs-stepper/index.component.js +34 -9
- package/esm5/lib/form/drawer-form/drawer-form.component.js +1 -1
- package/esm5/lib/layout/page-list/index.component.js +18 -2
- package/esm5/lib/layout/rs-stepper/index.component.js +47 -9
- package/fesm2015/raise-common-lib.js +121 -85
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +153 -100
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/layout/page-list/index.component.d.ts +3 -0
- package/lib/layout/rs-stepper/index.component.d.ts +6 -3
- package/package.json +1 -1
- package/raise-common-lib.metadata.json +1 -1
|
@@ -2582,6 +2582,99 @@ if (false) {
|
|
|
2582
2582
|
TruncatedTextToggleComponent.prototype.showCollapseBtn;
|
|
2583
2583
|
}
|
|
2584
2584
|
|
|
2585
|
+
/**
|
|
2586
|
+
* @fileoverview added by tsickle
|
|
2587
|
+
* Generated from: lib/form/search-input/index.component.ts
|
|
2588
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2589
|
+
*/
|
|
2590
|
+
var SearchInputComponent = /** @class */ (function () {
|
|
2591
|
+
function SearchInputComponent() {
|
|
2592
|
+
this.placeholder = "";
|
|
2593
|
+
this.hanleSearch = new EventEmitter();
|
|
2594
|
+
this.handleInput = new EventEmitter();
|
|
2595
|
+
this.searchValue = "";
|
|
2596
|
+
}
|
|
2597
|
+
/**
|
|
2598
|
+
* @return {?}
|
|
2599
|
+
*/
|
|
2600
|
+
SearchInputComponent.prototype.ngOnInit = /**
|
|
2601
|
+
* @return {?}
|
|
2602
|
+
*/
|
|
2603
|
+
function () {
|
|
2604
|
+
var _this = this;
|
|
2605
|
+
this.getInfo();
|
|
2606
|
+
this.debouncedInput = debounce((/**
|
|
2607
|
+
* @return {?}
|
|
2608
|
+
*/
|
|
2609
|
+
function () {
|
|
2610
|
+
_this.onSeach();
|
|
2611
|
+
}), 300);
|
|
2612
|
+
};
|
|
2613
|
+
/**
|
|
2614
|
+
* @return {?}
|
|
2615
|
+
*/
|
|
2616
|
+
SearchInputComponent.prototype.getInfo = /**
|
|
2617
|
+
* @return {?}
|
|
2618
|
+
*/
|
|
2619
|
+
function () {
|
|
2620
|
+
this.translation = JSON.parse(localStorage.getItem("translation"));
|
|
2621
|
+
this.placeholder = this.placeholder || this.translation.SEARCH;
|
|
2622
|
+
};
|
|
2623
|
+
/**
|
|
2624
|
+
* @param {?} e
|
|
2625
|
+
* @return {?}
|
|
2626
|
+
*/
|
|
2627
|
+
SearchInputComponent.prototype.onInput = /**
|
|
2628
|
+
* @param {?} e
|
|
2629
|
+
* @return {?}
|
|
2630
|
+
*/
|
|
2631
|
+
function (e) {
|
|
2632
|
+
this.handleInput.emit(e.value);
|
|
2633
|
+
this.debouncedInput();
|
|
2634
|
+
};
|
|
2635
|
+
/**
|
|
2636
|
+
* @return {?}
|
|
2637
|
+
*/
|
|
2638
|
+
SearchInputComponent.prototype.onSeach = /**
|
|
2639
|
+
* @return {?}
|
|
2640
|
+
*/
|
|
2641
|
+
function () {
|
|
2642
|
+
this.hanleSearch.emit(this.searchValue);
|
|
2643
|
+
};
|
|
2644
|
+
SearchInputComponent.decorators = [
|
|
2645
|
+
{ type: Component, args: [{
|
|
2646
|
+
selector: "rs-search-input",
|
|
2647
|
+
template: "<div class=\"rs-search-input\">\r\n <ejs-textbox\r\n type=\"text\"\r\n class=\"e-input\"\r\n [(ngModel)]=\"searchValue\"\r\n (input)=\"onInput($event)\"\r\n [placeholder]=\"placeholder\"\r\n [showClearButton]=\"true\"\r\n autocomplete=\"off\"\r\n ></ejs-textbox>\r\n</div>\r\n",
|
|
2648
|
+
styles: [".rs-search-input{width:240px}.rs-search-input .e-textbox{display:block;box-shadow:none!important}.rs-search-input ::ng-deep .e-input-group{border-radius:14px!important}.rs-search-input ::ng-deep .e-input-group.e-input-focus,.rs-search-input ::ng-deep .e-input-group:hover{box-shadow:0 0 3px 0 rgba(31,123,255,.4)!important;border-color:var(--rs-input-hover-border-color)!important}.rs-search-input ::ng-deep .e-input-group.e-input-focus input.e-input,.rs-search-input ::ng-deep .e-input-group:hover input.e-input{box-shadow:none!important}.rs-search-input ::ng-deep .e-input-group input.e-input{width:calc(100% - 50px);height:24px!important;line-height:22px!important}.rs-search-input ::ng-deep .e-input-group input.e-input:hover{box-shadow:none!important}.rs-search-input ::ng-deep .e-input-group::before{content:\"\"!important;margin:5px 0 0 8px;display:block;width:16px;height:16px;background-image:url(/assets/img/search.svg);background-size:cover;background-position:center}"]
|
|
2649
|
+
}] }
|
|
2650
|
+
];
|
|
2651
|
+
/** @nocollapse */
|
|
2652
|
+
SearchInputComponent.ctorParameters = function () { return []; };
|
|
2653
|
+
SearchInputComponent.propDecorators = {
|
|
2654
|
+
placeholder: [{ type: Input }],
|
|
2655
|
+
hanleSearch: [{ type: Output }],
|
|
2656
|
+
handleInput: [{ type: Output }]
|
|
2657
|
+
};
|
|
2658
|
+
return SearchInputComponent;
|
|
2659
|
+
}());
|
|
2660
|
+
if (false) {
|
|
2661
|
+
/** @type {?} */
|
|
2662
|
+
SearchInputComponent.prototype.placeholder;
|
|
2663
|
+
/** @type {?} */
|
|
2664
|
+
SearchInputComponent.prototype.hanleSearch;
|
|
2665
|
+
/** @type {?} */
|
|
2666
|
+
SearchInputComponent.prototype.handleInput;
|
|
2667
|
+
/**
|
|
2668
|
+
* @type {?}
|
|
2669
|
+
* @private
|
|
2670
|
+
*/
|
|
2671
|
+
SearchInputComponent.prototype.debouncedInput;
|
|
2672
|
+
/** @type {?} */
|
|
2673
|
+
SearchInputComponent.prototype.searchValue;
|
|
2674
|
+
/** @type {?} */
|
|
2675
|
+
SearchInputComponent.prototype.translation;
|
|
2676
|
+
}
|
|
2677
|
+
|
|
2585
2678
|
/**
|
|
2586
2679
|
* @fileoverview added by tsickle
|
|
2587
2680
|
* Generated from: lib/layout/page-list/index.component.ts
|
|
@@ -2625,6 +2718,18 @@ var RsPageListComponent = /** @class */ (function () {
|
|
|
2625
2718
|
this.hasWholeToolbarSlot = !!this.wholeToolbarSlot;
|
|
2626
2719
|
this.hasLeftContentSlot = !!this.leftContentSlot;
|
|
2627
2720
|
};
|
|
2721
|
+
/**
|
|
2722
|
+
* @param {?} value
|
|
2723
|
+
* @return {?}
|
|
2724
|
+
*/
|
|
2725
|
+
RsPageListComponent.prototype.setSearchValue = /**
|
|
2726
|
+
* @param {?} value
|
|
2727
|
+
* @return {?}
|
|
2728
|
+
*/
|
|
2729
|
+
function (value) {
|
|
2730
|
+
this.searchInput.searchValue = value;
|
|
2731
|
+
this.onSeach(value);
|
|
2732
|
+
};
|
|
2628
2733
|
/**
|
|
2629
2734
|
* @param {?} value
|
|
2630
2735
|
* @return {?}
|
|
@@ -2659,6 +2764,7 @@ var RsPageListComponent = /** @class */ (function () {
|
|
|
2659
2764
|
orignGrid: [{ type: ContentChild, args: [GridComponent, { static: false },] }],
|
|
2660
2765
|
treeGrid: [{ type: ContentChild, args: [TreeGridComponent, { static: false },] }],
|
|
2661
2766
|
wholeToolbarSlot: [{ type: ContentChild, args: ["wholeToolbarSlot", { static: false },] }],
|
|
2767
|
+
searchInput: [{ type: ViewChild, args: ["searchInput", { static: false },] }],
|
|
2662
2768
|
leftContentSlot: [{ type: ContentChild, args: ["leftContentSlot", { static: false },] }],
|
|
2663
2769
|
pageTitle: [{ type: Input }],
|
|
2664
2770
|
customPageTitle: [{ type: Input }],
|
|
@@ -2678,6 +2784,8 @@ if (false) {
|
|
|
2678
2784
|
/** @type {?} */
|
|
2679
2785
|
RsPageListComponent.prototype.wholeToolbarSlot;
|
|
2680
2786
|
/** @type {?} */
|
|
2787
|
+
RsPageListComponent.prototype.searchInput;
|
|
2788
|
+
/** @type {?} */
|
|
2681
2789
|
RsPageListComponent.prototype.leftContentSlot;
|
|
2682
2790
|
/** @type {?} */
|
|
2683
2791
|
RsPageListComponent.prototype.pageTitle;
|
|
@@ -2811,99 +2919,6 @@ if (false) {
|
|
|
2811
2919
|
RsPageTabComponent.prototype.animation;
|
|
2812
2920
|
}
|
|
2813
2921
|
|
|
2814
|
-
/**
|
|
2815
|
-
* @fileoverview added by tsickle
|
|
2816
|
-
* Generated from: lib/form/search-input/index.component.ts
|
|
2817
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2818
|
-
*/
|
|
2819
|
-
var SearchInputComponent = /** @class */ (function () {
|
|
2820
|
-
function SearchInputComponent() {
|
|
2821
|
-
this.placeholder = "";
|
|
2822
|
-
this.hanleSearch = new EventEmitter();
|
|
2823
|
-
this.handleInput = new EventEmitter();
|
|
2824
|
-
this.searchValue = "";
|
|
2825
|
-
}
|
|
2826
|
-
/**
|
|
2827
|
-
* @return {?}
|
|
2828
|
-
*/
|
|
2829
|
-
SearchInputComponent.prototype.ngOnInit = /**
|
|
2830
|
-
* @return {?}
|
|
2831
|
-
*/
|
|
2832
|
-
function () {
|
|
2833
|
-
var _this = this;
|
|
2834
|
-
this.getInfo();
|
|
2835
|
-
this.debouncedInput = debounce((/**
|
|
2836
|
-
* @return {?}
|
|
2837
|
-
*/
|
|
2838
|
-
function () {
|
|
2839
|
-
_this.onSeach();
|
|
2840
|
-
}), 300);
|
|
2841
|
-
};
|
|
2842
|
-
/**
|
|
2843
|
-
* @return {?}
|
|
2844
|
-
*/
|
|
2845
|
-
SearchInputComponent.prototype.getInfo = /**
|
|
2846
|
-
* @return {?}
|
|
2847
|
-
*/
|
|
2848
|
-
function () {
|
|
2849
|
-
this.translation = JSON.parse(localStorage.getItem("translation"));
|
|
2850
|
-
this.placeholder = this.placeholder || this.translation.SEARCH;
|
|
2851
|
-
};
|
|
2852
|
-
/**
|
|
2853
|
-
* @param {?} e
|
|
2854
|
-
* @return {?}
|
|
2855
|
-
*/
|
|
2856
|
-
SearchInputComponent.prototype.onInput = /**
|
|
2857
|
-
* @param {?} e
|
|
2858
|
-
* @return {?}
|
|
2859
|
-
*/
|
|
2860
|
-
function (e) {
|
|
2861
|
-
this.handleInput.emit(e.value);
|
|
2862
|
-
this.debouncedInput();
|
|
2863
|
-
};
|
|
2864
|
-
/**
|
|
2865
|
-
* @return {?}
|
|
2866
|
-
*/
|
|
2867
|
-
SearchInputComponent.prototype.onSeach = /**
|
|
2868
|
-
* @return {?}
|
|
2869
|
-
*/
|
|
2870
|
-
function () {
|
|
2871
|
-
this.hanleSearch.emit(this.searchValue);
|
|
2872
|
-
};
|
|
2873
|
-
SearchInputComponent.decorators = [
|
|
2874
|
-
{ type: Component, args: [{
|
|
2875
|
-
selector: "rs-search-input",
|
|
2876
|
-
template: "<div class=\"rs-search-input\">\r\n <ejs-textbox\r\n type=\"text\"\r\n class=\"e-input\"\r\n [(ngModel)]=\"searchValue\"\r\n (input)=\"onInput($event)\"\r\n [placeholder]=\"placeholder\"\r\n [showClearButton]=\"true\"\r\n autocomplete=\"off\"\r\n ></ejs-textbox>\r\n</div>\r\n",
|
|
2877
|
-
styles: [".rs-search-input{width:240px}.rs-search-input .e-textbox{display:block;box-shadow:none!important}.rs-search-input ::ng-deep .e-input-group{border-radius:14px!important}.rs-search-input ::ng-deep .e-input-group.e-input-focus,.rs-search-input ::ng-deep .e-input-group:hover{box-shadow:0 0 3px 0 rgba(31,123,255,.4)!important;border-color:var(--rs-input-hover-border-color)!important}.rs-search-input ::ng-deep .e-input-group.e-input-focus input.e-input,.rs-search-input ::ng-deep .e-input-group:hover input.e-input{box-shadow:none!important}.rs-search-input ::ng-deep .e-input-group input.e-input{width:calc(100% - 50px);height:24px!important;line-height:22px!important}.rs-search-input ::ng-deep .e-input-group input.e-input:hover{box-shadow:none!important}.rs-search-input ::ng-deep .e-input-group::before{content:\"\"!important;margin:5px 0 0 8px;display:block;width:16px;height:16px;background-image:url(/assets/img/search.svg);background-size:cover;background-position:center}"]
|
|
2878
|
-
}] }
|
|
2879
|
-
];
|
|
2880
|
-
/** @nocollapse */
|
|
2881
|
-
SearchInputComponent.ctorParameters = function () { return []; };
|
|
2882
|
-
SearchInputComponent.propDecorators = {
|
|
2883
|
-
placeholder: [{ type: Input }],
|
|
2884
|
-
hanleSearch: [{ type: Output }],
|
|
2885
|
-
handleInput: [{ type: Output }]
|
|
2886
|
-
};
|
|
2887
|
-
return SearchInputComponent;
|
|
2888
|
-
}());
|
|
2889
|
-
if (false) {
|
|
2890
|
-
/** @type {?} */
|
|
2891
|
-
SearchInputComponent.prototype.placeholder;
|
|
2892
|
-
/** @type {?} */
|
|
2893
|
-
SearchInputComponent.prototype.hanleSearch;
|
|
2894
|
-
/** @type {?} */
|
|
2895
|
-
SearchInputComponent.prototype.handleInput;
|
|
2896
|
-
/**
|
|
2897
|
-
* @type {?}
|
|
2898
|
-
* @private
|
|
2899
|
-
*/
|
|
2900
|
-
SearchInputComponent.prototype.debouncedInput;
|
|
2901
|
-
/** @type {?} */
|
|
2902
|
-
SearchInputComponent.prototype.searchValue;
|
|
2903
|
-
/** @type {?} */
|
|
2904
|
-
SearchInputComponent.prototype.translation;
|
|
2905
|
-
}
|
|
2906
|
-
|
|
2907
2922
|
/**
|
|
2908
2923
|
* @fileoverview added by tsickle
|
|
2909
2924
|
* Generated from: lib/layout/grid-box/index.component.ts
|
|
@@ -21725,11 +21740,15 @@ var RSStepperComponent = /** @class */ (function () {
|
|
|
21725
21740
|
this.steps = [];
|
|
21726
21741
|
this.currentStep = 0;
|
|
21727
21742
|
this.stepClick = new EventEmitter();
|
|
21743
|
+
this.unlockedStep = 0; //已解锁的最大步骤
|
|
21728
21744
|
}
|
|
21745
|
+
//已解锁的最大步骤
|
|
21729
21746
|
/**
|
|
21730
21747
|
* @return {?}
|
|
21731
21748
|
*/
|
|
21732
|
-
RSStepperComponent.prototype.ngOnInit =
|
|
21749
|
+
RSStepperComponent.prototype.ngOnInit =
|
|
21750
|
+
//已解锁的最大步骤
|
|
21751
|
+
/**
|
|
21733
21752
|
* @return {?}
|
|
21734
21753
|
*/
|
|
21735
21754
|
function () {
|
|
@@ -21741,6 +21760,37 @@ var RSStepperComponent = /** @class */ (function () {
|
|
|
21741
21760
|
function (step) {
|
|
21742
21761
|
step.displayTitle = _this.cf.setMiddleEllipsis(step.label, 132, 12);
|
|
21743
21762
|
}));
|
|
21763
|
+
this.syncUnlockedStep();
|
|
21764
|
+
};
|
|
21765
|
+
/**
|
|
21766
|
+
* @param {?} changes
|
|
21767
|
+
* @return {?}
|
|
21768
|
+
*/
|
|
21769
|
+
RSStepperComponent.prototype.ngOnChanges = /**
|
|
21770
|
+
* @param {?} changes
|
|
21771
|
+
* @return {?}
|
|
21772
|
+
*/
|
|
21773
|
+
function (changes) {
|
|
21774
|
+
if (changes["currentStep"] && !changes["currentStep"].firstChange) {
|
|
21775
|
+
this.syncUnlockedStep();
|
|
21776
|
+
}
|
|
21777
|
+
};
|
|
21778
|
+
// 同步unlockedStep的最大值
|
|
21779
|
+
// 同步unlockedStep的最大值
|
|
21780
|
+
/**
|
|
21781
|
+
* @private
|
|
21782
|
+
* @return {?}
|
|
21783
|
+
*/
|
|
21784
|
+
RSStepperComponent.prototype.syncUnlockedStep =
|
|
21785
|
+
// 同步unlockedStep的最大值
|
|
21786
|
+
/**
|
|
21787
|
+
* @private
|
|
21788
|
+
* @return {?}
|
|
21789
|
+
*/
|
|
21790
|
+
function () {
|
|
21791
|
+
if (this.currentStep > this.unlockedStep) {
|
|
21792
|
+
this.unlockedStep = this.currentStep;
|
|
21793
|
+
}
|
|
21744
21794
|
};
|
|
21745
21795
|
/**
|
|
21746
21796
|
* @param {?} step
|
|
@@ -21751,16 +21801,16 @@ var RSStepperComponent = /** @class */ (function () {
|
|
|
21751
21801
|
* @return {?}
|
|
21752
21802
|
*/
|
|
21753
21803
|
function (step) {
|
|
21754
|
-
if (step.step
|
|
21804
|
+
if (step.step <= this.unlockedStep) {
|
|
21755
21805
|
this.currentStep = step.step;
|
|
21756
21806
|
this.stepClick.emit(step);
|
|
21757
21807
|
}
|
|
21758
21808
|
};
|
|
21759
21809
|
RSStepperComponent.decorators = [
|
|
21760
21810
|
{ type: Component, args: [{
|
|
21761
|
-
selector:
|
|
21762
|
-
template: "<div class=\"rs-stepper\">\r\n <div class=\"steps-wrap\">\r\n <ng-container *ngFor=\"let item of steps\">\r\n <div\r\n class=\"step\"\r\n [ngClass]=\"{\r\n done: item.step
|
|
21763
|
-
styles: [".rs-stepper{font-family:Arial;width:100%;border-bottom:1px solid var(--rs-border-color)}.rs-stepper .steps-wrap{display:flex;align-items:center;justify-content:space-between;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin:0 auto;gap:8px}.rs-stepper .steps-wrap .step{flex:1
|
|
21811
|
+
selector: "rs-stepper",
|
|
21812
|
+
template: "<div class=\"rs-stepper\">\r\n <div class=\"steps-wrap\">\r\n <ng-container *ngFor=\"let item of steps\">\r\n <div\r\n class=\"step\"\r\n [ngClass]=\"{\r\n done: item.step <= unlockedStep,\r\n active: item.step === currentStep\r\n }\"\r\n (click)=\"onStepClick(item)\"\r\n >\r\n <div\r\n class=\"step-label\"\r\n [matTooltip]=\"item.label !== item.displayTitle ? item.label : ''\"\r\n matTooltipPosition=\"above\"\r\n >\r\n {{ item.displayTitle }}\r\n </div>\r\n </div>\r\n <div class=\"step-arrow\" *ngIf=\"item.step !== steps.length - 1\">\r\n <img src=\"/assets/img/step-arrow.svg\" />\r\n </div>\r\n </ng-container>\r\n </div>\r\n</div>\r\n",
|
|
21813
|
+
styles: [".rs-stepper{font-family:Arial;width:100%;border-bottom:1px solid var(--rs-border-color)}.rs-stepper .steps-wrap{display:flex;align-items:center;justify-content:space-between;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin:0 auto;gap:8px}.rs-stepper .steps-wrap .step{flex:1}.rs-stepper .steps-wrap .step .step-label{color:var(--rs-labels-color);font-size:12px;font-weight:400;line-height:22px;text-align:center;white-space:nowrap;padding:0 12px 12px}.rs-stepper .steps-wrap .step.done{cursor:pointer}.rs-stepper .steps-wrap .step.done .step-label{color:var(--rs-active-labels-color)}.rs-stepper .steps-wrap .step.active .step-label{color:var(--rs-active-labels-color);font-weight:700;border-bottom:1px solid var(--rs-active-labels-color)}.rs-stepper .steps-wrap .step-arrow{padding:4px;align-self:flex-start}"]
|
|
21764
21814
|
}] }
|
|
21765
21815
|
];
|
|
21766
21816
|
/** @nocollapse */
|
|
@@ -21770,7 +21820,8 @@ var RSStepperComponent = /** @class */ (function () {
|
|
|
21770
21820
|
RSStepperComponent.propDecorators = {
|
|
21771
21821
|
steps: [{ type: Input }],
|
|
21772
21822
|
currentStep: [{ type: Input }],
|
|
21773
|
-
stepClick: [{ type: Output }]
|
|
21823
|
+
stepClick: [{ type: Output }],
|
|
21824
|
+
unlockedStep: [{ type: Input }]
|
|
21774
21825
|
};
|
|
21775
21826
|
return RSStepperComponent;
|
|
21776
21827
|
}());
|
|
@@ -21782,6 +21833,8 @@ if (false) {
|
|
|
21782
21833
|
/** @type {?} */
|
|
21783
21834
|
RSStepperComponent.prototype.stepClick;
|
|
21784
21835
|
/** @type {?} */
|
|
21836
|
+
RSStepperComponent.prototype.unlockedStep;
|
|
21837
|
+
/** @type {?} */
|
|
21785
21838
|
RSStepperComponent.prototype.cf;
|
|
21786
21839
|
}
|
|
21787
21840
|
|
|
@@ -23106,7 +23159,7 @@ var DrawerFormComponent = /** @class */ (function () {
|
|
|
23106
23159
|
{ type: Component, args: [{
|
|
23107
23160
|
selector: "rs-drawer-form",
|
|
23108
23161
|
template: "<div #drawerFormEl class=\"rs-drawer-form-container\">\r\n <div class=\"section-container\">\r\n <div #sectionEl class=\"section-item\" *ngFor=\"let section of sections\">\r\n <input\r\n type=\"checkbox\"\r\n class=\"section-expand-checkbox\"\r\n *ngIf=\"section.title\"\r\n />\r\n <div class=\"section-title\" *ngIf=\"section.title\">\r\n <span>{{ section.title }}</span>\r\n </div>\r\n <div class=\"section-form\" *ngIf=\"!section.customKey\">\r\n <div\r\n class=\"form-item\"\r\n *ngFor=\"let field of section.fields\"\r\n [attr.data-required]=\"field.required ? 'yes' : 'no'\"\r\n [attr.data-disabled]=\"field.disabled || formDisabled ? 'yes' : 'no'\"\r\n [attr.data-error]=\"\r\n fieldValidMap[field.formKey] === false ? 'yes' : 'no'\r\n \"\r\n >\r\n <div class=\"form-label\">\r\n <span>{{ field.label }}</span>\r\n <ejs-tooltip\r\n class=\"form-tooltip\"\r\n cssClass=\"rs-drawer-tooltip\"\r\n *ngIf=\"field.tooltip\"\r\n position=\"RightCenter\"\r\n [content]=\"field.tooltip\"\r\n >\r\n <span class=\"tooltip-icon\"></span>\r\n </ejs-tooltip>\r\n </div>\r\n <div class=\"form-content\">\r\n <!-- Radio -->\r\n <rs-radio-group\r\n *ngIf=\"field.fieldFormType === 'Radio'\"\r\n [value]=\"form[field.formKey]\"\r\n [dataSource]=\"getOptions(field)\"\r\n [fields]=\"getOptionFields(field)\"\r\n [disabled]=\"getDisabled(field)\"\r\n [error]=\"fieldValidMap[field.formKey] === false\"\r\n (valueChange)=\"onChange($event, field)\"\r\n ></rs-radio-group>\r\n <!-- Checkbox -->\r\n <rs-checkbox-group\r\n *ngIf=\"field.fieldFormType === 'Checkbox'\"\r\n [value]=\"form[field.formKey]\"\r\n [dataSource]=\"getOptions(field)\"\r\n [fields]=\"getOptionFields(field)\"\r\n [disabled]=\"getDisabled(field)\"\r\n [error]=\"fieldValidMap[field.formKey] === false\"\r\n (valueChange)=\"onChange($event, field)\"\r\n ></rs-checkbox-group>\r\n <!-- Switch -->\r\n <rs-switch-input\r\n *ngIf=\"field.fieldFormType === 'Switch'\"\r\n [value]=\"form[field.formKey]\"\r\n [disabled]=\"getDisabled(field)\"\r\n (valueChange)=\"onChange($event, field)\"\r\n ></rs-switch-input>\r\n <!-- Input -->\r\n <input\r\n class=\"e-input\"\r\n *ngIf=\"\r\n field.fieldFormType === 'Text' ||\r\n field.fieldFormType === 'Email'\r\n \"\r\n [value]=\"form[field.formKey]\"\r\n [disabled]=\"getDisabled(field)\"\r\n [required]=\"field.required\"\r\n [attr.maxlength]=\"field.maxlength\"\r\n [attr.minlength]=\"field.minlength\"\r\n [class.error]=\"fieldValidMap[field.formKey] === false\"\r\n (input)=\"onInput($event.target.value, field)\"\r\n (change)=\"onChange($event.target.value, field)\"\r\n (focus)=\"onFocus(field)\"\r\n (blur)=\"onBlur(field)\"\r\n autocomplete=\"off\"\r\n />\r\n <!-- Textarea -->\r\n <textarea\r\n class=\"e-input\"\r\n *ngIf=\"field.fieldFormType === 'Textarea'\"\r\n [value]=\"form[field.formKey]\"\r\n [disabled]=\"getDisabled(field)\"\r\n [required]=\"field.required\"\r\n [attr.maxlength]=\"field.maxlength\"\r\n [attr.minlength]=\"field.minlength\"\r\n [class.error]=\"fieldValidMap[field.formKey] === false\"\r\n (input)=\"onInput($event.target.value, field)\"\r\n (change)=\"onChange($event.target.value, field)\"\r\n (focus)=\"onFocus(field)\"\r\n (blur)=\"onBlur(field)\"\r\n autocomplete=\"off\"\r\n rows=\"3\"\r\n ></textarea>\r\n <!-- Number Input -->\r\n <ejs-numerictextbox\r\n *ngIf=\"field.fieldFormType === 'Number'\"\r\n [value]=\"form[field.formKey]\"\r\n [max]=\"field.max\"\r\n [min]=\"field.min\"\r\n [step]=\"field.step\"\r\n [decimals]=\"field.decimals\"\r\n [format]=\"field.format || numberFormat\"\r\n [enabled]=\"!getDisabled(field)\"\r\n [class.error]=\"fieldValidMap[field.formKey] === false\"\r\n (change)=\"onComponentChange($event, field)\"\r\n (focus)=\"onFocus(field)\"\r\n (blur)=\"onBlur(field)\"\r\n ></ejs-numerictextbox>\r\n <!-- Tags Input -->\r\n <rs-tag-input\r\n *ngIf=\"field.fieldFormType === 'Tags'\"\r\n [value]=\"form[field.formKey]\"\r\n [fields]=\"getOptionFields(field)\"\r\n [inputMaxlength]=\"field.maxlength\"\r\n [inputMinlength]=\"field.minlength\"\r\n [disabled]=\"getDisabled(field)\"\r\n [error]=\"fieldValidMap[field.formKey] === false\"\r\n (valueChange)=\"onChange($event, field)\"\r\n (focus)=\"onFocus(field)\"\r\n (blur)=\"onBlur(field)\"\r\n ></rs-tag-input>\r\n <!-- AutoComplete -->\r\n <ejs-autocomplete\r\n *ngIf=\"field.fieldFormType === 'AutoComplete'\"\r\n [value]=\"form[field.formKey]\"\r\n [dataSource]=\"getOptions(field)\"\r\n [fields]=\"getOptionFields(field)\"\r\n [enabled]=\"!getDisabled(field)\"\r\n [class.error]=\"fieldValidMap[field.formKey] === false\"\r\n (filtering)=\"onFiltering($event, field)\"\r\n (change)=\"onComponentChange($event, field)\"\r\n (focus)=\"onFocus(field)\"\r\n (blur)=\"onBlur(field)\"\r\n ></ejs-autocomplete>\r\n <!-- Dropdown -->\r\n <ejs-dropdownlist\r\n #dropdown\r\n *ngIf=\"field.fieldFormType === 'Dropdown'\"\r\n [value]=\"form[field.formKey]\"\r\n [dataSource]=\"getOptions(field)\"\r\n [fields]=\"getOptionFields(field)\"\r\n [allowFiltering]=\"true\"\r\n [showClearButton]=\"true\"\r\n [enabled]=\"!getDisabled(field)\"\r\n [class.error]=\"fieldValidMap[field.formKey] === false\"\r\n (filtering)=\"onFiltering($event, field)\"\r\n (dataBound)=\"onDropdownDataBound($event, field)\"\r\n (change)=\"onComponentChange($event, field)\"\r\n (focus)=\"onFocus(field)\"\r\n (blur)=\"onBlur(field)\"\r\n ></ejs-dropdownlist>\r\n <!-- MultiSelect -->\r\n <ejs-multiselect\r\n *ngIf=\"field.fieldFormType === 'MultiSelect'\"\r\n mode=\"CheckBox\"\r\n [ngModel]=\"form[field.formKey]\"\r\n [dataSource]=\"getOptions(field)\"\r\n [fields]=\"getOptionFields(field)\"\r\n [allowFiltering]=\"true\"\r\n [showDropDownIcon]=\"true\"\r\n [enabled]=\"!getDisabled(field)\"\r\n [class.error]=\"fieldValidMap[field.formKey] === false\"\r\n (filtering)=\"onFiltering($event, field)\"\r\n (change)=\"onComponentChange($event, field)\"\r\n (focus)=\"onFocus(field)\"\r\n (blur)=\"onBlur(field)\"\r\n >\r\n </ejs-multiselect>\r\n <!-- Datepicker -->\r\n <ejs-datepicker\r\n *ngIf=\"field.fieldFormType === 'Datepicker'\"\r\n [(value)]=\"dateForm[field.formKey]\"\r\n [format]=\"field.format || dateFormat\"\r\n [enabled]=\"!getDisabled(field)\"\r\n [class.error]=\"\r\n fieldValidMap[field.formKey] === false ||\r\n dateValidMap[field.formKey] === false\r\n \"\r\n (change)=\"onComponentChange($event, field)\"\r\n (focus)=\"onFocus(field)\"\r\n (blur)=\"onDatePickerBlur($event, field)\"\r\n ></ejs-datepicker>\r\n <ng-template\r\n #customTemplateContainer\r\n *ngIf=\"field.fieldFormType === 'Custom'\"\r\n ></ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"section-form\" *ngIf=\"section.customKey\">\r\n <ng-template #customSectionContainer></ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"sections.length > 1 && showAnchor\" class=\"anchor-container\">\r\n <div\r\n class=\"anchor-item\"\r\n *ngFor=\"let section of sections; let index = index\"\r\n [style.display]=\"section.title ? 'block' : 'none'\"\r\n [attr.data-active]=\"scrollIndex === index ? 'yes' : 'no'\"\r\n [attr.data-content]=\"section.title\"\r\n (click)=\"onClickAnchor(index)\"\r\n ></div>\r\n </div>\r\n</div>\r\n",
|
|
23109
|
-
styles: [":host{display:block;margin-top:16px}.rs-drawer-form-container{display:flex;flex-flow:row nowrap;align-items:flex-start;gap:32px}.rs-drawer-form-container .section-container{
|
|
23162
|
+
styles: [":host{display:block;margin-top:16px}.rs-drawer-form-container{display:flex;flex-flow:row nowrap;align-items:flex-start;gap:32px}.rs-drawer-form-container .section-container{display:flex;flex-flow:column nowrap;max-width:1576px;flex:1;width:0}.rs-drawer-form-container .section-item{position:relative}.rs-drawer-form-container .section-item:not(:first-child){border-top:1px solid #eaedf0}.rs-drawer-form-container .section-expand-checkbox{display:block;width:100%;height:28px;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;position:absolute;top:0;left:0}.rs-drawer-form-container .section-expand-checkbox:checked+.section-title::before{transform:rotate(-90deg)}.rs-drawer-form-container .section-expand-checkbox:checked+.section-title+.section-form{max-height:0;overflow:hidden}.rs-drawer-form-container .section-title{padding:6px 0;margin-bottom:12px;color:#44566c;font-family:Arial;font-size:13px;font-style:normal;font-weight:700;line-height:16px;display:flex;flex-flow:row nowrap;align-items:center;pointer-events:none}.rs-drawer-form-container .section-title::before{content:url(../../assets/img/down-arrow.svg);display:block;height:16px;width:16px;margin-right:8px}.rs-drawer-form-container .section-form{display:flex;flex-flow:row wrap;justify-content:space-between;gap:12px 56px;max-width:1576px;padding:0 24px;margin-bottom:20px}.rs-drawer-form-container .section-form .form-item{min-height:28px;min-width:400px;max-width:700px;width:calc((100% - 56px)/ 2);display:flex;flex-flow:row nowrap;justify-content:flex-start;align-items:flex-start}.rs-drawer-form-container .section-form .form-item[data-required=yes] .form-label>span:first-child::after{content:\"*\";color:var(--rs-input-require-label-color)}.rs-drawer-form-container .section-form .form-item .form-label{flex:none;width:144px;height:28px;margin-right:16px;color:#43566c;font-family:Arial;font-size:12px;font-style:normal;font-weight:400;line-height:14px;display:flex;flex-flow:row nowrap;align-items:center}.rs-drawer-form-container .section-form .form-item .form-label .form-tooltip{margin-left:4px}.rs-drawer-form-container .section-form .form-item .form-label .form-tooltip .tooltip-icon::before{content:\" \";display:block;width:14px;height:14px;background-image:url(../../assets/img/tooltip-icon.svg);background-size:contain;cursor:pointer}.rs-drawer-form-container .section-form .form-item .form-content{flex:auto}@media (max-width:1420px){.rs-drawer-form-container .section-form .form-item{width:100%}}.rs-drawer-form-container .anchor-container{flex:none;display:flex;flex-flow:column nowrap;gap:4px;min-width:120px;height:auto;position:-webkit-sticky;position:sticky;top:56px}.rs-drawer-form-container .anchor-item{min-width:120px;padding:4px 12px;border-left:1px solid #eaedf0;cursor:pointer;color:#44566c;font-family:Arial;font-size:11px;font-style:normal;font-weight:400;line-height:16px;position:relative}.rs-drawer-form-container .anchor-item::before{content:attr(data-content);color:#44566c;font-weight:400;position:absolute;left:12px}.rs-drawer-form-container .anchor-item::after{content:attr(data-content);visibility:hidden;color:#1364b3;font-weight:700}.rs-drawer-form-container .anchor-item[data-active=yes]{border-color:#1f7bff}.rs-drawer-form-container .anchor-item[data-active=yes]::before{visibility:hidden}.rs-drawer-form-container .anchor-item[data-active=yes]::after{visibility:visible}.rs-drawer-tooltip.e-tooltip-wrap{border:none;background-color:#44566c}.rs-drawer-tooltip.e-tooltip-wrap .e-arrow-tip{height:4px;visibility:hidden}"]
|
|
23110
23163
|
}] }
|
|
23111
23164
|
];
|
|
23112
23165
|
/** @nocollapse */
|