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.
@@ -1758,6 +1758,8 @@ if (false) {
1758
1758
  /** @type {?|undefined} */
1759
1759
  DialogConfig.prototype.cancelBtnLabel;
1760
1760
  /** @type {?|undefined} */
1761
+ DialogConfig.prototype.discardBtnLabel;
1762
+ /** @type {?|undefined} */
1761
1763
  DialogConfig.prototype.showErrorIcon;
1762
1764
  /** @type {?|undefined} */
1763
1765
  DialogConfig.prototype.hideCloseIcon;
@@ -1767,6 +1769,12 @@ if (false) {
1767
1769
  DialogConfig.prototype.hideSaveBtn;
1768
1770
  /** @type {?|undefined} */
1769
1771
  DialogConfig.prototype.hideCloseBtn;
1772
+ /** @type {?|undefined} */
1773
+ DialogConfig.prototype.hideDiscardBtn;
1774
+ /** @type {?|undefined} */
1775
+ DialogConfig.prototype.showZoomBtn;
1776
+ /** @type {?|undefined} */
1777
+ DialogConfig.prototype.onCloseRequest;
1770
1778
  }
1771
1779
  var CommonDeleteComponent = /** @class */ (function () {
1772
1780
  function CommonDeleteComponent(data, dialogRef) {
@@ -1775,8 +1783,10 @@ var CommonDeleteComponent = /** @class */ (function () {
1775
1783
  this.title = "";
1776
1784
  this.saveBtnLabel = "";
1777
1785
  this.cancelBtnLabel = "";
1786
+ this.discardBtnLabel = "";
1778
1787
  this.description = "";
1779
1788
  this.size = "small";
1789
+ this.showZoomBtn = false;
1780
1790
  }
1781
1791
  /**
1782
1792
  * @return {?}
@@ -1792,27 +1802,18 @@ var CommonDeleteComponent = /** @class */ (function () {
1792
1802
  this.data.saveBtnLabel || this.translation.DELETE || ".DELETE";
1793
1803
  this.cancelBtnLabel =
1794
1804
  this.data.cancelBtnLabel || this.translation.CANCEL || ".CANCEL";
1805
+ this.discardBtnLabel = this.data.discardBtnLabel;
1795
1806
  this.description =
1796
1807
  this.data.description ||
1797
1808
  this.translation.IF_YOU_DELETE_THIS_RECORD_WARNING ||
1798
1809
  ".If you delete this record, you won't be able to recover it. Do you want to delete it?";
1799
1810
  this.size = this.data.size || "small";
1800
- };
1801
- /**
1802
- * @param {?} e
1803
- * @return {?}
1804
- */
1805
- CommonDeleteComponent.prototype.onSave = /**
1806
- * @param {?} e
1807
- * @return {?}
1808
- */
1809
- function (e) {
1810
- this.dialogRef.close(e);
1811
+ this.showZoomBtn = this.data.showZoomBtn || false;
1811
1812
  };
1812
1813
  CommonDeleteComponent.decorators = [
1813
1814
  { type: Component, args: [{
1814
1815
  selector: "kt-common-delete-dialog",
1815
- 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",
1816
+ 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",
1816
1817
  styles: [".mapping-dialog{color:#44566c;font-family:Arial;font-size:12px;line-height:16px;white-space:pre-line}"]
1817
1818
  }] }
1818
1819
  ];
@@ -1833,10 +1834,14 @@ if (false) {
1833
1834
  /** @type {?} */
1834
1835
  CommonDeleteComponent.prototype.cancelBtnLabel;
1835
1836
  /** @type {?} */
1837
+ CommonDeleteComponent.prototype.discardBtnLabel;
1838
+ /** @type {?} */
1836
1839
  CommonDeleteComponent.prototype.description;
1837
1840
  /** @type {?} */
1838
1841
  CommonDeleteComponent.prototype.size;
1839
1842
  /** @type {?} */
1843
+ CommonDeleteComponent.prototype.showZoomBtn;
1844
+ /** @type {?} */
1840
1845
  CommonDeleteComponent.prototype.data;
1841
1846
  /** @type {?} */
1842
1847
  CommonDeleteComponent.prototype.dialogRef;
@@ -1958,11 +1963,14 @@ var DialogService = /** @class */ (function () {
1958
1963
  /** @type {?} */
1959
1964
  var defaultData = {
1960
1965
  title: this.translation.UNSAVED_CHANGES || ".UNSAVED_CHANGES",
1961
- description: this.translation
1962
- .YOU_HAVE_UNSAVED_CHANGED_ARE_YOU_SURE_YOU_WANT_TO_DISCARD_THEM ||
1963
- ".YOU_HAVE_UNSAVED_CHANGED_ARE_YOU_SURE_YOU_WANT_TO_DISCARD_THEM",
1964
- saveBtnLabel: this.translation.DISCARD_CHANGES || ".DISCARD_CHANGES",
1965
- cancelBtnLabel: this.translation.CONTINUE_EDITING || ".CONTINUE_EDITING",
1966
+ description: this.translation.YOU_HAVE_UNSAVED_CHANGES_DO_YOU_WANT_TO_CONTINUE ||
1967
+ ".YOU_HAVE_UNSAVED_CHANGES_DO_YOU_WANT_TO_CONTINUE",
1968
+ saveBtnLabel: this.translation.SAVE_AND_LEAVE || ".SAVE_AND_LEAVE",
1969
+ discardBtnLabel: this.translation.DISCARD_AND_LEAVE || ".DISCARD_AND_LEAVE",
1970
+ cancelBtnLabel: this.translation.CANCEL || ".CANCEL",
1971
+ hideDiscardBtn: false,
1972
+ size: "medium",
1973
+ hideCloseIcon: true,
1966
1974
  };
1967
1975
  if (data) {
1968
1976
  data = Object.assign(defaultData, data);
@@ -22651,6 +22659,203 @@ if (false) {
22651
22659
  ToolbarItemComponent.prototype.ImageType;
22652
22660
  }
22653
22661
 
22662
+ /**
22663
+ * @fileoverview added by tsickle
22664
+ * Generated from: lib/dialog/common-dialog/index.component.ts
22665
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
22666
+ */
22667
+ var CommonDialogComponent = /** @class */ (function () {
22668
+ function CommonDialogComponent(dialogRef) {
22669
+ this.dialogRef = dialogRef;
22670
+ // 隐藏元素相关属性
22671
+ this.hideHeader = false;
22672
+ this.hideCloseIcon = false;
22673
+ this.hideCloseBtn = false;
22674
+ this.hideSaveBtn = false;
22675
+ this.hideDiscardBtn = false;
22676
+ this.saveBtnLabel = "";
22677
+ this.cancelBtnLabel = "";
22678
+ this.discardBtnLabel = "";
22679
+ this.showErrorIcon = false;
22680
+ this.showZoomBtn = false;
22681
+ // 显示相关属性
22682
+ this.dialogStyle = {};
22683
+ this.size = "";
22684
+ this.title = "Dialog";
22685
+ this.loading = false;
22686
+ this.saveEmit = new EventEmitter();
22687
+ this.closeEmit = new EventEmitter();
22688
+ this.defaultSize = "";
22689
+ this.customFooter = false;
22690
+ }
22691
+ /**
22692
+ * @return {?}
22693
+ */
22694
+ CommonDialogComponent.prototype.ngAfterContentInit = /**
22695
+ * @return {?}
22696
+ */
22697
+ function () {
22698
+ this.customFooter = !!this.footerContent;
22699
+ };
22700
+ /**
22701
+ * @return {?}
22702
+ */
22703
+ CommonDialogComponent.prototype.ngOnInit = /**
22704
+ * @return {?}
22705
+ */
22706
+ function () {
22707
+ this.getInfo();
22708
+ };
22709
+ /**
22710
+ * @return {?}
22711
+ */
22712
+ CommonDialogComponent.prototype.onClose = /**
22713
+ * @return {?}
22714
+ */
22715
+ function () {
22716
+ var _this = this;
22717
+ if (this.onCloseRequest) {
22718
+ this.onCloseRequest().then((/**
22719
+ * @param {?} confirmed
22720
+ * @return {?}
22721
+ */
22722
+ function (confirmed) {
22723
+ if (confirmed) {
22724
+ _this.dialogRef.close("close");
22725
+ }
22726
+ }));
22727
+ }
22728
+ else {
22729
+ this.dialogRef.close("close");
22730
+ }
22731
+ };
22732
+ /**
22733
+ * @return {?}
22734
+ */
22735
+ CommonDialogComponent.prototype.onZoom = /**
22736
+ * @return {?}
22737
+ */
22738
+ function () {
22739
+ if (this.size === "largest") {
22740
+ this.size = this.defaultSize; // 恢复到原始大小
22741
+ }
22742
+ else {
22743
+ this.size = "largest"; // 设置为最大化
22744
+ }
22745
+ };
22746
+ /**
22747
+ * @return {?}
22748
+ */
22749
+ CommonDialogComponent.prototype.onSave = /**
22750
+ * @return {?}
22751
+ */
22752
+ function () {
22753
+ this.dialogRef.close("save");
22754
+ };
22755
+ /**
22756
+ * @return {?}
22757
+ */
22758
+ CommonDialogComponent.prototype.onDiscard = /**
22759
+ * @return {?}
22760
+ */
22761
+ function () {
22762
+ this.dialogRef.close("discard");
22763
+ };
22764
+ /**
22765
+ * @private
22766
+ * @return {?}
22767
+ */
22768
+ CommonDialogComponent.prototype.getInfo = /**
22769
+ * @private
22770
+ * @return {?}
22771
+ */
22772
+ function () {
22773
+ this.translation = JSON.parse(localStorage.getItem("translation")) || {};
22774
+ this.saveBtnLabel = this.saveBtnLabel || this.translation.SAVE || ".SAVE";
22775
+ this.cancelBtnLabel =
22776
+ this.cancelBtnLabel || this.translation.CANCEL || ".CANCEL";
22777
+ this.defaultSize = this.size;
22778
+ };
22779
+ CommonDialogComponent.decorators = [
22780
+ { type: Component, args: [{
22781
+ selector: "rs-common-dialog",
22782
+ 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",
22783
+ 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%)}"]
22784
+ }] }
22785
+ ];
22786
+ /** @nocollapse */
22787
+ CommonDialogComponent.ctorParameters = function () { return [
22788
+ { type: MatDialogRef }
22789
+ ]; };
22790
+ CommonDialogComponent.propDecorators = {
22791
+ hideHeader: [{ type: Input }],
22792
+ hideCloseIcon: [{ type: Input }],
22793
+ hideCloseBtn: [{ type: Input }],
22794
+ hideSaveBtn: [{ type: Input }],
22795
+ hideDiscardBtn: [{ type: Input }],
22796
+ saveBtnLabel: [{ type: Input }],
22797
+ cancelBtnLabel: [{ type: Input }],
22798
+ discardBtnLabel: [{ type: Input }],
22799
+ showErrorIcon: [{ type: Input }],
22800
+ showZoomBtn: [{ type: Input }],
22801
+ onCloseRequest: [{ type: Input }],
22802
+ dialogStyle: [{ type: Input }],
22803
+ size: [{ type: Input }],
22804
+ title: [{ type: Input }],
22805
+ loading: [{ type: Input }],
22806
+ saveEmit: [{ type: Output }],
22807
+ closeEmit: [{ type: Output }],
22808
+ footerContent: [{ type: ContentChild, args: ["footerSlot", { static: false },] }]
22809
+ };
22810
+ return CommonDialogComponent;
22811
+ }());
22812
+ if (false) {
22813
+ /** @type {?} */
22814
+ CommonDialogComponent.prototype.translation;
22815
+ /** @type {?} */
22816
+ CommonDialogComponent.prototype.hideHeader;
22817
+ /** @type {?} */
22818
+ CommonDialogComponent.prototype.hideCloseIcon;
22819
+ /** @type {?} */
22820
+ CommonDialogComponent.prototype.hideCloseBtn;
22821
+ /** @type {?} */
22822
+ CommonDialogComponent.prototype.hideSaveBtn;
22823
+ /** @type {?} */
22824
+ CommonDialogComponent.prototype.hideDiscardBtn;
22825
+ /** @type {?} */
22826
+ CommonDialogComponent.prototype.saveBtnLabel;
22827
+ /** @type {?} */
22828
+ CommonDialogComponent.prototype.cancelBtnLabel;
22829
+ /** @type {?} */
22830
+ CommonDialogComponent.prototype.discardBtnLabel;
22831
+ /** @type {?} */
22832
+ CommonDialogComponent.prototype.showErrorIcon;
22833
+ /** @type {?} */
22834
+ CommonDialogComponent.prototype.showZoomBtn;
22835
+ /** @type {?} */
22836
+ CommonDialogComponent.prototype.onCloseRequest;
22837
+ /** @type {?} */
22838
+ CommonDialogComponent.prototype.dialogStyle;
22839
+ /** @type {?} */
22840
+ CommonDialogComponent.prototype.size;
22841
+ /** @type {?} */
22842
+ CommonDialogComponent.prototype.title;
22843
+ /** @type {?} */
22844
+ CommonDialogComponent.prototype.loading;
22845
+ /** @type {?} */
22846
+ CommonDialogComponent.prototype.saveEmit;
22847
+ /** @type {?} */
22848
+ CommonDialogComponent.prototype.closeEmit;
22849
+ /** @type {?} */
22850
+ CommonDialogComponent.prototype.defaultSize;
22851
+ /** @type {?} */
22852
+ CommonDialogComponent.prototype.footerContent;
22853
+ /** @type {?} */
22854
+ CommonDialogComponent.prototype.customFooter;
22855
+ /** @type {?} */
22856
+ CommonDialogComponent.prototype.dialogRef;
22857
+ }
22858
+
22654
22859
  /**
22655
22860
  * @fileoverview added by tsickle
22656
22861
  * Generated from: lib/service/icon-loader.service.ts
@@ -22878,155 +23083,6 @@ var KeepAliveService = /** @class */ (function () {
22878
23083
  return KeepAliveService;
22879
23084
  }());
22880
23085
 
22881
- /**
22882
- * @fileoverview added by tsickle
22883
- * Generated from: lib/dialog/common-dialog/index.component.ts
22884
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
22885
- */
22886
- var CommonDialogComponent = /** @class */ (function () {
22887
- function CommonDialogComponent(dialogRef) {
22888
- this.dialogRef = dialogRef;
22889
- // 隐藏元素相关属性
22890
- this.hideHeader = false;
22891
- this.hideCloseIcon = false;
22892
- this.hideCloseBtn = false;
22893
- this.hideSaveBtn = false;
22894
- this.saveBtnLabel = "";
22895
- this.cancelBtnLabel = "";
22896
- this.showErrorIcon = false;
22897
- // 显示相关属性
22898
- this.size = "";
22899
- this.title = "Dialog";
22900
- this.loading = false;
22901
- this.saveEmit = new EventEmitter();
22902
- this.closeEmit = new EventEmitter();
22903
- this.customFooter = false;
22904
- }
22905
- /**
22906
- * @return {?}
22907
- */
22908
- CommonDialogComponent.prototype.ngAfterContentInit = /**
22909
- * @return {?}
22910
- */
22911
- function () {
22912
- this.customFooter = !!this.footerContent;
22913
- };
22914
- /**
22915
- * @return {?}
22916
- */
22917
- CommonDialogComponent.prototype.ngOnInit = /**
22918
- * @return {?}
22919
- */
22920
- function () {
22921
- this.getInfo();
22922
- };
22923
- /**
22924
- * @param {?=} res
22925
- * @return {?}
22926
- */
22927
- CommonDialogComponent.prototype.onClose = /**
22928
- * @param {?=} res
22929
- * @return {?}
22930
- */
22931
- function (res) {
22932
- this.dialogRef.close(res);
22933
- this.closeEmit.emit(res);
22934
- };
22935
- /**
22936
- * @return {?}
22937
- */
22938
- CommonDialogComponent.prototype.onSave = /**
22939
- * @return {?}
22940
- */
22941
- function () {
22942
- var _this = this;
22943
- // 这里把关闭事件emit上去,但是必须使用箭头函数保存this对象
22944
- this.saveEmit.emit((/**
22945
- * @param {?} res
22946
- * @return {?}
22947
- */
22948
- function (res) {
22949
- _this.onClose(res);
22950
- }));
22951
- };
22952
- /**
22953
- * @private
22954
- * @return {?}
22955
- */
22956
- CommonDialogComponent.prototype.getInfo = /**
22957
- * @private
22958
- * @return {?}
22959
- */
22960
- function () {
22961
- this.translation = JSON.parse(localStorage.getItem("translation")) || {};
22962
- this.saveBtnLabel =
22963
- this.saveBtnLabel || this.translation.SAVE || ".SAVE";
22964
- this.cancelBtnLabel =
22965
- this.cancelBtnLabel || this.translation.CANCEL || ".CANCEL";
22966
- };
22967
- CommonDialogComponent.decorators = [
22968
- { type: Component, args: [{
22969
- selector: "kt-common-dialog",
22970
- 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",
22971
- 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%)}"]
22972
- }] }
22973
- ];
22974
- /** @nocollapse */
22975
- CommonDialogComponent.ctorParameters = function () { return [
22976
- { type: MatDialogRef }
22977
- ]; };
22978
- CommonDialogComponent.propDecorators = {
22979
- hideHeader: [{ type: Input }],
22980
- hideCloseIcon: [{ type: Input }],
22981
- hideCloseBtn: [{ type: Input }],
22982
- hideSaveBtn: [{ type: Input }],
22983
- saveBtnLabel: [{ type: Input }],
22984
- cancelBtnLabel: [{ type: Input }],
22985
- showErrorIcon: [{ type: Input }],
22986
- size: [{ type: Input }],
22987
- title: [{ type: Input }],
22988
- loading: [{ type: Input }],
22989
- saveEmit: [{ type: Output }],
22990
- closeEmit: [{ type: Output }],
22991
- footerContent: [{ type: ContentChild, args: ["footerSlot", { static: false },] }]
22992
- };
22993
- return CommonDialogComponent;
22994
- }());
22995
- if (false) {
22996
- /** @type {?} */
22997
- CommonDialogComponent.prototype.translation;
22998
- /** @type {?} */
22999
- CommonDialogComponent.prototype.hideHeader;
23000
- /** @type {?} */
23001
- CommonDialogComponent.prototype.hideCloseIcon;
23002
- /** @type {?} */
23003
- CommonDialogComponent.prototype.hideCloseBtn;
23004
- /** @type {?} */
23005
- CommonDialogComponent.prototype.hideSaveBtn;
23006
- /** @type {?} */
23007
- CommonDialogComponent.prototype.saveBtnLabel;
23008
- /** @type {?} */
23009
- CommonDialogComponent.prototype.cancelBtnLabel;
23010
- /** @type {?} */
23011
- CommonDialogComponent.prototype.showErrorIcon;
23012
- /** @type {?} */
23013
- CommonDialogComponent.prototype.size;
23014
- /** @type {?} */
23015
- CommonDialogComponent.prototype.title;
23016
- /** @type {?} */
23017
- CommonDialogComponent.prototype.loading;
23018
- /** @type {?} */
23019
- CommonDialogComponent.prototype.saveEmit;
23020
- /** @type {?} */
23021
- CommonDialogComponent.prototype.closeEmit;
23022
- /** @type {?} */
23023
- CommonDialogComponent.prototype.footerContent;
23024
- /** @type {?} */
23025
- CommonDialogComponent.prototype.customFooter;
23026
- /** @type {?} */
23027
- CommonDialogComponent.prototype.dialogRef;
23028
- }
23029
-
23030
23086
  /**
23031
23087
  * @fileoverview added by tsickle
23032
23088
  * Generated from: lib/raise-common-lib.module.ts
@@ -23064,7 +23120,7 @@ var RaiseCommonLibModule = /** @class */ (function () {
23064
23120
  RsCommentaryComponent,
23065
23121
  RSNavCardGroupComponent,
23066
23122
  RSToolbarComponent,
23067
- TruncatedTextToggleComponent
23123
+ TruncatedTextToggleComponent,
23068
23124
  ],
23069
23125
  imports: [
23070
23126
  CommonModule,
@@ -23221,7 +23277,8 @@ var RaiseCommonLibModule = /** @class */ (function () {
23221
23277
  RsCommentaryComponent,
23222
23278
  RSNavCardGroupComponent,
23223
23279
  RSToolbarComponent,
23224
- TruncatedTextToggleComponent
23280
+ TruncatedTextToggleComponent,
23281
+ CommonDialogComponent,
23225
23282
  ],
23226
23283
  entryComponents: [
23227
23284
  NewActionNotificationComponent,
@@ -23246,5 +23303,5 @@ var RaiseCommonLibModule = /** @class */ (function () {
23246
23303
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
23247
23304
  */
23248
23305
 
23249
- 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 };
23306
+ 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 };
23250
23307
  //# sourceMappingURL=raise-common-lib.js.map