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.
@@ -1503,6 +1503,8 @@ if (false) {
1503
1503
  /** @type {?|undefined} */
1504
1504
  DialogConfig.prototype.cancelBtnLabel;
1505
1505
  /** @type {?|undefined} */
1506
+ DialogConfig.prototype.discardBtnLabel;
1507
+ /** @type {?|undefined} */
1506
1508
  DialogConfig.prototype.showErrorIcon;
1507
1509
  /** @type {?|undefined} */
1508
1510
  DialogConfig.prototype.hideCloseIcon;
@@ -1512,6 +1514,12 @@ if (false) {
1512
1514
  DialogConfig.prototype.hideSaveBtn;
1513
1515
  /** @type {?|undefined} */
1514
1516
  DialogConfig.prototype.hideCloseBtn;
1517
+ /** @type {?|undefined} */
1518
+ DialogConfig.prototype.hideDiscardBtn;
1519
+ /** @type {?|undefined} */
1520
+ DialogConfig.prototype.showZoomBtn;
1521
+ /** @type {?|undefined} */
1522
+ DialogConfig.prototype.onCloseRequest;
1515
1523
  }
1516
1524
  class CommonDeleteComponent {
1517
1525
  /**
@@ -1524,8 +1532,10 @@ class CommonDeleteComponent {
1524
1532
  this.title = "";
1525
1533
  this.saveBtnLabel = "";
1526
1534
  this.cancelBtnLabel = "";
1535
+ this.discardBtnLabel = "";
1527
1536
  this.description = "";
1528
1537
  this.size = "small";
1538
+ this.showZoomBtn = false;
1529
1539
  }
1530
1540
  /**
1531
1541
  * @return {?}
@@ -1538,24 +1548,19 @@ class CommonDeleteComponent {
1538
1548
  this.data.saveBtnLabel || this.translation.DELETE || ".DELETE";
1539
1549
  this.cancelBtnLabel =
1540
1550
  this.data.cancelBtnLabel || this.translation.CANCEL || ".CANCEL";
1551
+ this.discardBtnLabel = this.data.discardBtnLabel;
1541
1552
  this.description =
1542
1553
  this.data.description ||
1543
1554
  this.translation.IF_YOU_DELETE_THIS_RECORD_WARNING ||
1544
1555
  ".If you delete this record, you won't be able to recover it. Do you want to delete it?";
1545
1556
  this.size = this.data.size || "small";
1546
- }
1547
- /**
1548
- * @param {?} e
1549
- * @return {?}
1550
- */
1551
- onSave(e) {
1552
- this.dialogRef.close(e);
1557
+ this.showZoomBtn = this.data.showZoomBtn || false;
1553
1558
  }
1554
1559
  }
1555
1560
  CommonDeleteComponent.decorators = [
1556
1561
  { type: Component, args: [{
1557
1562
  selector: "kt-common-delete-dialog",
1558
- 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",
1563
+ 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",
1559
1564
  styles: [".mapping-dialog{color:#44566c;font-family:Arial;font-size:12px;line-height:16px;white-space:pre-line}"]
1560
1565
  }] }
1561
1566
  ];
@@ -1574,10 +1579,14 @@ if (false) {
1574
1579
  /** @type {?} */
1575
1580
  CommonDeleteComponent.prototype.cancelBtnLabel;
1576
1581
  /** @type {?} */
1582
+ CommonDeleteComponent.prototype.discardBtnLabel;
1583
+ /** @type {?} */
1577
1584
  CommonDeleteComponent.prototype.description;
1578
1585
  /** @type {?} */
1579
1586
  CommonDeleteComponent.prototype.size;
1580
1587
  /** @type {?} */
1588
+ CommonDeleteComponent.prototype.showZoomBtn;
1589
+ /** @type {?} */
1581
1590
  CommonDeleteComponent.prototype.data;
1582
1591
  /** @type {?} */
1583
1592
  CommonDeleteComponent.prototype.dialogRef;
@@ -1674,11 +1683,14 @@ class DialogService {
1674
1683
  /** @type {?} */
1675
1684
  let defaultData = {
1676
1685
  title: this.translation.UNSAVED_CHANGES || ".UNSAVED_CHANGES",
1677
- description: this.translation
1678
- .YOU_HAVE_UNSAVED_CHANGED_ARE_YOU_SURE_YOU_WANT_TO_DISCARD_THEM ||
1679
- ".YOU_HAVE_UNSAVED_CHANGED_ARE_YOU_SURE_YOU_WANT_TO_DISCARD_THEM",
1680
- saveBtnLabel: this.translation.DISCARD_CHANGES || ".DISCARD_CHANGES",
1681
- cancelBtnLabel: this.translation.CONTINUE_EDITING || ".CONTINUE_EDITING",
1686
+ description: this.translation.YOU_HAVE_UNSAVED_CHANGES_DO_YOU_WANT_TO_CONTINUE ||
1687
+ ".YOU_HAVE_UNSAVED_CHANGES_DO_YOU_WANT_TO_CONTINUE",
1688
+ saveBtnLabel: this.translation.SAVE_AND_LEAVE || ".SAVE_AND_LEAVE",
1689
+ discardBtnLabel: this.translation.DISCARD_AND_LEAVE || ".DISCARD_AND_LEAVE",
1690
+ cancelBtnLabel: this.translation.CANCEL || ".CANCEL",
1691
+ hideDiscardBtn: false,
1692
+ size: "medium",
1693
+ hideCloseIcon: true,
1682
1694
  };
1683
1695
  if (data) {
1684
1696
  data = Object.assign(defaultData, data);
@@ -21778,6 +21790,182 @@ if (false) {
21778
21790
  ToolbarItemComponent.prototype.ImageType;
21779
21791
  }
21780
21792
 
21793
+ /**
21794
+ * @fileoverview added by tsickle
21795
+ * Generated from: lib/dialog/common-dialog/index.component.ts
21796
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
21797
+ */
21798
+ class CommonDialogComponent {
21799
+ /**
21800
+ * @param {?} dialogRef
21801
+ */
21802
+ constructor(dialogRef) {
21803
+ this.dialogRef = dialogRef;
21804
+ // 隐藏元素相关属性
21805
+ this.hideHeader = false;
21806
+ this.hideCloseIcon = false;
21807
+ this.hideCloseBtn = false;
21808
+ this.hideSaveBtn = false;
21809
+ this.hideDiscardBtn = false;
21810
+ this.saveBtnLabel = "";
21811
+ this.cancelBtnLabel = "";
21812
+ this.discardBtnLabel = "";
21813
+ this.showErrorIcon = false;
21814
+ this.showZoomBtn = false;
21815
+ // 显示相关属性
21816
+ this.dialogStyle = {};
21817
+ this.size = "";
21818
+ this.title = "Dialog";
21819
+ this.loading = false;
21820
+ this.saveEmit = new EventEmitter();
21821
+ this.closeEmit = new EventEmitter();
21822
+ this.defaultSize = "";
21823
+ this.customFooter = false;
21824
+ }
21825
+ /**
21826
+ * @return {?}
21827
+ */
21828
+ ngAfterContentInit() {
21829
+ this.customFooter = !!this.footerContent;
21830
+ }
21831
+ /**
21832
+ * @return {?}
21833
+ */
21834
+ ngOnInit() {
21835
+ this.getInfo();
21836
+ }
21837
+ /**
21838
+ * @return {?}
21839
+ */
21840
+ onClose() {
21841
+ if (this.onCloseRequest) {
21842
+ this.onCloseRequest().then((/**
21843
+ * @param {?} confirmed
21844
+ * @return {?}
21845
+ */
21846
+ (confirmed) => {
21847
+ if (confirmed) {
21848
+ this.dialogRef.close("close");
21849
+ }
21850
+ }));
21851
+ }
21852
+ else {
21853
+ this.dialogRef.close("close");
21854
+ }
21855
+ }
21856
+ /**
21857
+ * @return {?}
21858
+ */
21859
+ onZoom() {
21860
+ if (this.size === "largest") {
21861
+ this.size = this.defaultSize; // 恢复到原始大小
21862
+ }
21863
+ else {
21864
+ this.size = "largest"; // 设置为最大化
21865
+ }
21866
+ }
21867
+ /**
21868
+ * @return {?}
21869
+ */
21870
+ onSave() {
21871
+ this.dialogRef.close("save");
21872
+ }
21873
+ /**
21874
+ * @return {?}
21875
+ */
21876
+ onDiscard() {
21877
+ this.dialogRef.close("discard");
21878
+ }
21879
+ /**
21880
+ * @private
21881
+ * @return {?}
21882
+ */
21883
+ getInfo() {
21884
+ this.translation = JSON.parse(localStorage.getItem("translation")) || {};
21885
+ this.saveBtnLabel = this.saveBtnLabel || this.translation.SAVE || ".SAVE";
21886
+ this.cancelBtnLabel =
21887
+ this.cancelBtnLabel || this.translation.CANCEL || ".CANCEL";
21888
+ this.defaultSize = this.size;
21889
+ }
21890
+ }
21891
+ CommonDialogComponent.decorators = [
21892
+ { type: Component, args: [{
21893
+ selector: "rs-common-dialog",
21894
+ 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",
21895
+ 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%)}"]
21896
+ }] }
21897
+ ];
21898
+ /** @nocollapse */
21899
+ CommonDialogComponent.ctorParameters = () => [
21900
+ { type: MatDialogRef }
21901
+ ];
21902
+ CommonDialogComponent.propDecorators = {
21903
+ hideHeader: [{ type: Input }],
21904
+ hideCloseIcon: [{ type: Input }],
21905
+ hideCloseBtn: [{ type: Input }],
21906
+ hideSaveBtn: [{ type: Input }],
21907
+ hideDiscardBtn: [{ type: Input }],
21908
+ saveBtnLabel: [{ type: Input }],
21909
+ cancelBtnLabel: [{ type: Input }],
21910
+ discardBtnLabel: [{ type: Input }],
21911
+ showErrorIcon: [{ type: Input }],
21912
+ showZoomBtn: [{ type: Input }],
21913
+ onCloseRequest: [{ type: Input }],
21914
+ dialogStyle: [{ type: Input }],
21915
+ size: [{ type: Input }],
21916
+ title: [{ type: Input }],
21917
+ loading: [{ type: Input }],
21918
+ saveEmit: [{ type: Output }],
21919
+ closeEmit: [{ type: Output }],
21920
+ footerContent: [{ type: ContentChild, args: ["footerSlot", { static: false },] }]
21921
+ };
21922
+ if (false) {
21923
+ /** @type {?} */
21924
+ CommonDialogComponent.prototype.translation;
21925
+ /** @type {?} */
21926
+ CommonDialogComponent.prototype.hideHeader;
21927
+ /** @type {?} */
21928
+ CommonDialogComponent.prototype.hideCloseIcon;
21929
+ /** @type {?} */
21930
+ CommonDialogComponent.prototype.hideCloseBtn;
21931
+ /** @type {?} */
21932
+ CommonDialogComponent.prototype.hideSaveBtn;
21933
+ /** @type {?} */
21934
+ CommonDialogComponent.prototype.hideDiscardBtn;
21935
+ /** @type {?} */
21936
+ CommonDialogComponent.prototype.saveBtnLabel;
21937
+ /** @type {?} */
21938
+ CommonDialogComponent.prototype.cancelBtnLabel;
21939
+ /** @type {?} */
21940
+ CommonDialogComponent.prototype.discardBtnLabel;
21941
+ /** @type {?} */
21942
+ CommonDialogComponent.prototype.showErrorIcon;
21943
+ /** @type {?} */
21944
+ CommonDialogComponent.prototype.showZoomBtn;
21945
+ /** @type {?} */
21946
+ CommonDialogComponent.prototype.onCloseRequest;
21947
+ /** @type {?} */
21948
+ CommonDialogComponent.prototype.dialogStyle;
21949
+ /** @type {?} */
21950
+ CommonDialogComponent.prototype.size;
21951
+ /** @type {?} */
21952
+ CommonDialogComponent.prototype.title;
21953
+ /** @type {?} */
21954
+ CommonDialogComponent.prototype.loading;
21955
+ /** @type {?} */
21956
+ CommonDialogComponent.prototype.saveEmit;
21957
+ /** @type {?} */
21958
+ CommonDialogComponent.prototype.closeEmit;
21959
+ /** @type {?} */
21960
+ CommonDialogComponent.prototype.defaultSize;
21961
+ /** @type {?} */
21962
+ CommonDialogComponent.prototype.footerContent;
21963
+ /** @type {?} */
21964
+ CommonDialogComponent.prototype.customFooter;
21965
+ /** @type {?} */
21966
+ CommonDialogComponent.prototype.dialogRef;
21967
+ }
21968
+
21781
21969
  /**
21782
21970
  * @fileoverview added by tsickle
21783
21971
  * Generated from: lib/service/icon-loader.service.ts
@@ -21962,139 +22150,6 @@ KeepAliveService.decorators = [
21962
22150
  ];
21963
22151
  /** @nocollapse */ KeepAliveService.ngInjectableDef = ɵɵdefineInjectable({ factory: function KeepAliveService_Factory() { return new KeepAliveService(); }, token: KeepAliveService, providedIn: "root" });
21964
22152
 
21965
- /**
21966
- * @fileoverview added by tsickle
21967
- * Generated from: lib/dialog/common-dialog/index.component.ts
21968
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
21969
- */
21970
- class CommonDialogComponent {
21971
- /**
21972
- * @param {?} dialogRef
21973
- */
21974
- constructor(dialogRef) {
21975
- this.dialogRef = dialogRef;
21976
- // 隐藏元素相关属性
21977
- this.hideHeader = false;
21978
- this.hideCloseIcon = false;
21979
- this.hideCloseBtn = false;
21980
- this.hideSaveBtn = false;
21981
- this.saveBtnLabel = "";
21982
- this.cancelBtnLabel = "";
21983
- this.showErrorIcon = false;
21984
- // 显示相关属性
21985
- this.size = "";
21986
- this.title = "Dialog";
21987
- this.loading = false;
21988
- this.saveEmit = new EventEmitter();
21989
- this.closeEmit = new EventEmitter();
21990
- this.customFooter = false;
21991
- }
21992
- /**
21993
- * @return {?}
21994
- */
21995
- ngAfterContentInit() {
21996
- this.customFooter = !!this.footerContent;
21997
- }
21998
- /**
21999
- * @return {?}
22000
- */
22001
- ngOnInit() {
22002
- this.getInfo();
22003
- }
22004
- /**
22005
- * @param {?=} res
22006
- * @return {?}
22007
- */
22008
- onClose(res) {
22009
- this.dialogRef.close(res);
22010
- this.closeEmit.emit(res);
22011
- }
22012
- /**
22013
- * @return {?}
22014
- */
22015
- onSave() {
22016
- // 这里把关闭事件emit上去,但是必须使用箭头函数保存this对象
22017
- this.saveEmit.emit((/**
22018
- * @param {?} res
22019
- * @return {?}
22020
- */
22021
- (res) => {
22022
- this.onClose(res);
22023
- }));
22024
- }
22025
- /**
22026
- * @private
22027
- * @return {?}
22028
- */
22029
- getInfo() {
22030
- this.translation = JSON.parse(localStorage.getItem("translation")) || {};
22031
- this.saveBtnLabel =
22032
- this.saveBtnLabel || this.translation.SAVE || ".SAVE";
22033
- this.cancelBtnLabel =
22034
- this.cancelBtnLabel || this.translation.CANCEL || ".CANCEL";
22035
- }
22036
- }
22037
- CommonDialogComponent.decorators = [
22038
- { type: Component, args: [{
22039
- selector: "kt-common-dialog",
22040
- 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",
22041
- 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%)}"]
22042
- }] }
22043
- ];
22044
- /** @nocollapse */
22045
- CommonDialogComponent.ctorParameters = () => [
22046
- { type: MatDialogRef }
22047
- ];
22048
- CommonDialogComponent.propDecorators = {
22049
- hideHeader: [{ type: Input }],
22050
- hideCloseIcon: [{ type: Input }],
22051
- hideCloseBtn: [{ type: Input }],
22052
- hideSaveBtn: [{ type: Input }],
22053
- saveBtnLabel: [{ type: Input }],
22054
- cancelBtnLabel: [{ type: Input }],
22055
- showErrorIcon: [{ type: Input }],
22056
- size: [{ type: Input }],
22057
- title: [{ type: Input }],
22058
- loading: [{ type: Input }],
22059
- saveEmit: [{ type: Output }],
22060
- closeEmit: [{ type: Output }],
22061
- footerContent: [{ type: ContentChild, args: ["footerSlot", { static: false },] }]
22062
- };
22063
- if (false) {
22064
- /** @type {?} */
22065
- CommonDialogComponent.prototype.translation;
22066
- /** @type {?} */
22067
- CommonDialogComponent.prototype.hideHeader;
22068
- /** @type {?} */
22069
- CommonDialogComponent.prototype.hideCloseIcon;
22070
- /** @type {?} */
22071
- CommonDialogComponent.prototype.hideCloseBtn;
22072
- /** @type {?} */
22073
- CommonDialogComponent.prototype.hideSaveBtn;
22074
- /** @type {?} */
22075
- CommonDialogComponent.prototype.saveBtnLabel;
22076
- /** @type {?} */
22077
- CommonDialogComponent.prototype.cancelBtnLabel;
22078
- /** @type {?} */
22079
- CommonDialogComponent.prototype.showErrorIcon;
22080
- /** @type {?} */
22081
- CommonDialogComponent.prototype.size;
22082
- /** @type {?} */
22083
- CommonDialogComponent.prototype.title;
22084
- /** @type {?} */
22085
- CommonDialogComponent.prototype.loading;
22086
- /** @type {?} */
22087
- CommonDialogComponent.prototype.saveEmit;
22088
- /** @type {?} */
22089
- CommonDialogComponent.prototype.closeEmit;
22090
- /** @type {?} */
22091
- CommonDialogComponent.prototype.footerContent;
22092
- /** @type {?} */
22093
- CommonDialogComponent.prototype.customFooter;
22094
- /** @type {?} */
22095
- CommonDialogComponent.prototype.dialogRef;
22096
- }
22097
-
22098
22153
  /**
22099
22154
  * @fileoverview added by tsickle
22100
22155
  * Generated from: lib/raise-common-lib.module.ts
@@ -22131,7 +22186,7 @@ RaiseCommonLibModule.decorators = [
22131
22186
  RsCommentaryComponent,
22132
22187
  RSNavCardGroupComponent,
22133
22188
  RSToolbarComponent,
22134
- TruncatedTextToggleComponent
22189
+ TruncatedTextToggleComponent,
22135
22190
  ],
22136
22191
  imports: [
22137
22192
  CommonModule,
@@ -22288,7 +22343,8 @@ RaiseCommonLibModule.decorators = [
22288
22343
  RsCommentaryComponent,
22289
22344
  RSNavCardGroupComponent,
22290
22345
  RSToolbarComponent,
22291
- TruncatedTextToggleComponent
22346
+ TruncatedTextToggleComponent,
22347
+ CommonDialogComponent,
22292
22348
  ],
22293
22349
  entryComponents: [
22294
22350
  NewActionNotificationComponent,
@@ -22311,5 +22367,5 @@ RaiseCommonLibModule.decorators = [
22311
22367
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
22312
22368
  */
22313
22369
 
22314
- export { CheckboxGroupComponent, CommonFunctionService, CommonGridComponent, DefaultDrawerConfig, DialogService, DrawerComponent, DrawerFormComponent, DrawerService, EmailPattern, EncryptedInputComponent, FloatBoxComponent, GridActionComponent, GridActionItemComponent, GridBoxComponent, IconLoaderService, KeepAliveService, MainContainerComponent, MessageType, MultiTabComponent, RSAsideComponent, RSFooterComponent, RSHeaderComponent, RSNavCardGroupComponent, RSToolbarComponent, RadioGroupComponent, RaiseCommonLibModule, RsCommentaryComponent, RsPageListComponent, RsPageTabComponent, SwitchInputComponent, TagInputComponent, ToolbarItemComponent, TranslationService, TruncatedTextToggleComponent, filterShowSection, Debounce as ɵa, NewActionNotificationComponent as ɵb, CommonDialogComponent as ɵc, CommonDeleteComponent as ɵd };
22370
+ export { CheckboxGroupComponent, CommonDialogComponent, CommonFunctionService, CommonGridComponent, DefaultDrawerConfig, DialogService, DrawerComponent, DrawerFormComponent, DrawerService, EmailPattern, EncryptedInputComponent, FloatBoxComponent, GridActionComponent, GridActionItemComponent, GridBoxComponent, IconLoaderService, KeepAliveService, MainContainerComponent, MessageType, MultiTabComponent, RSAsideComponent, RSFooterComponent, RSHeaderComponent, RSNavCardGroupComponent, RSToolbarComponent, RadioGroupComponent, RaiseCommonLibModule, RsCommentaryComponent, RsPageListComponent, RsPageTabComponent, SwitchInputComponent, TagInputComponent, ToolbarItemComponent, TranslationService, TruncatedTextToggleComponent, filterShowSection, Debounce as ɵa, NewActionNotificationComponent as ɵb, CommonDeleteComponent as ɵc };
22315
22371
  //# sourceMappingURL=raise-common-lib.js.map