raise-common-lib 0.0.170 → 0.0.171
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 +70 -41
- 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/confirm-select/index.component.js +2 -1
- package/esm2015/lib/form/drawer-form/drawer-form.component.js +50 -22
- package/esm2015/lib/layout/drawer/index.component.js +6 -7
- package/esm2015/lib/service/drawer.service.js +3 -14
- package/esm5/lib/form/confirm-select/index.component.js +2 -1
- package/esm5/lib/form/drawer-form/drawer-form.component.js +60 -21
- package/esm5/lib/layout/drawer/index.component.js +6 -7
- package/esm5/lib/service/drawer.service.js +3 -15
- package/fesm2015/raise-common-lib.js +58 -39
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +68 -39
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/form/drawer-form/drawer-form.component.d.ts +6 -4
- package/lib/layout/drawer/index.component.d.ts +1 -2
- package/lib/service/drawer.service.d.ts +0 -1
- package/package.json +1 -1
- package/raise-common-lib.metadata.json +1 -1
|
@@ -2,7 +2,7 @@ import { __assign, __awaiter, __generator, __decorate, __metadata, __read, __val
|
|
|
2
2
|
import { EventEmitter, Component, ChangeDetectorRef, ViewChild, Input, Output, HostBinding, Injectable, ɵɵdefineInjectable, Inject, ɵɵinject, ContentChild, HostListener, ComponentFactoryResolver, ViewContainerRef, ViewChildren, ElementRef, NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
3
3
|
import { GridComponent, GridModule, PagerModule, GridAllModule, PageService, RowDDService, SortService, FilterService, ExcelExportService, EditService, ResizeService, ToolbarService, ColumnChooserService, AggregateService, ColumnMenuService, DetailRowService, SelectionService, GroupService } from '@syncfusion/ej2-angular-grids';
|
|
4
4
|
import { times, debounce } from 'lodash';
|
|
5
|
-
import { Subject
|
|
5
|
+
import { Subject } from 'rxjs';
|
|
6
6
|
import { MAT_SNACK_BAR_DATA, MatSnackBar, MatSnackBarModule } from '@angular/material/snack-bar';
|
|
7
7
|
import { MAT_DIALOG_DATA, MatDialogRef, MatDialog, MatDialogModule } from '@angular/material/dialog';
|
|
8
8
|
import { TreeGridComponent } from '@syncfusion/ej2-angular-treegrid';
|
|
@@ -13,11 +13,12 @@ import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
|
|
|
13
13
|
import { HttpClient, HttpClientModule } from '@angular/common/http';
|
|
14
14
|
import { setCulture, L10n } from '@syncfusion/ej2-base';
|
|
15
15
|
import ResizeObserver from 'resize-observer-polyfill';
|
|
16
|
-
import { DatePipe, CommonModule } from '@angular/common';
|
|
17
16
|
import { Query } from '@syncfusion/ej2-data';
|
|
17
|
+
import moment from 'moment';
|
|
18
18
|
import { MatIconRegistry, MatIconModule } from '@angular/material/icon';
|
|
19
19
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
20
20
|
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
21
|
+
import { CommonModule } from '@angular/common';
|
|
21
22
|
import { SwitchModule, CheckBoxModule, RadioButtonModule, ButtonModule } from '@syncfusion/ej2-angular-buttons';
|
|
22
23
|
import { DiagramModule } from '@syncfusion/ej2-angular-diagrams';
|
|
23
24
|
import { TooltipModule, DialogModule } from '@syncfusion/ej2-angular-popups';
|
|
@@ -2925,16 +2926,10 @@ var DrawerService = /** @class */ (function () {
|
|
|
2925
2926
|
* @return {?}
|
|
2926
2927
|
*/
|
|
2927
2928
|
function (component) {
|
|
2928
|
-
var _this = this;
|
|
2929
2929
|
if (this.uniqueDrawerComponent) {
|
|
2930
2930
|
this.removeDrawer();
|
|
2931
2931
|
}
|
|
2932
2932
|
this.uniqueDrawerComponent = component;
|
|
2933
|
-
this.openedSubscription = component.$isOpened.subscribe((/**
|
|
2934
|
-
* @param {?} value
|
|
2935
|
-
* @return {?}
|
|
2936
|
-
*/
|
|
2937
|
-
function (value) { return !value && _this.hide(); }));
|
|
2938
2933
|
this.listenRouterChange();
|
|
2939
2934
|
};
|
|
2940
2935
|
/**
|
|
@@ -2944,9 +2939,7 @@ var DrawerService = /** @class */ (function () {
|
|
|
2944
2939
|
* @return {?}
|
|
2945
2940
|
*/
|
|
2946
2941
|
function () {
|
|
2947
|
-
this.openedSubscription && this.openedSubscription.unsubscribe();
|
|
2948
2942
|
this.routerSubscription && this.routerSubscription.unsubscribe();
|
|
2949
|
-
this.openedSubscription = null;
|
|
2950
2943
|
this.routerSubscription = null;
|
|
2951
2944
|
this.uniqueDrawerComponent = null;
|
|
2952
2945
|
};
|
|
@@ -2971,7 +2964,7 @@ var DrawerService = /** @class */ (function () {
|
|
|
2971
2964
|
var drawer = this.uniqueDrawerComponent;
|
|
2972
2965
|
if (!this.checkChange("show", { component: component, config: config, data: data }) ||
|
|
2973
2966
|
!drawer ||
|
|
2974
|
-
drawer
|
|
2967
|
+
drawer.isOpened) {
|
|
2975
2968
|
return {
|
|
2976
2969
|
instance: null,
|
|
2977
2970
|
result: null,
|
|
@@ -3043,6 +3036,7 @@ var DrawerService = /** @class */ (function () {
|
|
|
3043
3036
|
/** @type {?} */
|
|
3044
3037
|
var drawer = this.uniqueDrawerComponent;
|
|
3045
3038
|
drawer && drawer.deleteCache(cacheKey);
|
|
3039
|
+
this.resultPromiseResolveMap.delete(cacheKey);
|
|
3046
3040
|
};
|
|
3047
3041
|
/**
|
|
3048
3042
|
* @param {?} callback
|
|
@@ -3113,11 +3107,6 @@ if (false) {
|
|
|
3113
3107
|
* @private
|
|
3114
3108
|
*/
|
|
3115
3109
|
DrawerService.prototype.resultPromiseResolveMap;
|
|
3116
|
-
/**
|
|
3117
|
-
* @type {?}
|
|
3118
|
-
* @private
|
|
3119
|
-
*/
|
|
3120
|
-
DrawerService.prototype.openedSubscription;
|
|
3121
3110
|
/**
|
|
3122
3111
|
* @type {?}
|
|
3123
3112
|
* @private
|
|
@@ -3734,7 +3723,7 @@ var DrawerComponent = /** @class */ (function () {
|
|
|
3734
3723
|
this.service = service;
|
|
3735
3724
|
this.config = DefaultDrawerConfig;
|
|
3736
3725
|
this.useTransition = "yes";
|
|
3737
|
-
this
|
|
3726
|
+
this.isOpened = false;
|
|
3738
3727
|
this.hiddenDrawer = true;
|
|
3739
3728
|
this.componentRefMap = new Map();
|
|
3740
3729
|
}
|
|
@@ -3970,7 +3959,7 @@ var DrawerComponent = /** @class */ (function () {
|
|
|
3970
3959
|
*/
|
|
3971
3960
|
function (isOpen, useTransition) {
|
|
3972
3961
|
if (useTransition === void 0) { useTransition = false; }
|
|
3973
|
-
this
|
|
3962
|
+
this.isOpened = isOpen;
|
|
3974
3963
|
this.useTransition = useTransition ? "yes" : "no";
|
|
3975
3964
|
this.hiddenDrawer = !isOpen && !useTransition;
|
|
3976
3965
|
};
|
|
@@ -3981,14 +3970,14 @@ var DrawerComponent = /** @class */ (function () {
|
|
|
3981
3970
|
* @return {?}
|
|
3982
3971
|
*/
|
|
3983
3972
|
function () {
|
|
3984
|
-
if (
|
|
3973
|
+
if (this.isOpened) {
|
|
3985
3974
|
this.hiddenDrawer = true;
|
|
3986
3975
|
}
|
|
3987
3976
|
};
|
|
3988
3977
|
DrawerComponent.decorators = [
|
|
3989
3978
|
{ type: Component, args: [{
|
|
3990
3979
|
selector: "rs-drawer",
|
|
3991
|
-
template: "<div #element id=\"rs-drawer-container\" class=\"rs-drawer-container\">\r\n <div class=\"rs-drawer-content\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div\r\n #drawer\r\n class=\"rs-drawer\"\r\n [attr.data-mode]=\"config.mode\"\r\n [attr.data-opened]=\"
|
|
3980
|
+
template: "<div #element id=\"rs-drawer-container\" class=\"rs-drawer-container\">\r\n <div class=\"rs-drawer-content\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div\r\n #drawer\r\n class=\"rs-drawer\"\r\n [attr.data-mode]=\"config.mode\"\r\n [attr.data-opened]=\"isOpened ? 'yes' : 'no'\"\r\n [attr.data-transition]=\"useTransition\"\r\n [hidden]=\"hiddenDrawer\"\r\n (transitionend)=\"onTransitionEnd()\"\r\n >\r\n <div class=\"drawer-header\" #header>\r\n <button class=\"drawer-return-button\" (click)=\"hide()\">\r\n <span class=\"drawer-sub-title\" *ngIf=\"config.subTitle\">\r\n {{ config.subTitle }}\r\n </span>\r\n </button>\r\n <div class=\"drawer-title\">{{ config.title }}</div>\r\n <div class=\"drawer-header-slot\" #headerSlot></div>\r\n </div>\r\n <div class=\"drawer-top-slot\" #topSlot></div>\r\n <div class=\"drawer-content-box\">\r\n <div class=\"drawer-content\" #content>\r\n <div class=\"drawer-content-container\">\r\n <ng-template #dynamicComponentContainer></ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"drawer-toolbar-slot\" #toolbarSlot></div>\r\n </div>\r\n</div>\r\n",
|
|
3992
3981
|
styles: [":host{display:block;height:100%}#rs-drawer-container{height:100%}.rs-drawer-container{height:100%;background-color:transparent;overflow:hidden;position:relative}.rs-drawer-container .rs-drawer-content{width:100%;height:100%;overflow:auto;margin-right:0!important}.rs-drawer-container .rs-drawer-content::-webkit-scrollbar{width:5px;height:5px;background:#fff;position:static;z-index:999;border-radius:10px}.rs-drawer-container .rs-drawer-content::-webkit-scrollbar-thumb{background:#eaedf0}.rs-drawer-container .rs-drawer{width:100%;height:100%;border-left:none;background-color:transparent;overflow:visible;pointer-events:none;opacity:0;display:flex;flex-flow:column nowrap;position:absolute;z-index:2;top:0;left:100%}.rs-drawer-container .rs-drawer[data-opened=yes]{left:0;opacity:1}.rs-drawer-container .rs-drawer[data-transition=yes]{transition:opacity .5s ease-in-out,left .5s ease-in-out}.rs-drawer-container .rs-drawer .drawer-header{flex:none;display:flex;flex-flow:row nowrap;justify-content:flex-start;align-items:center;box-sizing:content-box;pointer-events:auto}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button{flex:none;display:flex;flex-flow:row nowrap;align-items:center;padding:0;border:none;background-color:transparent;cursor:pointer}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button::before{content:url(../../assets/img/drawer-back.svg);width:24px;height:24px;margin-right:8px;transition:transform 125ms ease-in-out}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button:hover::before{transform:translateX(-2px)}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button .drawer-sub-title{margin-right:12px;font-family:Arial;font-style:normal;font-weight:400}.rs-drawer-container .rs-drawer .drawer-header .drawer-title{flex:none;min-height:14px;padding:0 12px;border-left:1px solid #bdc4ca;font-family:Arial;font-style:normal;font-weight:400}.rs-drawer-container .rs-drawer .drawer-header .drawer-title:empty{padding:0}.rs-drawer-container .rs-drawer .drawer-content-box{flex:auto;height:0;background-color:#f7fafb;pointer-events:auto}.rs-drawer-container .rs-drawer .drawer-content{height:100%;padding:0 20px;border:1px solid #ebedf0;border-radius:15px;background-color:#fff;display:flex;flex-flow:column nowrap}.rs-drawer-container .rs-drawer .drawer-content .drawer-content-container{flex:auto;overflow:hidden auto}.rs-drawer-container .rs-drawer .drawer-toolbar-slot{flex:none;height:32px;margin-left:auto;display:flex;flex-flow:row nowrap;justify-content:flex-end;align-items:center;pointer-events:auto}.rs-drawer-container .rs-drawer .drawer-toolbar-slot:empty{display:none}.rs-drawer-container .rs-drawer .drawer-top-slot{flex:none;pointer-events:auto}.rs-drawer-container .rs-drawer .drawer-top-slot:empty{height:var(--drawer-top,0);pointer-events:none}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-header{height:46px;padding:0 12px 0 8px;background-color:#f7fafb}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-header .drawer-sub-title,.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-header .drawer-title{color:#1f3f5c;font-size:15px;font-weight:700;line-height:18px}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-content{padding-bottom:20px}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-content .drawer-content-container{margin-right:-20px;padding-right:20px}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-top-slot:empty+.drawer-content-box{padding-top:calc((var(--drawer-top,0) + 1) * 16px)}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-header{height:24px;padding:6px 0;border-bottom:1px solid #eaedf0}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-header .drawer-sub-title,.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-header .drawer-title{color:#44566c;font-size:12px;line-height:14px}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-header .drawer-title{font-weight:700}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-content .drawer-content-container{margin-right:-20px;padding-right:20px;padding-left:8px}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-toolbar-slot{width:100%;padding:16px 0;box-sizing:content-box;border-top:1px solid #eaedf0}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar]{display:flex;flex-flow:row nowrap;justify-content:flex-end;align-items:center;gap:12px}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button{display:flex;flex-flow:row nowrap;justify-content:center;align-items:center;gap:6px;min-width:80px;height:32px;padding:0 12px;border:1px solid #adb5bd;border-radius:4px;background-color:#fff;cursor:pointer;color:#44566c;font-size:13px;font-family:Arial;font-style:normal;font-weight:400;line-height:16px}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button:hover{border-color:#6c7c90}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button:disabled{opacity:1!important;border-color:#6c7c9066;color:#44566c66;cursor:unset}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button.primary{border:none;background-color:#1364b3;color:#fff}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button.primary:hover{background-color:#176bca}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button.primary:disabled{background-color:#1364b366}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button img{width:16px;height:16px}::ng-deep .rs-drawer-container .rs-drawer[data-mode=outer] .drawer-toolbar-slot [drawer-toolbar] button{height:26px;font-size:12px;line-height:14px}::ng-deep .rs-drawer-container .rs-drawer[data-mode=inner] .drawer-toolbar-slot [drawer-toolbar] button img{display:none}"]
|
|
3993
3982
|
}] }
|
|
3994
3983
|
];
|
|
@@ -4037,7 +4026,7 @@ if (false) {
|
|
|
4037
4026
|
/** @type {?} */
|
|
4038
4027
|
DrawerComponent.prototype.useTransition;
|
|
4039
4028
|
/** @type {?} */
|
|
4040
|
-
DrawerComponent.prototype
|
|
4029
|
+
DrawerComponent.prototype.isOpened;
|
|
4041
4030
|
/** @type {?} */
|
|
4042
4031
|
DrawerComponent.prototype.hiddenDrawer;
|
|
4043
4032
|
/**
|
|
@@ -22102,10 +22091,9 @@ var EmailPattern = /^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:
|
|
|
22102
22091
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
22103
22092
|
*/
|
|
22104
22093
|
var DrawerFormComponent = /** @class */ (function () {
|
|
22105
|
-
function DrawerFormComponent(
|
|
22106
|
-
this.datePipe = datePipe;
|
|
22094
|
+
function DrawerFormComponent(ref) {
|
|
22107
22095
|
this.ref = ref;
|
|
22108
|
-
this.
|
|
22096
|
+
this._sections = [];
|
|
22109
22097
|
this.optionsMap = {};
|
|
22110
22098
|
this.formDisabled = false;
|
|
22111
22099
|
this.showAnchor = true;
|
|
@@ -22119,8 +22107,10 @@ var DrawerFormComponent = /** @class */ (function () {
|
|
|
22119
22107
|
this.form = {};
|
|
22120
22108
|
this.formChange = new EventEmitter();
|
|
22121
22109
|
this.fieldChange = new EventEmitter();
|
|
22110
|
+
this.sections = [];
|
|
22122
22111
|
this.filterOptionsMap = {};
|
|
22123
22112
|
this.fieldValidMap = {};
|
|
22113
|
+
this.dateValidMap = {};
|
|
22124
22114
|
this.scrollIndex = 0;
|
|
22125
22115
|
this.isClickAnchor = false;
|
|
22126
22116
|
}
|
|
@@ -22140,8 +22130,9 @@ var DrawerFormComponent = /** @class */ (function () {
|
|
|
22140
22130
|
* @return {?}
|
|
22141
22131
|
*/
|
|
22142
22132
|
function (changes) {
|
|
22143
|
-
if (changes.
|
|
22144
|
-
this.
|
|
22133
|
+
if (changes._sections) {
|
|
22134
|
+
this.sections = filterShowSection(changes._sections.currentValue);
|
|
22135
|
+
this.formatForm(this.sections);
|
|
22145
22136
|
}
|
|
22146
22137
|
if (changes.form && !changes.form.firstChange) {
|
|
22147
22138
|
this.checkFormChange(changes.form.previousValue, changes.form.currentValue);
|
|
@@ -22492,6 +22483,27 @@ var DrawerFormComponent = /** @class */ (function () {
|
|
|
22492
22483
|
function (value, field) {
|
|
22493
22484
|
this.callFunction(field.onInput, value, field);
|
|
22494
22485
|
};
|
|
22486
|
+
/**
|
|
22487
|
+
* @param {?} event
|
|
22488
|
+
* @param {?} field
|
|
22489
|
+
* @return {?}
|
|
22490
|
+
*/
|
|
22491
|
+
DrawerFormComponent.prototype.onComponentChange = /**
|
|
22492
|
+
* @param {?} event
|
|
22493
|
+
* @param {?} field
|
|
22494
|
+
* @return {?}
|
|
22495
|
+
*/
|
|
22496
|
+
function (event, field) {
|
|
22497
|
+
if (!event.isInteracted) {
|
|
22498
|
+
return;
|
|
22499
|
+
}
|
|
22500
|
+
/** @type {?} */
|
|
22501
|
+
var value = event.value;
|
|
22502
|
+
if (field.fieldFormType === "Datepicker") {
|
|
22503
|
+
value = moment(value).format("YYYY-MM-DD");
|
|
22504
|
+
}
|
|
22505
|
+
this.onChange(value, field);
|
|
22506
|
+
};
|
|
22495
22507
|
/**
|
|
22496
22508
|
* @param {?} value
|
|
22497
22509
|
* @param {?} field
|
|
@@ -22503,12 +22515,31 @@ var DrawerFormComponent = /** @class */ (function () {
|
|
|
22503
22515
|
* @return {?}
|
|
22504
22516
|
*/
|
|
22505
22517
|
function (value, field) {
|
|
22506
|
-
if (field.fieldFormType === "Datepicker") {
|
|
22507
|
-
value = this.datePipe.transform(value, "yyyy-MM-dd");
|
|
22508
|
-
}
|
|
22509
22518
|
this.updateForm(value, field);
|
|
22510
22519
|
this.callFunction(field.onChange, value, field);
|
|
22511
22520
|
};
|
|
22521
|
+
/**
|
|
22522
|
+
* @param {?} event
|
|
22523
|
+
* @param {?} field
|
|
22524
|
+
* @return {?}
|
|
22525
|
+
*/
|
|
22526
|
+
DrawerFormComponent.prototype.onDatePickerBlur = /**
|
|
22527
|
+
* @param {?} event
|
|
22528
|
+
* @param {?} field
|
|
22529
|
+
* @return {?}
|
|
22530
|
+
*/
|
|
22531
|
+
function (event, field) {
|
|
22532
|
+
this.onBlur(field);
|
|
22533
|
+
/** @type {?} */
|
|
22534
|
+
var $input = event.model.element.querySelector("input");
|
|
22535
|
+
if (!$input) {
|
|
22536
|
+
return;
|
|
22537
|
+
}
|
|
22538
|
+
/** @type {?} */
|
|
22539
|
+
var date = moment($input.value);
|
|
22540
|
+
this.onChange(date.isValid() ? date.format("YYYY-MM-DD") : null, field);
|
|
22541
|
+
this.dateValidMap[field.formKey] = date.isValid();
|
|
22542
|
+
};
|
|
22512
22543
|
/**
|
|
22513
22544
|
* @param {?} field
|
|
22514
22545
|
* @return {?}
|
|
@@ -22668,18 +22699,16 @@ var DrawerFormComponent = /** @class */ (function () {
|
|
|
22668
22699
|
DrawerFormComponent.decorators = [
|
|
22669
22700
|
{ type: Component, args: [{
|
|
22670
22701
|
selector: "rs-drawer-form",
|
|
22671
|
-
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]=\"optionsMap[field.optionKey]\"\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]=\"optionsMap[field.optionKey]\"\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\"\r\n [enabled]=\"!getDisabled(field)\"\r\n [class.error]=\"fieldValidMap[field.formKey] === false\"\r\n (change)=\"
|
|
22672
|
-
providers: [DatePipe],
|
|
22702
|
+
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]=\"optionsMap[field.optionKey]\"\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]=\"optionsMap[field.optionKey]\"\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\"\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]=\"optionsMap[field.optionKey]\"\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 *ngIf=\"field.fieldFormType === 'Dropdown'\"\r\n [value]=\"form[field.formKey]\"\r\n [dataSource]=\"optionsMap[field.optionKey]\"\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 (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 [value]=\"form[field.formKey]\"\r\n [dataSource]=\"optionsMap[field.optionKey]\"\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]=\"form[field.formKey]\"\r\n [format]=\"field.format || 'dd-MMM-yyyy'\"\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",
|
|
22673
22703
|
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{flex:auto;display:flex;flex-flow:column nowrap;max-width:1576px}.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}"]
|
|
22674
22704
|
}] }
|
|
22675
22705
|
];
|
|
22676
22706
|
/** @nocollapse */
|
|
22677
22707
|
DrawerFormComponent.ctorParameters = function () { return [
|
|
22678
|
-
{ type: DatePipe },
|
|
22679
22708
|
{ type: ChangeDetectorRef }
|
|
22680
22709
|
]; };
|
|
22681
22710
|
DrawerFormComponent.propDecorators = {
|
|
22682
|
-
|
|
22711
|
+
_sections: [{ type: Input, args: ["sections",] }],
|
|
22683
22712
|
optionsMap: [{ type: Input, args: ["optionsMap",] }],
|
|
22684
22713
|
customTemplate: [{ type: Input, args: ["customTemplate",] }],
|
|
22685
22714
|
customSectionTemplate: [{ type: Input, args: ["customSectionTemplate",] }],
|
|
@@ -22699,7 +22728,7 @@ var DrawerFormComponent = /** @class */ (function () {
|
|
|
22699
22728
|
}());
|
|
22700
22729
|
if (false) {
|
|
22701
22730
|
/** @type {?} */
|
|
22702
|
-
DrawerFormComponent.prototype.
|
|
22731
|
+
DrawerFormComponent.prototype._sections;
|
|
22703
22732
|
/** @type {?} */
|
|
22704
22733
|
DrawerFormComponent.prototype.optionsMap;
|
|
22705
22734
|
/** @type {?} */
|
|
@@ -22733,20 +22762,19 @@ if (false) {
|
|
|
22733
22762
|
*/
|
|
22734
22763
|
DrawerFormComponent.prototype.sectionContainers;
|
|
22735
22764
|
/** @type {?} */
|
|
22765
|
+
DrawerFormComponent.prototype.sections;
|
|
22766
|
+
/** @type {?} */
|
|
22736
22767
|
DrawerFormComponent.prototype.filterOptionsMap;
|
|
22737
22768
|
/** @type {?} */
|
|
22738
22769
|
DrawerFormComponent.prototype.fieldValidMap;
|
|
22739
22770
|
/** @type {?} */
|
|
22771
|
+
DrawerFormComponent.prototype.dateValidMap;
|
|
22772
|
+
/** @type {?} */
|
|
22740
22773
|
DrawerFormComponent.prototype.sectionEls;
|
|
22741
22774
|
/** @type {?} */
|
|
22742
22775
|
DrawerFormComponent.prototype.scrollIndex;
|
|
22743
22776
|
/** @type {?} */
|
|
22744
22777
|
DrawerFormComponent.prototype.isClickAnchor;
|
|
22745
|
-
/**
|
|
22746
|
-
* @type {?}
|
|
22747
|
-
* @private
|
|
22748
|
-
*/
|
|
22749
|
-
DrawerFormComponent.prototype.datePipe;
|
|
22750
22778
|
/**
|
|
22751
22779
|
* @type {?}
|
|
22752
22780
|
* @private
|
|
@@ -23233,6 +23261,7 @@ var ConfirmSelectComponent = /** @class */ (function () {
|
|
|
23233
23261
|
*/
|
|
23234
23262
|
function () {
|
|
23235
23263
|
this.selectedItems = JSON.parse(JSON.stringify(this.value || []));
|
|
23264
|
+
this.comfirmSelect.value = this.selectedItems;
|
|
23236
23265
|
};
|
|
23237
23266
|
/**
|
|
23238
23267
|
* @return {?}
|