raise-common-lib 0.0.215 → 0.0.217
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +57 -57
- package/bundles/raise-common-lib.umd.js +14 -98
- package/bundles/raise-common-lib.umd.js.map +1 -1
- package/bundles/raise-common-lib.umd.min.js +1 -1
- package/bundles/raise-common-lib.umd.min.js.map +1 -1
- package/esm2015/lib/common-grid/index.component.js +5 -2
- package/esm2015/lib/dialog/common-dialog/index.component.js +6 -2
- package/esm2015/lib/float-box/index.component.js +6 -97
- package/esm5/lib/common-grid/index.component.js +5 -2
- package/esm5/lib/dialog/common-dialog/index.component.js +6 -2
- package/esm5/lib/float-box/index.component.js +6 -97
- package/fesm2015/raise-common-lib.js +14 -98
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +14 -98
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/common-grid/index.component.d.ts +1 -0
- package/lib/dialog/common-dialog/index.component.d.ts +1 -0
- package/lib/float-box/index.component.d.ts +0 -1
- package/package.json +1 -1
- package/raise-common-lib.metadata.json +1 -1
- package/src/assets/img/arrow_right.svg +4 -4
- package/src/assets/img/calendar-disabled.svg +6 -6
- package/src/assets/img/calendar.svg +6 -6
- package/src/assets/img/calendar_arrow_left.svg +3 -3
- package/src/assets/img/calendar_arrow_right.svg +3 -3
- package/src/assets/img/checked-vector.svg +3 -3
- package/src/assets/img/dialog-close.svg +4 -4
- package/src/assets/img/dialog-grow.svg +6 -6
- package/src/assets/img/dialog-shrink.svg +6 -6
- package/src/assets/img/plus.svg +4 -4
- package/src/assets/img/search.svg +4 -4
- package/src/assets/img/shrink-icon.svg +6 -6
- package/src/assets/img/time-disabled.svg +4 -4
- package/src/assets/img/time.svg +4 -4
- package/src/assets/img/toolbar-action-addFolder.svg +17 -17
- package/src/assets/img/toolbar-action-calculator.svg +11 -11
- package/src/assets/img/toolbar-action-collapse.svg +7 -7
- package/src/assets/img/toolbar-action-combine.svg +4 -4
- package/src/assets/img/toolbar-action-edit.svg +4 -4
- package/src/assets/img/toolbar-action-expand.svg +7 -7
- package/src/assets/img/toolbar-action-folderMove.svg +8 -8
- package/src/assets/img/toolbar-action-lock.svg +6 -6
- package/src/assets/img/toolbar-action-preview.svg +7 -7
- package/src/assets/img/toolbar-action-publish.svg +5 -5
- package/src/assets/img/toolbar-action-reminders.svg +10 -10
- package/src/assets/img/toolbar-action-rename.svg +7 -7
- package/src/assets/img/toolbar-action-saveSequence.svg +5 -5
- package/src/assets/img/toolbar-action-send-file.svg +5 -5
- package/src/assets/img/toolbar-action-settle.svg +7 -7
- package/src/assets/img/toolbar-action-share.svg +5 -5
- package/src/assets/img/toolbar-action-submitForApproval.svg +4 -4
- package/src/assets/img/toolbar-action-sync.svg +4 -4
- package/src/assets/img/toolbar-action-template.svg +6 -6
- package/src/assets/img/toolbar-action-workflow.svg +9 -9
|
@@ -659,7 +659,7 @@ class CommonGridComponent {
|
|
|
659
659
|
CommonGridComponent.decorators = [
|
|
660
660
|
{ type: Component, args: [{
|
|
661
661
|
selector: "rs-common-grid",
|
|
662
|
-
template: "<ejs-grid\r\n #grid\r\n [id]=\"gridId\"\r\n [ngClass]=\"{\r\n 'hide-Check-box': !alwaysShowCheckbox,\r\n 'grid-loading': className === 'grid-loading'\r\n }\"\r\n [dataSource]=\"dataSource\"\r\n [allowPaging]=\"allowPaging && pageSettings\"\r\n [allowResizing]=\"true\"\r\n [pageSettings]=\"pageSettings\"\r\n [showColumnMenu]=\"true\"\r\n [allowSorting]=\"true\"\r\n [allowFiltering]=\"true\"\r\n [allowExcelExport]=\"true\"\r\n [allowRowDragAndDrop]=\"allowRowDragAndDrop\"\r\n [filterSettings]=\"filterSettings\"\r\n [resizeSettings]=\"resizeSettings\"\r\n [allowSelection]=\"true\"\r\n [editSettings]=\"editSettings\"\r\n [childGrid]=\"childGrid\"\r\n [contextMenuItems]=\"dataSource && dataSource.length ? contextMenuItems : null\"\r\n [selectionSettings]=\"selectionSettings\"\r\n (recordClick)=\"_recordClick($event)\"\r\n (recordDoubleClick)=\"_recordDoubleClick($event)\"\r\n (actionBegin)=\"_actionBegin($event)\"\r\n (actionComplete)=\"_actionHandler($event)\"\r\n (rowSelected)=\"_rowSelected($event)\"\r\n (rowDeselecting)=\"_rowDeselecting($event)\"\r\n (rowDeselected)=\"_rowDeselected($event)\"\r\n style=\"border: none\"\r\n (contextMenuClick)=\"_onContextMenu($event)\"\r\n (contextMenuOpen)=\"contextMenuOpen($event)\"\r\n (queryCellInfo)=\"customiseCell($event)\"\r\n (dataBound)=\"_dataBound($event)\"\r\n (rowDataBound)=\"_rowDataBound($event)\"\r\n (rowSelecting)=\"_rowSelecting($event)\"\r\n (excelQueryCellInfo)=\"_exportQueryCellInfo($event)\"\r\n (rowDrop)=\"onRowDrop($event)\"\r\n (rowDragStart)=\"_rowDragStart($event)\"\r\n (rowDrag)=\"_rowDrag($event)\"\r\n (load)=\"_load()\"\r\n [frozenColumns]=\"frozenColumns\"\r\n [columnChooserSettings]=\"columnChooserSettings\"\r\n>\r\n <e-columns>\r\n <e-column\r\n *ngIf=\"showCheckBox\"\r\n type=\"checkbox\"\r\n [width]=\"checkBoxWidth\"\r\n [minWidth]=\"checkBoxWidth\"\r\n [showColumnMenu]=\"false\"\r\n [allowResizing]=\"false\"\r\n ></e-column>\r\n <e-column\r\n *ngFor=\"let item of fields; trackBy: trackByFn; let last = last\"\r\n [field]=\"item.columnName\"\r\n [filter]=\"item.filter ? item.filter : { type: 'CheckBox' }\"\r\n [customAttributes]=\"\r\n item.colName === 'entityUserList' || item.colName === 'kycProgress'\r\n ? { class: 'hideColumnFilterClass' }\r\n : {}\r\n \"\r\n [headerText]=\"item.columnDisplayName\"\r\n [textAlign]=\"item.textAlign\"\r\n [showColumnMenu]=\"item.showColumnMenu === undefined ? true : false\"\r\n [allowFiltering]=\"item.allowFiltering === undefined ? true : false\"\r\n [allowSorting]=\"item.allowSorting === undefined ? true : false\"\r\n [showInColumnChooser]=\"\r\n item.showInColumnChooser === undefined ? true : item.showInColumnChooser\r\n \"\r\n [editType]=\"item.editType\"\r\n [validationRules]=\"item.validationRules\"\r\n [type]=\"item.dataType || 'string'\"\r\n [width]=\"item.width\"\r\n [minWidth]=\"item.minWidth\"\r\n [format]=\"item.format\"\r\n [visible]=\"item.visible\"\r\n [template]=\"item.showTemplate ? columnTemplate : undefined\"\r\n [clipMode]=\"\r\n item.clipMode ? item.clipMode : clipMode || 'EllipsisWithTooltip'\r\n \"\r\n [sortComparer]=\"item.dateComparer || null\"\r\n [allowResizing]=\"!last\"\r\n >\r\n </e-column>\r\n </e-columns>\r\n</ejs-grid>\r\n",
|
|
662
|
+
template: "<ejs-grid\r\n #grid\r\n [id]=\"gridId\"\r\n [ngClass]=\"{\r\n 'hide-Check-box': !alwaysShowCheckbox,\r\n 'grid-loading': className === 'grid-loading'\r\n }\"\r\n [dataSource]=\"dataSource\"\r\n [allowPaging]=\"allowPaging && pageSettings\"\r\n [allowResizing]=\"true\"\r\n [pageSettings]=\"pageSettings\"\r\n [showColumnMenu]=\"true\"\r\n [allowSorting]=\"true\"\r\n [allowFiltering]=\"true\"\r\n [allowExcelExport]=\"true\"\r\n [allowRowDragAndDrop]=\"allowRowDragAndDrop\"\r\n [filterSettings]=\"filterSettings\"\r\n [resizeSettings]=\"resizeSettings\"\r\n [allowSelection]=\"true\"\r\n [editSettings]=\"editSettings\"\r\n [childGrid]=\"childGrid\"\r\n [contextMenuItems]=\"dataSource && dataSource.length ? contextMenuItems : null\"\r\n [selectionSettings]=\"selectionSettings\"\r\n (recordClick)=\"_recordClick($event)\"\r\n (recordDoubleClick)=\"_recordDoubleClick($event)\"\r\n (actionBegin)=\"_actionBegin($event)\"\r\n (actionComplete)=\"_actionHandler($event)\"\r\n (rowSelected)=\"_rowSelected($event)\"\r\n (rowDeselecting)=\"_rowDeselecting($event)\"\r\n (rowDeselected)=\"_rowDeselected($event)\"\r\n style=\"border: none\"\r\n (contextMenuClick)=\"_onContextMenu($event)\"\r\n (contextMenuOpen)=\"contextMenuOpen($event)\"\r\n (queryCellInfo)=\"customiseCell($event)\"\r\n (dataBound)=\"_dataBound($event)\"\r\n (rowDataBound)=\"_rowDataBound($event)\"\r\n (rowSelecting)=\"_rowSelecting($event)\"\r\n (excelQueryCellInfo)=\"_exportQueryCellInfo($event)\"\r\n (rowDrop)=\"onRowDrop($event)\"\r\n (rowDragStart)=\"_rowDragStart($event)\"\r\n (rowDrag)=\"_rowDrag($event)\"\r\n (load)=\"_load()\"\r\n [frozenColumns]=\"frozenColumns\"\r\n [columnChooserSettings]=\"columnChooserSettings\"\r\n>\r\n <e-columns>\r\n <e-column\r\n *ngIf=\"showCheckBox\"\r\n type=\"checkbox\"\r\n [width]=\"checkBoxWidth\"\r\n [minWidth]=\"checkBoxWidth\"\r\n [showColumnMenu]=\"false\"\r\n [allowResizing]=\"false\"\r\n ></e-column>\r\n <e-column\r\n *ngFor=\"let item of fields; trackBy: trackByFn; let last = last\"\r\n [field]=\"item.columnName\"\r\n [filter]=\"item.filter ? item.filter : { type: 'CheckBox' }\"\r\n [customAttributes]=\"\r\n item.colName === 'entityUserList' || item.colName === 'kycProgress'\r\n ? { class: 'hideColumnFilterClass' }\r\n : {}\r\n \"\r\n [headerText]=\"item.columnDisplayName\"\r\n [textAlign]=\"item.textAlign\"\r\n [showColumnMenu]=\"item.showColumnMenu === undefined ? true : false\"\r\n [allowFiltering]=\"item.allowFiltering === undefined ? true : false\"\r\n [allowSorting]=\"item.allowSorting === undefined ? true : false\"\r\n [showInColumnChooser]=\"\r\n item.showInColumnChooser === undefined ? true : item.showInColumnChooser\r\n \"\r\n [editType]=\"item.editType\"\r\n [validationRules]=\"item.validationRules\"\r\n [type]=\"item.dataType || 'string'\"\r\n [width]=\"item.width\"\r\n [minWidth]=\"item.minWidth\"\r\n [format]=\"item.format\"\r\n [visible]=\"item.visible\"\r\n [template]=\"item.showTemplate ? columnTemplate : undefined\"\r\n [clipMode]=\"\r\n item.clipMode ? item.clipMode : clipMode || 'EllipsisWithTooltip'\r\n \"\r\n [sortComparer]=\"item.dateComparer || null\"\r\n [allowResizing]=\"!last\"\r\n [headerTemplate]=\"item.showHeaderTemplate ? headerTemplate : undefined\"\r\n >\r\n </e-column>\r\n </e-columns>\r\n</ejs-grid>\r\n",
|
|
663
663
|
styles: [""]
|
|
664
664
|
}] }
|
|
665
665
|
];
|
|
@@ -691,6 +691,7 @@ CommonGridComponent.propDecorators = {
|
|
|
691
691
|
childGrid: [{ type: Input }],
|
|
692
692
|
frozenColumns: [{ type: Input }],
|
|
693
693
|
columnChooserSettings: [{ type: Input }],
|
|
694
|
+
headerTemplate: [{ type: Input }],
|
|
694
695
|
contextMenuItems: [{ type: Input }],
|
|
695
696
|
selectionSettings: [{ type: Input }],
|
|
696
697
|
alwaysShowCheckbox: [{ type: Input }],
|
|
@@ -761,6 +762,8 @@ if (false) {
|
|
|
761
762
|
CommonGridComponent.prototype.frozenColumns;
|
|
762
763
|
/** @type {?} */
|
|
763
764
|
CommonGridComponent.prototype.columnChooserSettings;
|
|
765
|
+
/** @type {?} */
|
|
766
|
+
CommonGridComponent.prototype.headerTemplate;
|
|
764
767
|
/**
|
|
765
768
|
* Sample: [
|
|
766
769
|
* {
|
|
@@ -1076,57 +1079,10 @@ class FloatBoxComponent {
|
|
|
1076
1079
|
* @return {?}
|
|
1077
1080
|
*/
|
|
1078
1081
|
setFixedContentPosition() {
|
|
1079
|
-
const { top: y, left: x, width, height, } = this.rootElement.nativeElement.getBoundingClientRect();
|
|
1080
|
-
// 临时显示内容以获取尺寸
|
|
1081
|
-
/** @type {?} */
|
|
1082
|
-
const wasVisible = this.contentElement.nativeElement.style.display !== "none";
|
|
1083
|
-
this.contentElement.nativeElement.style.visibility = "hidden";
|
|
1084
|
-
this.contentElement.nativeElement.style.display = "block";
|
|
1085
|
-
/** @type {?} */
|
|
1086
|
-
const contentRect = this.contentElement.nativeElement.getBoundingClientRect();
|
|
1087
|
-
/** @type {?} */
|
|
1088
|
-
const contentWidth = contentRect.width;
|
|
1089
|
-
/** @type {?} */
|
|
1090
|
-
const contentHeight = contentRect.height;
|
|
1091
|
-
// 获取视口尺寸
|
|
1092
|
-
/** @type {?} */
|
|
1093
|
-
const viewportWidth = window.innerWidth;
|
|
1094
|
-
/** @type {?} */
|
|
1095
|
-
const viewportHeight = window.innerHeight;
|
|
1096
|
-
/** @type {?} */
|
|
1097
|
-
const SAFE_MARGIN = 12;
|
|
1098
|
-
// 边界检测:计算最佳 placement
|
|
1099
|
-
/** @type {?} */
|
|
1100
|
-
let finalPlacement = this.placement;
|
|
1101
|
-
if (this.placement === "top" && y < contentHeight + SAFE_MARGIN) {
|
|
1102
|
-
if (viewportHeight - (y + height) >= contentHeight + SAFE_MARGIN) {
|
|
1103
|
-
finalPlacement = "bottom";
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
|
-
else if (this.placement === "bottom" && viewportHeight - (y + height) < contentHeight + SAFE_MARGIN) {
|
|
1107
|
-
if (y >= contentHeight + SAFE_MARGIN) {
|
|
1108
|
-
finalPlacement = "top";
|
|
1109
|
-
}
|
|
1110
|
-
}
|
|
1111
|
-
else if (this.placement === "left" && x < contentWidth + SAFE_MARGIN) {
|
|
1112
|
-
if (viewportWidth - (x + width) >= contentWidth + SAFE_MARGIN) {
|
|
1113
|
-
finalPlacement = "right";
|
|
1114
|
-
}
|
|
1115
|
-
}
|
|
1116
|
-
else if (this.placement === "right" && viewportWidth - (x + width) < contentWidth + SAFE_MARGIN) {
|
|
1117
|
-
if (x >= contentWidth + SAFE_MARGIN) {
|
|
1118
|
-
finalPlacement = "left";
|
|
1119
|
-
}
|
|
1120
|
-
}
|
|
1121
|
-
// 保存调整后的 placement
|
|
1122
|
-
this.actualPlacement = finalPlacement;
|
|
1123
|
-
// 对于 fixed="no" 的情况,只更新 data-placement,让 CSS 处理
|
|
1124
1082
|
if (this.fixed === "no") {
|
|
1125
|
-
this.contentElement.nativeElement.style.visibility = "";
|
|
1126
|
-
this.contentElement.nativeElement.style.display = wasVisible ? "" : "none";
|
|
1127
1083
|
return;
|
|
1128
1084
|
}
|
|
1129
|
-
|
|
1085
|
+
const { top: y, left: x, width, height, } = this.rootElement.nativeElement.getBoundingClientRect();
|
|
1130
1086
|
/** @type {?} */
|
|
1131
1087
|
let top = "0";
|
|
1132
1088
|
/** @type {?} */
|
|
@@ -1135,7 +1091,7 @@ class FloatBoxComponent {
|
|
|
1135
1091
|
let translateX = "0";
|
|
1136
1092
|
/** @type {?} */
|
|
1137
1093
|
let translateY = "0";
|
|
1138
|
-
switch (
|
|
1094
|
+
switch (this.placement + "_" + this.position) {
|
|
1139
1095
|
case "top_start":
|
|
1140
1096
|
top = y + "px";
|
|
1141
1097
|
left = x - 8 + "px";
|
|
@@ -1199,49 +1155,9 @@ class FloatBoxComponent {
|
|
|
1199
1155
|
translateX = "-100%";
|
|
1200
1156
|
break;
|
|
1201
1157
|
}
|
|
1202
|
-
// 计算实际渲染位置(考虑 transform)进行边界调整
|
|
1203
|
-
/** @type {?} */
|
|
1204
|
-
let actualLeft = parseFloat(left) || 0;
|
|
1205
|
-
/** @type {?} */
|
|
1206
|
-
let actualTop = parseFloat(top) || 0;
|
|
1207
|
-
if (translateX === "-50%") {
|
|
1208
|
-
actualLeft = actualLeft - contentWidth / 2;
|
|
1209
|
-
}
|
|
1210
|
-
else if (translateX === "-100%") {
|
|
1211
|
-
actualLeft = actualLeft - contentWidth;
|
|
1212
|
-
}
|
|
1213
|
-
if (translateY === "-50%") {
|
|
1214
|
-
actualTop = actualTop - contentHeight / 2;
|
|
1215
|
-
}
|
|
1216
|
-
else if (translateY === "-100%") {
|
|
1217
|
-
actualTop = actualTop - contentHeight;
|
|
1218
|
-
}
|
|
1219
|
-
// 水平边界调整
|
|
1220
|
-
if (finalPlacement === "top" || finalPlacement === "bottom") {
|
|
1221
|
-
if (actualLeft < SAFE_MARGIN) {
|
|
1222
|
-
left = (x + SAFE_MARGIN) + "px";
|
|
1223
|
-
translateX = "0";
|
|
1224
|
-
}
|
|
1225
|
-
else if (actualLeft + contentWidth > viewportWidth - SAFE_MARGIN) {
|
|
1226
|
-
left = (viewportWidth - contentWidth - SAFE_MARGIN) + "px";
|
|
1227
|
-
translateX = "0";
|
|
1228
|
-
}
|
|
1229
|
-
}
|
|
1230
|
-
// 垂直边界调整
|
|
1231
|
-
else {
|
|
1232
|
-
if (actualTop < SAFE_MARGIN) {
|
|
1233
|
-
top = (y + SAFE_MARGIN) + "px";
|
|
1234
|
-
translateY = "0";
|
|
1235
|
-
}
|
|
1236
|
-
else if (actualTop + contentHeight > viewportHeight - SAFE_MARGIN) {
|
|
1237
|
-
top = (viewportHeight - contentHeight - SAFE_MARGIN) + "px";
|
|
1238
|
-
translateY = "0";
|
|
1239
|
-
}
|
|
1240
|
-
}
|
|
1241
1158
|
this.contentElement.nativeElement.style.top = top;
|
|
1242
1159
|
this.contentElement.nativeElement.style.left = left;
|
|
1243
1160
|
this.contentElement.nativeElement.style.transform = `translate(${translateX}, ${translateY})`;
|
|
1244
|
-
this.contentElement.nativeElement.style.visibility = "visible";
|
|
1245
1161
|
}
|
|
1246
1162
|
/**
|
|
1247
1163
|
* @return {?}
|
|
@@ -1259,15 +1175,13 @@ class FloatBoxComponent {
|
|
|
1259
1175
|
* @return {?}
|
|
1260
1176
|
*/
|
|
1261
1177
|
onMouseEnter() {
|
|
1262
|
-
if (this.trigger !== "hover") {
|
|
1178
|
+
if (this.fixed === "no" || this.trigger !== "hover") {
|
|
1263
1179
|
return;
|
|
1264
1180
|
}
|
|
1265
1181
|
this.opened = "yes";
|
|
1266
1182
|
this.openChange.emit(true);
|
|
1267
1183
|
this.setFixedContentPosition();
|
|
1268
|
-
|
|
1269
|
-
window.addEventListener("mousemove", this.onMoveOutside);
|
|
1270
|
-
}
|
|
1184
|
+
window.addEventListener("mousemove", this.onMoveOutside);
|
|
1271
1185
|
}
|
|
1272
1186
|
/**
|
|
1273
1187
|
* @return {?}
|
|
@@ -1287,7 +1201,7 @@ class FloatBoxComponent {
|
|
|
1287
1201
|
FloatBoxComponent.decorators = [
|
|
1288
1202
|
{ type: Component, args: [{
|
|
1289
1203
|
selector: "rs-float-box",
|
|
1290
|
-
template: "<div\r\n #element\r\n class=\"float-box-container\"\r\n [attr.data-trigger]=\"trigger\"\r\n (click)=\"onClickContainer()\"\r\n (mouseenter)=\"onMouseEnter()\"\r\n>\r\n <ng-content></ng-content>\r\n <div\r\n #content\r\n class=\"float-box-content\"\r\n [attr.data-placement]=\"
|
|
1204
|
+
template: "<div\r\n #element\r\n class=\"float-box-container\"\r\n [attr.data-trigger]=\"trigger\"\r\n (click)=\"onClickContainer()\"\r\n (mouseenter)=\"onMouseEnter()\"\r\n>\r\n <ng-content></ng-content>\r\n <div\r\n #content\r\n class=\"float-box-content\"\r\n [attr.data-placement]=\"placement\"\r\n [attr.data-position]=\"position\"\r\n [attr.data-animation]=\"animation\"\r\n [attr.data-fixed]=\"fixed\"\r\n [attr.data-opened]=\"opened\"\r\n >\r\n <div class=\"float-box-show-content\">\r\n <ng-content select=\"[float-content]\"></ng-content>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
1291
1205
|
styles: [".float-box-container{position:relative}.float-box-container[data-trigger=click]>.float-box-content[data-opened=no],.float-box-container[data-trigger=hover]:not(:hover)>.float-box-content{display:none}.float-box-container>.float-box-content[data-fixed=no]{padding:8px;--top:0;--left:0;--translate-x:0;--translate-y:0;position:absolute;top:var(--top);left:var(--left);transform:translate(var(--translate-x),var(--translate-y));z-index:10}.float-box-container>.float-box-content[data-fixed=no][data-animation=yes]{-webkit-animation:.25s ease-in-out;animation:.25s ease-in-out}.float-box-container>.float-box-content[data-fixed=no][data-placement=top]{--translate-y:-100%}.float-box-container>.float-box-content[data-fixed=no][data-placement=top][data-animation=true]{-webkit-animation-name:open-from-top;animation-name:open-from-top}.float-box-container>.float-box-content[data-fixed=no][data-placement=left]{--translate-x:-100%}.float-box-container>.float-box-content[data-fixed=no][data-placement=right]{--left:100%}.float-box-container>.float-box-content[data-fixed=no][data-placement=bottom]{--top:100%}.float-box-container>.float-box-content[data-fixed=no][data-placement=bottom][data-animation=yes]{-webkit-animation-name:open-from-bottom;animation-name:open-from-bottom}.float-box-container>.float-box-content[data-fixed=no][data-placement=bottom][data-position=start],.float-box-container>.float-box-content[data-fixed=no][data-placement=top][data-position=start]{--left:-8px}.float-box-container>.float-box-content[data-fixed=no][data-placement=bottom][data-position=center],.float-box-container>.float-box-content[data-fixed=no][data-placement=top][data-position=center]{--left:50%;--translate-x:-50%}.float-box-container>.float-box-content[data-fixed=no][data-placement=bottom][data-position=end],.float-box-container>.float-box-content[data-fixed=no][data-placement=top][data-position=end]{--left:calc(100% + 8px);--translate-x:-100%}.float-box-container>.float-box-content[data-fixed=no][data-placement=left][data-position=start],.float-box-container>.float-box-content[data-fixed=no][data-placement=right][data-position=start]{--top:-8px}.float-box-container>.float-box-content[data-fixed=no][data-placement=left][data-position=start][data-animation=yes],.float-box-container>.float-box-content[data-fixed=no][data-placement=right][data-position=start][data-animation=yes]{-webkit-animation-name:open-from-bottom;animation-name:open-from-bottom}.float-box-container>.float-box-content[data-fixed=no][data-placement=left][data-position=center],.float-box-container>.float-box-content[data-fixed=no][data-placement=right][data-position=center]{--top:50%;--translate-y:-50%}.float-box-container>.float-box-content[data-fixed=no][data-placement=left][data-position=center][data-animation=yes],.float-box-container>.float-box-content[data-fixed=no][data-placement=right][data-position=center][data-animation=yes]{-webkit-animation-name:open-from-bottom;animation-name:open-from-bottom}.float-box-container>.float-box-content[data-fixed=no][data-placement=left][data-position=end],.float-box-container>.float-box-content[data-fixed=no][data-placement=right][data-position=end]{--top:calc(100% + 8px);--translate-y:-100%}.float-box-container>.float-box-content[data-fixed=no][data-placement=left][data-position=end][data-animation=yes],.float-box-container>.float-box-content[data-fixed=no][data-placement=right][data-position=end][data-animation=yes]{-webkit-animation-name:open-from-top;animation-name:open-from-top}@-webkit-keyframes open-from-top{from{margin-top:-8px;opacity:.4}to{margin:0;opacity:1}}@keyframes open-from-top{from{margin-top:-8px;opacity:.4}to{margin:0;opacity:1}}@-webkit-keyframes open-from-bottom{from{margin-top:8px;opacity:.4}to{margin:0;opacity:1}}@keyframes open-from-bottom{from{margin-top:8px;opacity:.4}to{margin:0;opacity:1}}::ng-deep #kt-float-box-fixed-container{width:0;height:0;z-index:100000}::ng-deep #kt-float-box-fixed-container .float-box-content[data-fixed=yes]{padding:8px;position:fixed;z-index:10}::ng-deep #kt-float-box-fixed-container .float-box-content[data-fixed=yes][data-opened=no]{display:none}.float-box-show-content{padding:8px 8px 12px;border-radius:8px;background:#fff;box-shadow:0 0 8px 0 rgba(0,0,0,.25)}"]
|
|
1292
1206
|
}] }
|
|
1293
1207
|
];
|
|
@@ -1317,8 +1231,6 @@ if (false) {
|
|
|
1317
1231
|
/** @type {?} */
|
|
1318
1232
|
FloatBoxComponent.prototype._fixed;
|
|
1319
1233
|
/** @type {?} */
|
|
1320
|
-
FloatBoxComponent.prototype.actualPlacement;
|
|
1321
|
-
/** @type {?} */
|
|
1322
1234
|
FloatBoxComponent.prototype.openChange;
|
|
1323
1235
|
/** @type {?} */
|
|
1324
1236
|
FloatBoxComponent.prototype.rootElement;
|
|
@@ -22644,6 +22556,7 @@ class CommonDialogComponent {
|
|
|
22644
22556
|
this.showErrorIcon = false;
|
|
22645
22557
|
this.showZoomBtn = false;
|
|
22646
22558
|
this.customSave = false;
|
|
22559
|
+
this.customPageTitle = false;
|
|
22647
22560
|
// 显示相关属性
|
|
22648
22561
|
this.dialogStyle = {};
|
|
22649
22562
|
this.size = "";
|
|
@@ -22728,7 +22641,7 @@ class CommonDialogComponent {
|
|
|
22728
22641
|
CommonDialogComponent.decorators = [
|
|
22729
22642
|
{ type: Component, args: [{
|
|
22730
22643
|
selector: "rs-common-dialog",
|
|
22731
|
-
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 <ng-content select=\"[titleSlot]\"></ng-content>\r\n </div
|
|
22644
|
+
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 <ng-container *ngIf=\"customPageTitle; else defaultTitle\">\r\n <ng-content select=\"[titleSlot]\"></ng-content>\r\n </ng-container>\r\n <ng-template #defaultTitle>\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 </ng-template>\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 <ng-content select=\"[titleSlot]\"></ng-content>\r\n </div> -->\r\n <div class=\"header__actions\">\r\n <div *ngIf=\"showZoomBtn\" class=\"header-btn\" (click)=\"onZoom()\">\r\n <img\r\n class=\"header-icon\"\r\n *ngIf=\"size === 'largest'\"\r\n src=\"../../../assets/img/dialog-shrink.svg\"\r\n />\r\n <img\r\n class=\"header-icon\"\r\n *ngIf=\"size !== 'largest'\"\r\n src=\"../../../assets/img/dialog-grow.svg\"\r\n />\r\n </div>\r\n <div *ngIf=\"!hideCloseIcon\" class=\"header-btn\" (click)=\"onClose()\">\r\n <img class=\"header-icon\" src=\"../../../assets/img/dialog-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 *ngIf=\"!hideCloseBtn\" class=\"e-btn\" (click)=\"onClose()\">\r\n {{ cancelBtnLabel }}\r\n </button>\r\n <button *ngIf=\"!hideDiscardBtn\" class=\"e-btn\" (click)=\"onDiscard()\">\r\n {{ discardBtnLabel }}\r\n </button>\r\n <button *ngIf=\"!hideSaveBtn\" class=\"e-btn e-primary\" (click)=\"onSave()\">\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",
|
|
22732
22645
|
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:96vw!important;height:88vh!important;max-width:2100px;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-icon{display:block}:host::ng-deep .dialog .dialog__header .header-btn{cursor:pointer;padding:2px;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%)}"]
|
|
22733
22646
|
}] }
|
|
22734
22647
|
];
|
|
@@ -22748,6 +22661,7 @@ CommonDialogComponent.propDecorators = {
|
|
|
22748
22661
|
showErrorIcon: [{ type: Input }],
|
|
22749
22662
|
showZoomBtn: [{ type: Input }],
|
|
22750
22663
|
customSave: [{ type: Input }],
|
|
22664
|
+
customPageTitle: [{ type: Input }],
|
|
22751
22665
|
onCloseRequest: [{ type: Input }],
|
|
22752
22666
|
dialogStyle: [{ type: Input }],
|
|
22753
22667
|
size: [{ type: Input }],
|
|
@@ -22783,6 +22697,8 @@ if (false) {
|
|
|
22783
22697
|
/** @type {?} */
|
|
22784
22698
|
CommonDialogComponent.prototype.customSave;
|
|
22785
22699
|
/** @type {?} */
|
|
22700
|
+
CommonDialogComponent.prototype.customPageTitle;
|
|
22701
|
+
/** @type {?} */
|
|
22786
22702
|
CommonDialogComponent.prototype.onCloseRequest;
|
|
22787
22703
|
/** @type {?} */
|
|
22788
22704
|
CommonDialogComponent.prototype.dialogStyle;
|