raise-common-lib 0.0.197 → 0.0.199

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.
@@ -22258,6 +22258,8 @@ var DrawerFormComponent = /** @class */ (function () {
22258
22258
  this.formChange = new EventEmitter();
22259
22259
  this.fieldChange = new EventEmitter();
22260
22260
  this.sections = [];
22261
+ this.fieldTypeMap = {};
22262
+ this.formFieldMap = {};
22261
22263
  this.form = {};
22262
22264
  this.fieldValidMap = {};
22263
22265
  // 存储 datepicker 的值
@@ -22284,15 +22286,15 @@ var DrawerFormComponent = /** @class */ (function () {
22284
22286
  function (changes) {
22285
22287
  if (changes._sections) {
22286
22288
  this.sections = filterShowSection(changes._sections.currentValue);
22287
- this.form = this.getFormProxy(this.formatForm(this.sections, __assign({}, this.form)));
22288
- this.syncFormField();
22289
- this.formChange.emit(this.form);
22289
+ this.formatFieldMap();
22290
+ this.setForm(__assign({}, this.form, this._form));
22290
22291
  }
22291
22292
  if (changes._form) {
22292
22293
  if (!changes._form.currentValue[FORM_PROXY_TAG]) {
22293
- this.form = this.getFormProxy(this.formatForm(this.sections, changes._form.currentValue));
22294
- this.syncFormField();
22295
- this.formChange.emit(this.form);
22294
+ this.setForm(changes._form.currentValue);
22295
+ }
22296
+ else {
22297
+ this.form = changes._form.currentValue;
22296
22298
  }
22297
22299
  if (!changes._form.firstChange) {
22298
22300
  this.checkFormChange(changes._form.previousValue, changes._form.currentValue);
@@ -22325,6 +22327,13 @@ var DrawerFormComponent = /** @class */ (function () {
22325
22327
  _this.sectionContainers = containers;
22326
22328
  _this.customSectionRender(containers);
22327
22329
  }));
22330
+ this.dropdowns.changes.subscribe((/**
22331
+ * @param {?} dropdowns
22332
+ * @return {?}
22333
+ */
22334
+ function (dropdowns) {
22335
+ _this.dropdowns = dropdowns;
22336
+ }));
22328
22337
  if (this.showAnchor) {
22329
22338
  this.initAnchorScrollHandler();
22330
22339
  }
@@ -22341,22 +22350,7 @@ var DrawerFormComponent = /** @class */ (function () {
22341
22350
  var _this = this;
22342
22351
  if (this.customTemplate && containers.length > 0) {
22343
22352
  /** @type {?} */
22344
- var customFields_1 = [];
22345
- this.sections.forEach((/**
22346
- * @param {?} section
22347
- * @return {?}
22348
- */
22349
- function (section) {
22350
- section.fields.forEach((/**
22351
- * @param {?} field
22352
- * @return {?}
22353
- */
22354
- function (field) {
22355
- if (field.fieldFormType === "Custom") {
22356
- customFields_1.push(field);
22357
- }
22358
- }));
22359
- }));
22353
+ var customFields_1 = this.fieldTypeMap.Custom || [];
22360
22354
  containers.forEach((/**
22361
22355
  * @param {?} container
22362
22356
  * @param {?} index
@@ -22402,6 +22396,47 @@ var DrawerFormComponent = /** @class */ (function () {
22402
22396
  }));
22403
22397
  }
22404
22398
  };
22399
+ /**
22400
+ * @return {?}
22401
+ */
22402
+ DrawerFormComponent.prototype.formatFieldMap = /**
22403
+ * @return {?}
22404
+ */
22405
+ function () {
22406
+ var _this = this;
22407
+ this.fieldTypeMap = {};
22408
+ this.formFieldMap = {};
22409
+ this.sections.forEach((/**
22410
+ * @param {?} section
22411
+ * @return {?}
22412
+ */
22413
+ function (section) {
22414
+ section.fields.forEach((/**
22415
+ * @param {?} field
22416
+ * @return {?}
22417
+ */
22418
+ function (field) {
22419
+ if (!_this.fieldTypeMap[field.fieldFormType]) {
22420
+ _this.fieldTypeMap[field.fieldFormType] = [];
22421
+ }
22422
+ _this.fieldTypeMap[field.fieldFormType].push(field);
22423
+ _this.formFieldMap[field.formKey] = field;
22424
+ }));
22425
+ }));
22426
+ };
22427
+ /**
22428
+ * @param {?} form
22429
+ * @return {?}
22430
+ */
22431
+ DrawerFormComponent.prototype.setForm = /**
22432
+ * @param {?} form
22433
+ * @return {?}
22434
+ */
22435
+ function (form) {
22436
+ this.form = this.getFormProxy(this.formatForm(this.sections, form));
22437
+ this.syncFormField();
22438
+ this.formChange.emit(this.form);
22439
+ };
22405
22440
  /**
22406
22441
  * @param {?} value
22407
22442
  * @param {?} compareValue
@@ -22704,21 +22739,7 @@ var DrawerFormComponent = /** @class */ (function () {
22704
22739
  * @return {?}
22705
22740
  */
22706
22741
  function (formKey) {
22707
- /** @type {?} */
22708
- var fieldItem = null;
22709
- this.sections.find((/**
22710
- * @param {?} section
22711
- * @return {?}
22712
- */
22713
- function (section) {
22714
- fieldItem = section.fields.find((/**
22715
- * @param {?} field
22716
- * @return {?}
22717
- */
22718
- function (field) { return field.formKey === formKey; }));
22719
- return fieldItem;
22720
- }));
22721
- return fieldItem;
22742
+ return this.formFieldMap[formKey] || null;
22722
22743
  };
22723
22744
  /**
22724
22745
  * @private
@@ -22860,6 +22881,25 @@ var DrawerFormComponent = /** @class */ (function () {
22860
22881
  }
22861
22882
  event.updateData(this.getOptions(field), query);
22862
22883
  };
22884
+ /**
22885
+ * @param {?} event
22886
+ * @param {?} field
22887
+ * @return {?}
22888
+ */
22889
+ DrawerFormComponent.prototype.onDropdownDataBound = /**
22890
+ * @param {?} event
22891
+ * @param {?} field
22892
+ * @return {?}
22893
+ */
22894
+ function (event, field) {
22895
+ /** @type {?} */
22896
+ var index = this.fieldTypeMap[field.fieldFormType].indexOf(field);
22897
+ /** @type {?} */
22898
+ var component = this.dropdowns.toArray()[index];
22899
+ if (event.items.length > 0 && index !== -1 && component) {
22900
+ component.value = this.form[field.formKey];
22901
+ }
22902
+ };
22863
22903
  /**
22864
22904
  * @param {?} field
22865
22905
  * @return {?}
@@ -22996,7 +23036,7 @@ var DrawerFormComponent = /** @class */ (function () {
22996
23036
  DrawerFormComponent.decorators = [
22997
23037
  { type: Component, args: [{
22998
23038
  selector: "rs-drawer-form",
22999
- 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 *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 (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",
23039
+ 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",
23000
23040
  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}"]
23001
23041
  }] }
23002
23042
  ];
@@ -23021,6 +23061,7 @@ var DrawerFormComponent = /** @class */ (function () {
23021
23061
  rootEl: [{ type: ViewChild, args: ["drawerFormEl", { static: false },] }],
23022
23062
  containers: [{ type: ViewChildren, args: ["customTemplateContainer", { read: ViewContainerRef },] }],
23023
23063
  sectionContainers: [{ type: ViewChildren, args: ["customSectionContainer", { read: ViewContainerRef },] }],
23064
+ dropdowns: [{ type: ViewChildren, args: ["dropdown",] }],
23024
23065
  sectionEls: [{ type: ViewChildren, args: ["sectionEl",] }]
23025
23066
  };
23026
23067
  return DrawerFormComponent;
@@ -23065,8 +23106,14 @@ if (false) {
23065
23106
  */
23066
23107
  DrawerFormComponent.prototype.sectionContainers;
23067
23108
  /** @type {?} */
23109
+ DrawerFormComponent.prototype.dropdowns;
23110
+ /** @type {?} */
23068
23111
  DrawerFormComponent.prototype.sections;
23069
23112
  /** @type {?} */
23113
+ DrawerFormComponent.prototype.fieldTypeMap;
23114
+ /** @type {?} */
23115
+ DrawerFormComponent.prototype.formFieldMap;
23116
+ /** @type {?} */
23070
23117
  DrawerFormComponent.prototype.form;
23071
23118
  /** @type {?} */
23072
23119
  DrawerFormComponent.prototype.fieldValidMap;
@@ -23100,12 +23147,13 @@ var CommonDialogComponent = /** @class */ (function () {
23100
23147
  this.hideCloseIcon = false;
23101
23148
  this.hideCloseBtn = false;
23102
23149
  this.hideSaveBtn = false;
23103
- this.hideDiscardBtn = false;
23150
+ this.hideDiscardBtn = true;
23104
23151
  this.saveBtnLabel = "";
23105
23152
  this.cancelBtnLabel = "";
23106
23153
  this.discardBtnLabel = "";
23107
23154
  this.showErrorIcon = false;
23108
23155
  this.showZoomBtn = false;
23156
+ this.customSave = false;
23109
23157
  // 显示相关属性
23110
23158
  this.dialogStyle = {};
23111
23159
  this.size = "";
@@ -23178,7 +23226,12 @@ var CommonDialogComponent = /** @class */ (function () {
23178
23226
  * @return {?}
23179
23227
  */
23180
23228
  function () {
23181
- this.dialogRef.close("save");
23229
+ if (this.customSave) {
23230
+ this.saveEmit.emit();
23231
+ }
23232
+ else {
23233
+ this.dialogRef.close("save");
23234
+ }
23182
23235
  };
23183
23236
  /**
23184
23237
  * @return {?}
@@ -23226,6 +23279,7 @@ var CommonDialogComponent = /** @class */ (function () {
23226
23279
  discardBtnLabel: [{ type: Input }],
23227
23280
  showErrorIcon: [{ type: Input }],
23228
23281
  showZoomBtn: [{ type: Input }],
23282
+ customSave: [{ type: Input }],
23229
23283
  onCloseRequest: [{ type: Input }],
23230
23284
  dialogStyle: [{ type: Input }],
23231
23285
  size: [{ type: Input }],
@@ -23261,6 +23315,8 @@ if (false) {
23261
23315
  /** @type {?} */
23262
23316
  CommonDialogComponent.prototype.showZoomBtn;
23263
23317
  /** @type {?} */
23318
+ CommonDialogComponent.prototype.customSave;
23319
+ /** @type {?} */
23264
23320
  CommonDialogComponent.prototype.onCloseRequest;
23265
23321
  /** @type {?} */
23266
23322
  CommonDialogComponent.prototype.dialogStyle;