raise-common-lib 0.0.150 → 0.0.152

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.
@@ -1950,6 +1950,8 @@
1950
1950
  /** @type {?|undefined} */
1951
1951
  DialogConfig.prototype.cancelBtnLabel;
1952
1952
  /** @type {?|undefined} */
1953
+ DialogConfig.prototype.discardBtnLabel;
1954
+ /** @type {?|undefined} */
1953
1955
  DialogConfig.prototype.showErrorIcon;
1954
1956
  /** @type {?|undefined} */
1955
1957
  DialogConfig.prototype.hideCloseIcon;
@@ -1959,6 +1961,12 @@
1959
1961
  DialogConfig.prototype.hideSaveBtn;
1960
1962
  /** @type {?|undefined} */
1961
1963
  DialogConfig.prototype.hideCloseBtn;
1964
+ /** @type {?|undefined} */
1965
+ DialogConfig.prototype.hideDiscardBtn;
1966
+ /** @type {?|undefined} */
1967
+ DialogConfig.prototype.showZoomBtn;
1968
+ /** @type {?|undefined} */
1969
+ DialogConfig.prototype.onCloseRequest;
1962
1970
  }
1963
1971
  var CommonDeleteComponent = /** @class */ (function () {
1964
1972
  function CommonDeleteComponent(data, dialogRef) {
@@ -1967,8 +1975,10 @@
1967
1975
  this.title = "";
1968
1976
  this.saveBtnLabel = "";
1969
1977
  this.cancelBtnLabel = "";
1978
+ this.discardBtnLabel = "";
1970
1979
  this.description = "";
1971
1980
  this.size = "small";
1981
+ this.showZoomBtn = false;
1972
1982
  }
1973
1983
  /**
1974
1984
  * @return {?}
@@ -1984,27 +1994,18 @@
1984
1994
  this.data.saveBtnLabel || this.translation.DELETE || ".DELETE";
1985
1995
  this.cancelBtnLabel =
1986
1996
  this.data.cancelBtnLabel || this.translation.CANCEL || ".CANCEL";
1997
+ this.discardBtnLabel = this.data.discardBtnLabel;
1987
1998
  this.description =
1988
1999
  this.data.description ||
1989
2000
  this.translation.IF_YOU_DELETE_THIS_RECORD_WARNING ||
1990
2001
  ".If you delete this record, you won't be able to recover it. Do you want to delete it?";
1991
2002
  this.size = this.data.size || "small";
1992
- };
1993
- /**
1994
- * @param {?} e
1995
- * @return {?}
1996
- */
1997
- CommonDeleteComponent.prototype.onSave = /**
1998
- * @param {?} e
1999
- * @return {?}
2000
- */
2001
- function (e) {
2002
- this.dialogRef.close(e);
2003
+ this.showZoomBtn = this.data.showZoomBtn || false;
2003
2004
  };
2004
2005
  CommonDeleteComponent.decorators = [
2005
2006
  { type: core.Component, args: [{
2006
2007
  selector: "kt-common-delete-dialog",
2007
- template: "<kt-common-dialog\r\n\t[size]=\"size\"\r\n\t[title]=\"title\"\r\n\t[hideHeader]=\"false\"\r\n\t[hideCloseBtn]=\"data.hideCloseBtn === undefined ? false : data.hideCloseBtn\"\r\n\t[hideSaveBtn]=\"data.hideSaveBtn === undefined ? false : data.hideSaveBtn\"\r\n\t[saveBtnLabel]=\"saveBtnLabel\"\r\n\t[cancelBtnLabel]=\"cancelBtnLabel\"\r\n\t[showErrorIcon]=\"\r\n\t\tdata.showErrorIcon === undefined ? false : data.showErrorIcon\r\n\t\"\r\n\t[hideCloseIcon]=\"\r\n\t\tdata.hideCloseIcon === undefined ? false : data.hideCloseIcon\r\n\t\"\r\n\t(saveEmit)=\"onSave($event)\"\r\n>\r\n\t<div class=\"mapping-dialog\">\r\n\t\t{{ description }}\r\n\t</div>\r\n</kt-common-dialog>\r\n",
2008
+ template: "<rs-common-dialog\r\n [size]=\"size\"\r\n [title]=\"title\"\r\n [hideHeader]=\"false\"\r\n [hideCloseBtn]=\"data.hideCloseBtn === undefined ? false : data.hideCloseBtn\"\r\n [hideSaveBtn]=\"data.hideSaveBtn === undefined ? false : data.hideSaveBtn\"\r\n [hideDiscardBtn]=\"\r\n data.hideDiscardBtn === undefined ? true : data.hideDiscardBtn\r\n \"\r\n [saveBtnLabel]=\"saveBtnLabel\"\r\n [cancelBtnLabel]=\"cancelBtnLabel\"\r\n [discardBtnLabel]=\"discardBtnLabel\"\r\n [showErrorIcon]=\"\r\n data.showErrorIcon === undefined ? false : data.showErrorIcon\r\n \"\r\n [hideCloseIcon]=\"\r\n data.hideCloseIcon === undefined ? false : data.hideCloseIcon\r\n \"\r\n>\r\n <div class=\"mapping-dialog\">\r\n {{ description }}\r\n </div>\r\n</rs-common-dialog>\r\n",
2008
2009
  styles: [".mapping-dialog{color:#44566c;font-family:Arial;font-size:12px;line-height:16px;white-space:pre-line}"]
2009
2010
  }] }
2010
2011
  ];
@@ -2025,10 +2026,14 @@
2025
2026
  /** @type {?} */
2026
2027
  CommonDeleteComponent.prototype.cancelBtnLabel;
2027
2028
  /** @type {?} */
2029
+ CommonDeleteComponent.prototype.discardBtnLabel;
2030
+ /** @type {?} */
2028
2031
  CommonDeleteComponent.prototype.description;
2029
2032
  /** @type {?} */
2030
2033
  CommonDeleteComponent.prototype.size;
2031
2034
  /** @type {?} */
2035
+ CommonDeleteComponent.prototype.showZoomBtn;
2036
+ /** @type {?} */
2032
2037
  CommonDeleteComponent.prototype.data;
2033
2038
  /** @type {?} */
2034
2039
  CommonDeleteComponent.prototype.dialogRef;
@@ -2150,11 +2155,14 @@
2150
2155
  /** @type {?} */
2151
2156
  var defaultData = {
2152
2157
  title: this.translation.UNSAVED_CHANGES || ".UNSAVED_CHANGES",
2153
- description: this.translation
2154
- .YOU_HAVE_UNSAVED_CHANGED_ARE_YOU_SURE_YOU_WANT_TO_DISCARD_THEM ||
2155
- ".YOU_HAVE_UNSAVED_CHANGED_ARE_YOU_SURE_YOU_WANT_TO_DISCARD_THEM",
2156
- saveBtnLabel: this.translation.DISCARD_CHANGES || ".DISCARD_CHANGES",
2157
- cancelBtnLabel: this.translation.CONTINUE_EDITING || ".CONTINUE_EDITING",
2158
+ description: this.translation.YOU_HAVE_UNSAVED_CHANGES_DO_YOU_WANT_TO_CONTINUE ||
2159
+ ".YOU_HAVE_UNSAVED_CHANGES_DO_YOU_WANT_TO_CONTINUE",
2160
+ saveBtnLabel: this.translation.SAVE_AND_LEAVE || ".SAVE_AND_LEAVE",
2161
+ discardBtnLabel: this.translation.DISCARD_AND_LEAVE || ".DISCARD_AND_LEAVE",
2162
+ cancelBtnLabel: this.translation.CANCEL || ".CANCEL",
2163
+ hideDiscardBtn: false,
2164
+ size: "medium",
2165
+ hideCloseIcon: true,
2158
2166
  };
2159
2167
  if (data) {
2160
2168
  data = Object.assign(defaultData, data);
@@ -22843,6 +22851,203 @@
22843
22851
  ToolbarItemComponent.prototype.ImageType;
22844
22852
  }
22845
22853
 
22854
+ /**
22855
+ * @fileoverview added by tsickle
22856
+ * Generated from: lib/dialog/common-dialog/index.component.ts
22857
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
22858
+ */
22859
+ var CommonDialogComponent = /** @class */ (function () {
22860
+ function CommonDialogComponent(dialogRef) {
22861
+ this.dialogRef = dialogRef;
22862
+ // 隐藏元素相关属性
22863
+ this.hideHeader = false;
22864
+ this.hideCloseIcon = false;
22865
+ this.hideCloseBtn = false;
22866
+ this.hideSaveBtn = false;
22867
+ this.hideDiscardBtn = false;
22868
+ this.saveBtnLabel = "";
22869
+ this.cancelBtnLabel = "";
22870
+ this.discardBtnLabel = "";
22871
+ this.showErrorIcon = false;
22872
+ this.showZoomBtn = false;
22873
+ // 显示相关属性
22874
+ this.dialogStyle = {};
22875
+ this.size = "";
22876
+ this.title = "Dialog";
22877
+ this.loading = false;
22878
+ this.saveEmit = new core.EventEmitter();
22879
+ this.closeEmit = new core.EventEmitter();
22880
+ this.defaultSize = "";
22881
+ this.customFooter = false;
22882
+ }
22883
+ /**
22884
+ * @return {?}
22885
+ */
22886
+ CommonDialogComponent.prototype.ngAfterContentInit = /**
22887
+ * @return {?}
22888
+ */
22889
+ function () {
22890
+ this.customFooter = !!this.footerContent;
22891
+ };
22892
+ /**
22893
+ * @return {?}
22894
+ */
22895
+ CommonDialogComponent.prototype.ngOnInit = /**
22896
+ * @return {?}
22897
+ */
22898
+ function () {
22899
+ this.getInfo();
22900
+ };
22901
+ /**
22902
+ * @return {?}
22903
+ */
22904
+ CommonDialogComponent.prototype.onClose = /**
22905
+ * @return {?}
22906
+ */
22907
+ function () {
22908
+ var _this = this;
22909
+ if (this.onCloseRequest) {
22910
+ this.onCloseRequest().then((/**
22911
+ * @param {?} confirmed
22912
+ * @return {?}
22913
+ */
22914
+ function (confirmed) {
22915
+ if (confirmed) {
22916
+ _this.dialogRef.close("close");
22917
+ }
22918
+ }));
22919
+ }
22920
+ else {
22921
+ this.dialogRef.close("close");
22922
+ }
22923
+ };
22924
+ /**
22925
+ * @return {?}
22926
+ */
22927
+ CommonDialogComponent.prototype.onZoom = /**
22928
+ * @return {?}
22929
+ */
22930
+ function () {
22931
+ if (this.size === "largest") {
22932
+ this.size = this.defaultSize; // 恢复到原始大小
22933
+ }
22934
+ else {
22935
+ this.size = "largest"; // 设置为最大化
22936
+ }
22937
+ };
22938
+ /**
22939
+ * @return {?}
22940
+ */
22941
+ CommonDialogComponent.prototype.onSave = /**
22942
+ * @return {?}
22943
+ */
22944
+ function () {
22945
+ this.dialogRef.close("save");
22946
+ };
22947
+ /**
22948
+ * @return {?}
22949
+ */
22950
+ CommonDialogComponent.prototype.onDiscard = /**
22951
+ * @return {?}
22952
+ */
22953
+ function () {
22954
+ this.dialogRef.close("discard");
22955
+ };
22956
+ /**
22957
+ * @private
22958
+ * @return {?}
22959
+ */
22960
+ CommonDialogComponent.prototype.getInfo = /**
22961
+ * @private
22962
+ * @return {?}
22963
+ */
22964
+ function () {
22965
+ this.translation = JSON.parse(localStorage.getItem("translation")) || {};
22966
+ this.saveBtnLabel = this.saveBtnLabel || this.translation.SAVE || ".SAVE";
22967
+ this.cancelBtnLabel =
22968
+ this.cancelBtnLabel || this.translation.CANCEL || ".CANCEL";
22969
+ this.defaultSize = this.size;
22970
+ };
22971
+ CommonDialogComponent.decorators = [
22972
+ { type: core.Component, args: [{
22973
+ selector: "rs-common-dialog",
22974
+ template: "<div class=\"dialog\" [ngClass]=\"size\" [ngStyle]=\"dialogStyle\">\r\n <!-- \u5934\u90E8 -->\r\n <div *ngIf=\"!hideHeader\" mat-dialog-title class=\"dialog__header\">\r\n <div class=\"header__title\">\r\n <img\r\n src=\"../../../assets/img/notification-status-warning.svg\"\r\n alt=\"\"\r\n *ngIf=\"showErrorIcon\"\r\n />\r\n {{ title }}\r\n </div>\r\n <div class=\"header__actions\">\r\n <div *ngIf=\"showZoomBtn\" class=\"header__close-btn\" (click)=\"onZoom()\">\r\n <img\r\n class=\"header__close-icon\"\r\n *ngIf=\"size === 'largest'\"\r\n src=\"../../../assets/img/shrink-icon.svg\"\r\n />\r\n <img\r\n class=\"header__close-icon\"\r\n *ngIf=\"size !== 'largest'\"\r\n src=\"../../../assets/img/grow-icon.svg\"\r\n />\r\n </div>\r\n <div *ngIf=\"!hideCloseIcon\" class=\"header__close-btn\" (click)=\"onClose()\">\r\n <img class=\"header__close-icon\" src=\"../../../assets/img/close.svg\" />\r\n </div>\r\n </div>\r\n </div>\r\n <!-- \u5185\u5BB9 -->\r\n <div class=\"dialog__content\" mat-dialog-content>\r\n <ng-content></ng-content>\r\n </div>\r\n <!-- \u5E95\u90E8\u6309\u94AE -->\r\n <div mat-dialog-actions class=\"dialog__footer\">\r\n <ng-content select=\"[footerSlot]\"></ng-content>\r\n <!-- \u9ED8\u8BA4\u5C55\u793A\u4FDD\u5B58/\u5173\u95ED\u6309\u94AE -->\r\n <ng-container *ngIf=\"!customFooter\">\r\n <ng-template [ngTemplateOutlet]=\"defaultTemplate\"></ng-template>\r\n </ng-container>\r\n <ng-template #defaultTemplate>\r\n <button\r\n *ngIf=\"!hideCloseBtn\"\r\n class=\"e-btn\"\r\n (click)=\"onClose()\"\r\n >\r\n {{ cancelBtnLabel }}\r\n </button>\r\n <button\r\n *ngIf=\"!hideDiscardBtn\"\r\n class=\"e-btn\"\r\n (click)=\"onDiscard()\"\r\n >\r\n {{ discardBtnLabel }}\r\n </button>\r\n <button\r\n *ngIf=\"!hideSaveBtn\"\r\n class=\"e-btn e-primary\"\r\n (click)=\"onSave()\"\r\n >\r\n {{ saveBtnLabel }}\r\n </button>\r\n </ng-template>\r\n </div>\r\n <!-- loading -->\r\n <div class=\"dialog__loading\" [hidden]=\"!loading\">\r\n <img src=\"../../../assets/img/raise_loading.gif\" alt=\"\" />\r\n </div>\r\n</div>\r\n",
22975
+ styles: [":host::ng-deep .dialog{position:relative;max-height:90vh;font-weight:400;padding:20px;overflow:hidden;display:flex;flex-direction:column}:host::ng-deep .dialog.largest{width:80vw!important;max-width:1885px;padding:20px}:host::ng-deep .dialog.medium{width:500px;padding:20px}:host::ng-deep .dialog.small{width:350px;padding:20px 16px}:host::ng-deep .dialog.small .dialog__header{color:#002c4f;margin-bottom:16px}:host::ng-deep .dialog.small .dialog__header .header__title{font-size:13px;line-height:16px}:host::ng-deep .dialog.small .dialog__content{font-size:12px;line-height:16px}:host::ng-deep .dialog.small .dialog__footer{min-height:42px;padding:16px 0 0;font-size:12px;line-height:14px}:host::ng-deep .dialog.small .dialog__footer button{padding:6px 12px;min-width:60px}:host::ng-deep .dialog.large{width:800px;padding:20px}:host::ng-deep .dialog .dialog__header{width:100%;display:flex;justify-content:space-between;align-items:center;padding:0}:host::ng-deep .dialog .dialog__header::before{display:none}:host::ng-deep .dialog .dialog__header .header__title{color:#002c4f;font-family:Arial;font-size:15px;font-weight:700;line-height:18px;flex:1;overflow:hidden;display:flex;align-items:center;gap:8px}:host::ng-deep .dialog .dialog__header .header__actions{display:flex;align-items:center;gap:20px}:host::ng-deep .dialog .dialog__header .header__close-icon{display:block;width:100%;height:100%}:host::ng-deep .dialog .dialog__header .header__close-btn{cursor:pointer;flex:0 0 20px;padding:4px;width:20px;height:20px;display:flex;justify-content:center;align-items:center}:host::ng-deep .dialog .dialog__content{width:100%;min-height:38px;position:relative;overflow-y:auto;overflow-x:hidden;margin:0;padding:0;font-size:13px;line-height:19px;flex:1;height:0}:host::ng-deep .dialog .dialog__footer{position:relative;display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:20px 0 0;font-size:13px;line-height:16px;margin-bottom:0}:host::ng-deep .dialog .dialog__loading{height:100%;background:0 0;position:fixed;top:0;left:0;right:0;bottom:0;z-index:9999}:host::ng-deep .dialog .dialog__loading img{position:absolute;left:50%;top:50%;width:40px;height:40px;transform:translate(-50%,-50%)}"]
22976
+ }] }
22977
+ ];
22978
+ /** @nocollapse */
22979
+ CommonDialogComponent.ctorParameters = function () { return [
22980
+ { type: dialog.MatDialogRef }
22981
+ ]; };
22982
+ CommonDialogComponent.propDecorators = {
22983
+ hideHeader: [{ type: core.Input }],
22984
+ hideCloseIcon: [{ type: core.Input }],
22985
+ hideCloseBtn: [{ type: core.Input }],
22986
+ hideSaveBtn: [{ type: core.Input }],
22987
+ hideDiscardBtn: [{ type: core.Input }],
22988
+ saveBtnLabel: [{ type: core.Input }],
22989
+ cancelBtnLabel: [{ type: core.Input }],
22990
+ discardBtnLabel: [{ type: core.Input }],
22991
+ showErrorIcon: [{ type: core.Input }],
22992
+ showZoomBtn: [{ type: core.Input }],
22993
+ onCloseRequest: [{ type: core.Input }],
22994
+ dialogStyle: [{ type: core.Input }],
22995
+ size: [{ type: core.Input }],
22996
+ title: [{ type: core.Input }],
22997
+ loading: [{ type: core.Input }],
22998
+ saveEmit: [{ type: core.Output }],
22999
+ closeEmit: [{ type: core.Output }],
23000
+ footerContent: [{ type: core.ContentChild, args: ["footerSlot", { static: false },] }]
23001
+ };
23002
+ return CommonDialogComponent;
23003
+ }());
23004
+ if (false) {
23005
+ /** @type {?} */
23006
+ CommonDialogComponent.prototype.translation;
23007
+ /** @type {?} */
23008
+ CommonDialogComponent.prototype.hideHeader;
23009
+ /** @type {?} */
23010
+ CommonDialogComponent.prototype.hideCloseIcon;
23011
+ /** @type {?} */
23012
+ CommonDialogComponent.prototype.hideCloseBtn;
23013
+ /** @type {?} */
23014
+ CommonDialogComponent.prototype.hideSaveBtn;
23015
+ /** @type {?} */
23016
+ CommonDialogComponent.prototype.hideDiscardBtn;
23017
+ /** @type {?} */
23018
+ CommonDialogComponent.prototype.saveBtnLabel;
23019
+ /** @type {?} */
23020
+ CommonDialogComponent.prototype.cancelBtnLabel;
23021
+ /** @type {?} */
23022
+ CommonDialogComponent.prototype.discardBtnLabel;
23023
+ /** @type {?} */
23024
+ CommonDialogComponent.prototype.showErrorIcon;
23025
+ /** @type {?} */
23026
+ CommonDialogComponent.prototype.showZoomBtn;
23027
+ /** @type {?} */
23028
+ CommonDialogComponent.prototype.onCloseRequest;
23029
+ /** @type {?} */
23030
+ CommonDialogComponent.prototype.dialogStyle;
23031
+ /** @type {?} */
23032
+ CommonDialogComponent.prototype.size;
23033
+ /** @type {?} */
23034
+ CommonDialogComponent.prototype.title;
23035
+ /** @type {?} */
23036
+ CommonDialogComponent.prototype.loading;
23037
+ /** @type {?} */
23038
+ CommonDialogComponent.prototype.saveEmit;
23039
+ /** @type {?} */
23040
+ CommonDialogComponent.prototype.closeEmit;
23041
+ /** @type {?} */
23042
+ CommonDialogComponent.prototype.defaultSize;
23043
+ /** @type {?} */
23044
+ CommonDialogComponent.prototype.footerContent;
23045
+ /** @type {?} */
23046
+ CommonDialogComponent.prototype.customFooter;
23047
+ /** @type {?} */
23048
+ CommonDialogComponent.prototype.dialogRef;
23049
+ }
23050
+
22846
23051
  /**
22847
23052
  * @fileoverview added by tsickle
22848
23053
  * Generated from: lib/service/icon-loader.service.ts
@@ -23070,155 +23275,6 @@
23070
23275
  return KeepAliveService;
23071
23276
  }());
23072
23277
 
23073
- /**
23074
- * @fileoverview added by tsickle
23075
- * Generated from: lib/dialog/common-dialog/index.component.ts
23076
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
23077
- */
23078
- var CommonDialogComponent = /** @class */ (function () {
23079
- function CommonDialogComponent(dialogRef) {
23080
- this.dialogRef = dialogRef;
23081
- // 隐藏元素相关属性
23082
- this.hideHeader = false;
23083
- this.hideCloseIcon = false;
23084
- this.hideCloseBtn = false;
23085
- this.hideSaveBtn = false;
23086
- this.saveBtnLabel = "";
23087
- this.cancelBtnLabel = "";
23088
- this.showErrorIcon = false;
23089
- // 显示相关属性
23090
- this.size = "";
23091
- this.title = "Dialog";
23092
- this.loading = false;
23093
- this.saveEmit = new core.EventEmitter();
23094
- this.closeEmit = new core.EventEmitter();
23095
- this.customFooter = false;
23096
- }
23097
- /**
23098
- * @return {?}
23099
- */
23100
- CommonDialogComponent.prototype.ngAfterContentInit = /**
23101
- * @return {?}
23102
- */
23103
- function () {
23104
- this.customFooter = !!this.footerContent;
23105
- };
23106
- /**
23107
- * @return {?}
23108
- */
23109
- CommonDialogComponent.prototype.ngOnInit = /**
23110
- * @return {?}
23111
- */
23112
- function () {
23113
- this.getInfo();
23114
- };
23115
- /**
23116
- * @param {?=} res
23117
- * @return {?}
23118
- */
23119
- CommonDialogComponent.prototype.onClose = /**
23120
- * @param {?=} res
23121
- * @return {?}
23122
- */
23123
- function (res) {
23124
- this.dialogRef.close(res);
23125
- this.closeEmit.emit(res);
23126
- };
23127
- /**
23128
- * @return {?}
23129
- */
23130
- CommonDialogComponent.prototype.onSave = /**
23131
- * @return {?}
23132
- */
23133
- function () {
23134
- var _this = this;
23135
- // 这里把关闭事件emit上去,但是必须使用箭头函数保存this对象
23136
- this.saveEmit.emit((/**
23137
- * @param {?} res
23138
- * @return {?}
23139
- */
23140
- function (res) {
23141
- _this.onClose(res);
23142
- }));
23143
- };
23144
- /**
23145
- * @private
23146
- * @return {?}
23147
- */
23148
- CommonDialogComponent.prototype.getInfo = /**
23149
- * @private
23150
- * @return {?}
23151
- */
23152
- function () {
23153
- this.translation = JSON.parse(localStorage.getItem("translation")) || {};
23154
- this.saveBtnLabel =
23155
- this.saveBtnLabel || this.translation.SAVE || ".SAVE";
23156
- this.cancelBtnLabel =
23157
- this.cancelBtnLabel || this.translation.CANCEL || ".CANCEL";
23158
- };
23159
- CommonDialogComponent.decorators = [
23160
- { type: core.Component, args: [{
23161
- selector: "kt-common-dialog",
23162
- template: "<div class=\"dialog\" [ngClass]=\"size\">\r\n\t<!-- \u5934\u90E8 -->\r\n\t<div *ngIf=\"!hideHeader\" mat-dialog-title class=\"dialog__header\">\r\n\t\t<div class=\"header__title\">\r\n\t\t\t<img\r\n\t\t\t\tsrc=\"../../../assets/img/notification-status-warning.svg\"\r\n\t\t\t\talt=\"\"\r\n\t\t\t\t*ngIf=\"showErrorIcon\"\r\n\t\t\t/>\r\n\t\t\t{{ title }}\r\n\t\t</div>\r\n\t\t<div\r\n\t\t\t*ngIf=\"!hideCloseIcon\"\r\n\t\t\tclass=\"header__close-btn\"\r\n\t\t\t(click)=\"onClose()\"\r\n\t\t>\r\n\t\t\t<img\r\n\t\t\t\tclass=\"header__close-icon\"\r\n\t\t\t\tsrc=\"../../../assets/img/close.svg\"\r\n\t\t\t/>\r\n\t\t</div>\r\n\t</div>\r\n\t<!-- \u5185\u5BB9 -->\r\n\t<div class=\"dialog__content\" mat-dialog-content>\r\n\t\t<ng-content></ng-content>\r\n\t</div>\r\n\t<!-- \u5E95\u90E8\u6309\u94AE -->\r\n\t<div mat-dialog-actions class=\"dialog__footer\">\r\n\t\t<ng-content select=\"[footerSlot]\"></ng-content>\r\n\t\t<!-- \u9ED8\u8BA4\u5C55\u793A\u4FDD\u5B58/\u5173\u95ED\u6309\u94AE -->\r\n\t\t<ng-container *ngIf=\"!customFooter\">\r\n\t\t\t<ng-template [ngTemplateOutlet]=\"defaultTemplate\"></ng-template>\r\n\t\t</ng-container>\r\n\t\t<ng-template #defaultTemplate>\r\n\t\t\t<button *ngIf=\"!hideCloseBtn\" class=\"e-btn\" [ngClass]=\"size\" mat-dialog-close>\r\n\t\t\t\t{{ cancelBtnLabel }}\r\n\t\t\t</button>\r\n\t\t\t<button *ngIf=\"!hideSaveBtn\" class=\"e-btn e-primary\" [ngClass]=\"size\" (click)=\"onSave()\">\r\n\t\t\t\t{{ saveBtnLabel }}\r\n\t\t\t</button>\r\n\t\t</ng-template>\r\n\t</div>\r\n\t<!-- loading -->\r\n\t<div class=\"dialog__loading\" [hidden]=\"!loading\">\r\n\t\t<img src=\"../../../assets/img/raise_loading.gif\" alt=\"\" />\r\n\t</div>\r\n</div>\r\n",
23163
- styles: [":host::ng-deep .dialog{position:relative;max-height:90vh;font-weight:400;overflow:hidden}:host::ng-deep .dialog.medium{width:500px;padding:20px}:host::ng-deep .dialog.small{width:350px;padding:20px 16px}:host::ng-deep .dialog.small .dialog__header{color:#002c4f;margin-bottom:16px}:host::ng-deep .dialog.small .dialog__header .header__title{font-size:13px;line-height:16px}:host::ng-deep .dialog.small .dialog__content{font-size:12px;line-height:16px}:host::ng-deep .dialog.small .dialog__footer{min-height:42px;padding:16px 0 0;font-size:12px;line-height:14px}:host::ng-deep .dialog.small .dialog__footer button{padding:6px 12px;min-width:60px}:host::ng-deep .dialog.large{width:800px;padding:20px}:host::ng-deep .dialog .dialog__header{width:100%;display:flex;justify-content:space-between;align-items:center;padding:0}:host::ng-deep .dialog .dialog__header::before{display:none}:host::ng-deep .dialog .dialog__header .header__title{color:#002c4f;font-family:Arial;font-size:15px;font-weight:700;line-height:18px;flex:1;overflow:hidden;display:flex;align-items:center;gap:8px}:host::ng-deep .dialog .dialog__header .header__close-icon{display:block;width:100%;height:100%}:host::ng-deep .dialog .dialog__header .header__close-btn{cursor:pointer;flex:0 0 20px;padding:4px;width:20px;height:20px;display:flex;justify-content:center;align-items:center}:host::ng-deep .dialog .dialog__content{width:100%;min-height:38px;position:relative;overflow-y:auto;overflow-x:hidden;margin:0;padding:0;font-size:13px;line-height:19px}:host::ng-deep .dialog .dialog__footer{position:relative;display:flex;align-items:center;justify-content:flex-end;padding:20px 0 0;font-size:13px;line-height:16px;margin-bottom:0}:host::ng-deep .dialog .dialog__footer button{border-radius:4px;padding:6px 16px;border:none;min-width:70px}:host::ng-deep .dialog .dialog__footer button+button{margin-left:12px}:host::ng-deep .dialog .dialog__footer .save-btn{background:#1364b3;border:1px solid #1364b3;font-weight:700;color:#fff}:host::ng-deep .dialog .dialog__footer .cancel-btn{border:1px solid #adb5bd;background:#fff}:host::ng-deep .dialog .dialog__loading{height:100%;background:0 0;position:fixed;top:0;left:0;right:0;bottom:0;z-index:9999}:host::ng-deep .dialog .dialog__loading img{position:absolute;left:50%;top:50%;width:40px;height:40px;transform:translate(-50%,-50%)}"]
23164
- }] }
23165
- ];
23166
- /** @nocollapse */
23167
- CommonDialogComponent.ctorParameters = function () { return [
23168
- { type: dialog.MatDialogRef }
23169
- ]; };
23170
- CommonDialogComponent.propDecorators = {
23171
- hideHeader: [{ type: core.Input }],
23172
- hideCloseIcon: [{ type: core.Input }],
23173
- hideCloseBtn: [{ type: core.Input }],
23174
- hideSaveBtn: [{ type: core.Input }],
23175
- saveBtnLabel: [{ type: core.Input }],
23176
- cancelBtnLabel: [{ type: core.Input }],
23177
- showErrorIcon: [{ type: core.Input }],
23178
- size: [{ type: core.Input }],
23179
- title: [{ type: core.Input }],
23180
- loading: [{ type: core.Input }],
23181
- saveEmit: [{ type: core.Output }],
23182
- closeEmit: [{ type: core.Output }],
23183
- footerContent: [{ type: core.ContentChild, args: ["footerSlot", { static: false },] }]
23184
- };
23185
- return CommonDialogComponent;
23186
- }());
23187
- if (false) {
23188
- /** @type {?} */
23189
- CommonDialogComponent.prototype.translation;
23190
- /** @type {?} */
23191
- CommonDialogComponent.prototype.hideHeader;
23192
- /** @type {?} */
23193
- CommonDialogComponent.prototype.hideCloseIcon;
23194
- /** @type {?} */
23195
- CommonDialogComponent.prototype.hideCloseBtn;
23196
- /** @type {?} */
23197
- CommonDialogComponent.prototype.hideSaveBtn;
23198
- /** @type {?} */
23199
- CommonDialogComponent.prototype.saveBtnLabel;
23200
- /** @type {?} */
23201
- CommonDialogComponent.prototype.cancelBtnLabel;
23202
- /** @type {?} */
23203
- CommonDialogComponent.prototype.showErrorIcon;
23204
- /** @type {?} */
23205
- CommonDialogComponent.prototype.size;
23206
- /** @type {?} */
23207
- CommonDialogComponent.prototype.title;
23208
- /** @type {?} */
23209
- CommonDialogComponent.prototype.loading;
23210
- /** @type {?} */
23211
- CommonDialogComponent.prototype.saveEmit;
23212
- /** @type {?} */
23213
- CommonDialogComponent.prototype.closeEmit;
23214
- /** @type {?} */
23215
- CommonDialogComponent.prototype.footerContent;
23216
- /** @type {?} */
23217
- CommonDialogComponent.prototype.customFooter;
23218
- /** @type {?} */
23219
- CommonDialogComponent.prototype.dialogRef;
23220
- }
23221
-
23222
23278
  /**
23223
23279
  * @fileoverview added by tsickle
23224
23280
  * Generated from: lib/raise-common-lib.module.ts
@@ -23256,7 +23312,7 @@
23256
23312
  RsCommentaryComponent,
23257
23313
  RSNavCardGroupComponent,
23258
23314
  RSToolbarComponent,
23259
- TruncatedTextToggleComponent
23315
+ TruncatedTextToggleComponent,
23260
23316
  ],
23261
23317
  imports: [
23262
23318
  common.CommonModule,
@@ -23413,7 +23469,8 @@
23413
23469
  RsCommentaryComponent,
23414
23470
  RSNavCardGroupComponent,
23415
23471
  RSToolbarComponent,
23416
- TruncatedTextToggleComponent
23472
+ TruncatedTextToggleComponent,
23473
+ CommonDialogComponent,
23417
23474
  ],
23418
23475
  entryComponents: [
23419
23476
  NewActionNotificationComponent,
@@ -23427,6 +23484,7 @@
23427
23484
  }());
23428
23485
 
23429
23486
  exports.CheckboxGroupComponent = CheckboxGroupComponent;
23487
+ exports.CommonDialogComponent = CommonDialogComponent;
23430
23488
  exports.CommonFunctionService = CommonFunctionService;
23431
23489
  exports.CommonGridComponent = CommonGridComponent;
23432
23490
  exports.DefaultDrawerConfig = DefaultDrawerConfig;
@@ -23463,8 +23521,7 @@
23463
23521
  exports.filterShowSection = filterShowSection;
23464
23522
  exports.ɵa = Debounce;
23465
23523
  exports.ɵb = NewActionNotificationComponent;
23466
- exports.ɵc = CommonDialogComponent;
23467
- exports.ɵd = CommonDeleteComponent;
23524
+ exports.ɵc = CommonDeleteComponent;
23468
23525
 
23469
23526
  Object.defineProperty(exports, '__esModule', { value: true });
23470
23527