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
|
@@ -823,7 +823,7 @@ var CommonGridComponent = /** @class */ (function () {
|
|
|
823
823
|
CommonGridComponent.decorators = [
|
|
824
824
|
{ type: Component, args: [{
|
|
825
825
|
selector: "rs-common-grid",
|
|
826
|
-
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",
|
|
826
|
+
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",
|
|
827
827
|
styles: [""]
|
|
828
828
|
}] }
|
|
829
829
|
];
|
|
@@ -855,6 +855,7 @@ var CommonGridComponent = /** @class */ (function () {
|
|
|
855
855
|
childGrid: [{ type: Input }],
|
|
856
856
|
frozenColumns: [{ type: Input }],
|
|
857
857
|
columnChooserSettings: [{ type: Input }],
|
|
858
|
+
headerTemplate: [{ type: Input }],
|
|
858
859
|
contextMenuItems: [{ type: Input }],
|
|
859
860
|
selectionSettings: [{ type: Input }],
|
|
860
861
|
alwaysShowCheckbox: [{ type: Input }],
|
|
@@ -927,6 +928,8 @@ if (false) {
|
|
|
927
928
|
CommonGridComponent.prototype.frozenColumns;
|
|
928
929
|
/** @type {?} */
|
|
929
930
|
CommonGridComponent.prototype.columnChooserSettings;
|
|
931
|
+
/** @type {?} */
|
|
932
|
+
CommonGridComponent.prototype.headerTemplate;
|
|
930
933
|
/**
|
|
931
934
|
* Sample: [
|
|
932
935
|
* {
|
|
@@ -1278,57 +1281,10 @@ var FloatBoxComponent = /** @class */ (function () {
|
|
|
1278
1281
|
* @return {?}
|
|
1279
1282
|
*/
|
|
1280
1283
|
function () {
|
|
1281
|
-
var _a = this.rootElement.nativeElement.getBoundingClientRect(), y = _a.top, x = _a.left, width = _a.width, height = _a.height;
|
|
1282
|
-
// 临时显示内容以获取尺寸
|
|
1283
|
-
/** @type {?} */
|
|
1284
|
-
var wasVisible = this.contentElement.nativeElement.style.display !== "none";
|
|
1285
|
-
this.contentElement.nativeElement.style.visibility = "hidden";
|
|
1286
|
-
this.contentElement.nativeElement.style.display = "block";
|
|
1287
|
-
/** @type {?} */
|
|
1288
|
-
var contentRect = this.contentElement.nativeElement.getBoundingClientRect();
|
|
1289
|
-
/** @type {?} */
|
|
1290
|
-
var contentWidth = contentRect.width;
|
|
1291
|
-
/** @type {?} */
|
|
1292
|
-
var contentHeight = contentRect.height;
|
|
1293
|
-
// 获取视口尺寸
|
|
1294
|
-
/** @type {?} */
|
|
1295
|
-
var viewportWidth = window.innerWidth;
|
|
1296
|
-
/** @type {?} */
|
|
1297
|
-
var viewportHeight = window.innerHeight;
|
|
1298
|
-
/** @type {?} */
|
|
1299
|
-
var SAFE_MARGIN = 12;
|
|
1300
|
-
// 边界检测:计算最佳 placement
|
|
1301
|
-
/** @type {?} */
|
|
1302
|
-
var finalPlacement = this.placement;
|
|
1303
|
-
if (this.placement === "top" && y < contentHeight + SAFE_MARGIN) {
|
|
1304
|
-
if (viewportHeight - (y + height) >= contentHeight + SAFE_MARGIN) {
|
|
1305
|
-
finalPlacement = "bottom";
|
|
1306
|
-
}
|
|
1307
|
-
}
|
|
1308
|
-
else if (this.placement === "bottom" && viewportHeight - (y + height) < contentHeight + SAFE_MARGIN) {
|
|
1309
|
-
if (y >= contentHeight + SAFE_MARGIN) {
|
|
1310
|
-
finalPlacement = "top";
|
|
1311
|
-
}
|
|
1312
|
-
}
|
|
1313
|
-
else if (this.placement === "left" && x < contentWidth + SAFE_MARGIN) {
|
|
1314
|
-
if (viewportWidth - (x + width) >= contentWidth + SAFE_MARGIN) {
|
|
1315
|
-
finalPlacement = "right";
|
|
1316
|
-
}
|
|
1317
|
-
}
|
|
1318
|
-
else if (this.placement === "right" && viewportWidth - (x + width) < contentWidth + SAFE_MARGIN) {
|
|
1319
|
-
if (x >= contentWidth + SAFE_MARGIN) {
|
|
1320
|
-
finalPlacement = "left";
|
|
1321
|
-
}
|
|
1322
|
-
}
|
|
1323
|
-
// 保存调整后的 placement
|
|
1324
|
-
this.actualPlacement = finalPlacement;
|
|
1325
|
-
// 对于 fixed="no" 的情况,只更新 data-placement,让 CSS 处理
|
|
1326
1284
|
if (this.fixed === "no") {
|
|
1327
|
-
this.contentElement.nativeElement.style.visibility = "";
|
|
1328
|
-
this.contentElement.nativeElement.style.display = wasVisible ? "" : "none";
|
|
1329
1285
|
return;
|
|
1330
1286
|
}
|
|
1331
|
-
|
|
1287
|
+
var _a = this.rootElement.nativeElement.getBoundingClientRect(), y = _a.top, x = _a.left, width = _a.width, height = _a.height;
|
|
1332
1288
|
/** @type {?} */
|
|
1333
1289
|
var top = "0";
|
|
1334
1290
|
/** @type {?} */
|
|
@@ -1337,7 +1293,7 @@ var FloatBoxComponent = /** @class */ (function () {
|
|
|
1337
1293
|
var translateX = "0";
|
|
1338
1294
|
/** @type {?} */
|
|
1339
1295
|
var translateY = "0";
|
|
1340
|
-
switch (
|
|
1296
|
+
switch (this.placement + "_" + this.position) {
|
|
1341
1297
|
case "top_start":
|
|
1342
1298
|
top = y + "px";
|
|
1343
1299
|
left = x - 8 + "px";
|
|
@@ -1401,49 +1357,9 @@ var FloatBoxComponent = /** @class */ (function () {
|
|
|
1401
1357
|
translateX = "-100%";
|
|
1402
1358
|
break;
|
|
1403
1359
|
}
|
|
1404
|
-
// 计算实际渲染位置(考虑 transform)进行边界调整
|
|
1405
|
-
/** @type {?} */
|
|
1406
|
-
var actualLeft = parseFloat(left) || 0;
|
|
1407
|
-
/** @type {?} */
|
|
1408
|
-
var actualTop = parseFloat(top) || 0;
|
|
1409
|
-
if (translateX === "-50%") {
|
|
1410
|
-
actualLeft = actualLeft - contentWidth / 2;
|
|
1411
|
-
}
|
|
1412
|
-
else if (translateX === "-100%") {
|
|
1413
|
-
actualLeft = actualLeft - contentWidth;
|
|
1414
|
-
}
|
|
1415
|
-
if (translateY === "-50%") {
|
|
1416
|
-
actualTop = actualTop - contentHeight / 2;
|
|
1417
|
-
}
|
|
1418
|
-
else if (translateY === "-100%") {
|
|
1419
|
-
actualTop = actualTop - contentHeight;
|
|
1420
|
-
}
|
|
1421
|
-
// 水平边界调整
|
|
1422
|
-
if (finalPlacement === "top" || finalPlacement === "bottom") {
|
|
1423
|
-
if (actualLeft < SAFE_MARGIN) {
|
|
1424
|
-
left = (x + SAFE_MARGIN) + "px";
|
|
1425
|
-
translateX = "0";
|
|
1426
|
-
}
|
|
1427
|
-
else if (actualLeft + contentWidth > viewportWidth - SAFE_MARGIN) {
|
|
1428
|
-
left = (viewportWidth - contentWidth - SAFE_MARGIN) + "px";
|
|
1429
|
-
translateX = "0";
|
|
1430
|
-
}
|
|
1431
|
-
}
|
|
1432
|
-
// 垂直边界调整
|
|
1433
|
-
else {
|
|
1434
|
-
if (actualTop < SAFE_MARGIN) {
|
|
1435
|
-
top = (y + SAFE_MARGIN) + "px";
|
|
1436
|
-
translateY = "0";
|
|
1437
|
-
}
|
|
1438
|
-
else if (actualTop + contentHeight > viewportHeight - SAFE_MARGIN) {
|
|
1439
|
-
top = (viewportHeight - contentHeight - SAFE_MARGIN) + "px";
|
|
1440
|
-
translateY = "0";
|
|
1441
|
-
}
|
|
1442
|
-
}
|
|
1443
1360
|
this.contentElement.nativeElement.style.top = top;
|
|
1444
1361
|
this.contentElement.nativeElement.style.left = left;
|
|
1445
1362
|
this.contentElement.nativeElement.style.transform = "translate(" + translateX + ", " + translateY + ")";
|
|
1446
|
-
this.contentElement.nativeElement.style.visibility = "visible";
|
|
1447
1363
|
};
|
|
1448
1364
|
/**
|
|
1449
1365
|
* @return {?}
|
|
@@ -1467,15 +1383,13 @@ var FloatBoxComponent = /** @class */ (function () {
|
|
|
1467
1383
|
* @return {?}
|
|
1468
1384
|
*/
|
|
1469
1385
|
function () {
|
|
1470
|
-
if (this.trigger !== "hover") {
|
|
1386
|
+
if (this.fixed === "no" || this.trigger !== "hover") {
|
|
1471
1387
|
return;
|
|
1472
1388
|
}
|
|
1473
1389
|
this.opened = "yes";
|
|
1474
1390
|
this.openChange.emit(true);
|
|
1475
1391
|
this.setFixedContentPosition();
|
|
1476
|
-
|
|
1477
|
-
window.addEventListener("mousemove", this.onMoveOutside);
|
|
1478
|
-
}
|
|
1392
|
+
window.addEventListener("mousemove", this.onMoveOutside);
|
|
1479
1393
|
};
|
|
1480
1394
|
/**
|
|
1481
1395
|
* @return {?}
|
|
@@ -1498,7 +1412,7 @@ var FloatBoxComponent = /** @class */ (function () {
|
|
|
1498
1412
|
FloatBoxComponent.decorators = [
|
|
1499
1413
|
{ type: Component, args: [{
|
|
1500
1414
|
selector: "rs-float-box",
|
|
1501
|
-
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]=\"
|
|
1415
|
+
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",
|
|
1502
1416
|
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)}"]
|
|
1503
1417
|
}] }
|
|
1504
1418
|
];
|
|
@@ -1530,8 +1444,6 @@ if (false) {
|
|
|
1530
1444
|
/** @type {?} */
|
|
1531
1445
|
FloatBoxComponent.prototype._fixed;
|
|
1532
1446
|
/** @type {?} */
|
|
1533
|
-
FloatBoxComponent.prototype.actualPlacement;
|
|
1534
|
-
/** @type {?} */
|
|
1535
1447
|
FloatBoxComponent.prototype.openChange;
|
|
1536
1448
|
/** @type {?} */
|
|
1537
1449
|
FloatBoxComponent.prototype.rootElement;
|
|
@@ -23642,6 +23554,7 @@ var CommonDialogComponent = /** @class */ (function () {
|
|
|
23642
23554
|
this.showErrorIcon = false;
|
|
23643
23555
|
this.showZoomBtn = false;
|
|
23644
23556
|
this.customSave = false;
|
|
23557
|
+
this.customPageTitle = false;
|
|
23645
23558
|
// 显示相关属性
|
|
23646
23559
|
this.dialogStyle = {};
|
|
23647
23560
|
this.size = "";
|
|
@@ -23748,7 +23661,7 @@ var CommonDialogComponent = /** @class */ (function () {
|
|
|
23748
23661
|
CommonDialogComponent.decorators = [
|
|
23749
23662
|
{ type: Component, args: [{
|
|
23750
23663
|
selector: "rs-common-dialog",
|
|
23751
|
-
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
|
|
23664
|
+
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",
|
|
23752
23665
|
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%)}"]
|
|
23753
23666
|
}] }
|
|
23754
23667
|
];
|
|
@@ -23768,6 +23681,7 @@ var CommonDialogComponent = /** @class */ (function () {
|
|
|
23768
23681
|
showErrorIcon: [{ type: Input }],
|
|
23769
23682
|
showZoomBtn: [{ type: Input }],
|
|
23770
23683
|
customSave: [{ type: Input }],
|
|
23684
|
+
customPageTitle: [{ type: Input }],
|
|
23771
23685
|
onCloseRequest: [{ type: Input }],
|
|
23772
23686
|
dialogStyle: [{ type: Input }],
|
|
23773
23687
|
size: [{ type: Input }],
|
|
@@ -23805,6 +23719,8 @@ if (false) {
|
|
|
23805
23719
|
/** @type {?} */
|
|
23806
23720
|
CommonDialogComponent.prototype.customSave;
|
|
23807
23721
|
/** @type {?} */
|
|
23722
|
+
CommonDialogComponent.prototype.customPageTitle;
|
|
23723
|
+
/** @type {?} */
|
|
23808
23724
|
CommonDialogComponent.prototype.onCloseRequest;
|
|
23809
23725
|
/** @type {?} */
|
|
23810
23726
|
CommonDialogComponent.prototype.dialogStyle;
|