raise-common-lib 0.0.136 → 0.0.137
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/bundles/raise-common-lib.umd.js +50 -5
- 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 +36 -3
- package/esm2015/lib/layout/main-container/index.component.js +3 -3
- package/esm2015/lib/layout/rs-footer/index.component.js +1 -1
- package/esm5/lib/common-grid/index.component.js +48 -3
- package/esm5/lib/layout/main-container/index.component.js +3 -3
- package/esm5/lib/layout/rs-footer/index.component.js +1 -1
- package/fesm2015/raise-common-lib.js +38 -5
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +50 -5
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/common-grid/index.component.d.ts +6 -0
- package/package.json +1 -1
- package/raise-common-lib.metadata.json +1 -1
- package/src/assets/style/style.scss +0 -1
|
@@ -98,6 +98,9 @@ var CommonGridComponent = /** @class */ (function () {
|
|
|
98
98
|
this.dataBound = new EventEmitter();
|
|
99
99
|
this.exportQueryCellInfo = new EventEmitter();
|
|
100
100
|
this.rowSelecting = new EventEmitter();
|
|
101
|
+
this.rowDrop = new EventEmitter();
|
|
102
|
+
this.rowDrag = new EventEmitter();
|
|
103
|
+
this.rowDragStart = new EventEmitter();
|
|
101
104
|
this.selectId = [];
|
|
102
105
|
this.startPaging = false;
|
|
103
106
|
this.indexList = [];
|
|
@@ -233,6 +236,28 @@ var CommonGridComponent = /** @class */ (function () {
|
|
|
233
236
|
function (args) {
|
|
234
237
|
this.exportQueryCellInfo.emit(args);
|
|
235
238
|
};
|
|
239
|
+
/**
|
|
240
|
+
* @param {?} args
|
|
241
|
+
* @return {?}
|
|
242
|
+
*/
|
|
243
|
+
CommonGridComponent.prototype._rowDrag = /**
|
|
244
|
+
* @param {?} args
|
|
245
|
+
* @return {?}
|
|
246
|
+
*/
|
|
247
|
+
function (args) {
|
|
248
|
+
this.rowDrag.emit(args);
|
|
249
|
+
};
|
|
250
|
+
/**
|
|
251
|
+
* @param {?} args
|
|
252
|
+
* @return {?}
|
|
253
|
+
*/
|
|
254
|
+
CommonGridComponent.prototype._rowDragStart = /**
|
|
255
|
+
* @param {?} args
|
|
256
|
+
* @return {?}
|
|
257
|
+
*/
|
|
258
|
+
function (args) {
|
|
259
|
+
this.rowDragStart.emit(args);
|
|
260
|
+
};
|
|
236
261
|
/**
|
|
237
262
|
* @param {?} $event
|
|
238
263
|
* @return {?}
|
|
@@ -634,6 +659,17 @@ var CommonGridComponent = /** @class */ (function () {
|
|
|
634
659
|
function () {
|
|
635
660
|
return this.grid.getSelectedRecords();
|
|
636
661
|
};
|
|
662
|
+
/**
|
|
663
|
+
* @param {?} e
|
|
664
|
+
* @return {?}
|
|
665
|
+
*/
|
|
666
|
+
CommonGridComponent.prototype.onRowDrop = /**
|
|
667
|
+
* @param {?} e
|
|
668
|
+
* @return {?}
|
|
669
|
+
*/
|
|
670
|
+
function (e) {
|
|
671
|
+
this.rowDrop.emit(e);
|
|
672
|
+
};
|
|
637
673
|
/**
|
|
638
674
|
* @param {?} $event
|
|
639
675
|
* @return {?}
|
|
@@ -761,7 +797,7 @@ var CommonGridComponent = /** @class */ (function () {
|
|
|
761
797
|
CommonGridComponent.decorators = [
|
|
762
798
|
{ type: Component, args: [{
|
|
763
799
|
selector: "rs-common-grid",
|
|
764
|
-
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 (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 (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 [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 [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\"\r\n [allowResizing]=\"!last\"\r\n >\r\n </e-column>\r\n </e-columns>\r\n</ejs-grid>\r\n",
|
|
800
|
+
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 (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 [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 [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\"\r\n [allowResizing]=\"!last\"\r\n >\r\n </e-column>\r\n </e-columns>\r\n</ejs-grid>\r\n",
|
|
765
801
|
styles: [""]
|
|
766
802
|
}] }
|
|
767
803
|
];
|
|
@@ -810,7 +846,10 @@ var CommonGridComponent = /** @class */ (function () {
|
|
|
810
846
|
rowDataBound: [{ type: Output }],
|
|
811
847
|
dataBound: [{ type: Output }],
|
|
812
848
|
exportQueryCellInfo: [{ type: Output }],
|
|
813
|
-
rowSelecting: [{ type: Output }]
|
|
849
|
+
rowSelecting: [{ type: Output }],
|
|
850
|
+
rowDrop: [{ type: Output }],
|
|
851
|
+
rowDrag: [{ type: Output }],
|
|
852
|
+
rowDragStart: [{ type: Output }]
|
|
814
853
|
};
|
|
815
854
|
return CommonGridComponent;
|
|
816
855
|
}());
|
|
@@ -915,6 +954,12 @@ if (false) {
|
|
|
915
954
|
/** @type {?} */
|
|
916
955
|
CommonGridComponent.prototype.rowSelecting;
|
|
917
956
|
/** @type {?} */
|
|
957
|
+
CommonGridComponent.prototype.rowDrop;
|
|
958
|
+
/** @type {?} */
|
|
959
|
+
CommonGridComponent.prototype.rowDrag;
|
|
960
|
+
/** @type {?} */
|
|
961
|
+
CommonGridComponent.prototype.rowDragStart;
|
|
962
|
+
/** @type {?} */
|
|
918
963
|
CommonGridComponent.prototype.selectId;
|
|
919
964
|
/** @type {?} */
|
|
920
965
|
CommonGridComponent.prototype.startPaging;
|
|
@@ -21051,8 +21096,8 @@ var MainContainerComponent = /** @class */ (function () {
|
|
|
21051
21096
|
MainContainerComponent.decorators = [
|
|
21052
21097
|
{ type: Component, args: [{
|
|
21053
21098
|
selector: "rs-main-container",
|
|
21054
|
-
template: "<div class=\"app-main-container\">\r\n <ng-content select=\"[headerSlot]\"></ng-content>\r\n
|
|
21055
|
-
styles: [".app-main-container{display:flex;flex-direction:column;height:
|
|
21099
|
+
template: "<div class=\"app-main-container-wrap\">\r\n <div class=\"app-main-container\">\r\n <ng-content select=\"[headerSlot]\"></ng-content>\r\n <div class=\"main-page\">\r\n <div class=\"left-aside\">\r\n <ng-content select=\"[leftAsideSlot]\"></ng-content>\r\n </div>\r\n <div\r\n class=\"right-aside\"\r\n [ngClass]=\"{ isCollapsed: isCollapsed }\"\r\n (click)=\"onRightAsideClick()\"\r\n >\r\n <ng-content select=\"[multiTabSlot]\"></ng-content>\r\n <!-- <rs-multi-tab [singleReuseUrls]=\"singleReuseUrls\"></rs-multi-tab> -->\r\n <div class=\"router-content\">\r\n <rs-drawer #drawer>\r\n <ng-content select=\"[routerSlot]\"></ng-content>\r\n </rs-drawer>\r\n </div>\r\n <rs-footer></rs-footer>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
21100
|
+
styles: [".app-main-container-wrap{width:100%;overflow:auto;height:100vh}@media (max-width:768px){.app-main-container-wrap{height:calc(100vh - 40px)}}.app-main-container{display:flex;flex-direction:column;height:100%;min-width:768px}.app-main-container .main-page{flex:1;height:0;display:flex;background-color:var(--rs-container-bg)}.app-main-container .left-aside{height:100%}.app-main-container .right-aside{width:0;flex:1;display:flex;flex-direction:column;padding-right:12px}.app-main-container .right-aside .router-content{flex:1;overflow:auto;max-width:1886px;width:100%;margin:0 auto}@media (max-width:992px){.app-main-container .right-aside.isCollapsed{position:relative}.app-main-container .right-aside.isCollapsed::after{content:\" \";position:absolute;z-index:5;inset:0;background-color:rgba(0,0,0,.2)}}"]
|
|
21056
21101
|
}] }
|
|
21057
21102
|
];
|
|
21058
21103
|
/** @nocollapse */
|
|
@@ -21127,7 +21172,7 @@ var RSFooterComponent = /** @class */ (function () {
|
|
|
21127
21172
|
{ type: Component, args: [{
|
|
21128
21173
|
selector: 'rs-footer',
|
|
21129
21174
|
template: "<div class=\"rs-footer\">\r\n <span>\r\n RAISE<sup>®</sup>\u00A0\u00A9\u00A0\r\n {{ today | date : \"yyyy\" }}\r\n Linnovate Partners</span\r\n >\r\n</div>\r\n",
|
|
21130
|
-
styles: [".rs-footer{height:40px;padding:0 24px;display:flex;align-items:center;background-color:var(--rs-container-bg);color:var(--rs-labels-color);font-family:var(--rs-font-family);font-size:11px;max-width:1886px;margin:0 auto}"]
|
|
21175
|
+
styles: [".rs-footer{height:40px;padding:0 24px;display:flex;align-items:center;background-color:var(--rs-container-bg);color:var(--rs-labels-color);font-family:var(--rs-font-family);font-size:11px;max-width:1886px;margin:0 auto}@media (max-width:768px){.rs-footer{width:100%;position:fixed;bottom:0;left:0}}"]
|
|
21131
21176
|
}] }
|
|
21132
21177
|
];
|
|
21133
21178
|
return RSFooterComponent;
|