raise-common-lib 0.0.135 → 0.0.136
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 +101 -9
- 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/commentary/index.component.js +12 -6
- package/esm2015/lib/common-grid/index.component.js +6 -2
- package/esm2015/lib/raise-common-lib.module.js +9 -5
- package/esm2015/lib/truncated-text-toggle/index.component.js +67 -0
- package/esm2015/public-api.js +2 -1
- package/esm2015/raise-common-lib.js +2 -2
- package/esm5/lib/commentary/index.component.js +15 -7
- package/esm5/lib/common-grid/index.component.js +6 -2
- package/esm5/lib/raise-common-lib.module.js +9 -5
- package/esm5/lib/truncated-text-toggle/index.component.js +78 -0
- package/esm5/public-api.js +2 -1
- package/esm5/raise-common-lib.js +2 -2
- package/fesm2015/raise-common-lib.js +89 -10
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +102 -11
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/common-grid/index.component.d.ts +1 -0
- package/lib/truncated-text-toggle/index.component.d.ts +12 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/raise-common-lib.metadata.json +1 -1
- package/src/assets/img/click_show_more_icon.svg +3 -0
- package/src/assets/img/comment-cancel.svg +4 -4
- package/src/assets/img/comment-check.svg +5 -5
- package/src/assets/img/drawer-back.svg +4 -4
- package/src/assets/img/eye-close.svg +4 -4
- package/src/assets/img/eye-open.svg +4 -4
- package/src/assets/img/toolbar-action-add.svg +4 -4
- package/src/assets/img/toolbar-action-delete.svg +14 -14
- package/src/assets/img/toolbar-action-download.svg +5 -5
- package/src/assets/img/toolbar-action-duplicate.svg +6 -6
- package/src/assets/img/toolbar-action-export.svg +5 -5
- package/src/assets/img/toolbar-action-import.svg +5 -5
- package/src/assets/img/toolbar-action-refresh.svg +14 -14
- package/src/assets/img/toolbar-action-upload.svg +5 -5
- package/src/assets/style/reset/grid.scss +3 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __decorate, __metadata, __read, __values, __spread } from 'tslib';
|
|
2
2
|
import { EventEmitter, Component, ChangeDetectorRef, ViewChild, Input, Output, HostBinding, Injectable, ɵɵdefineInjectable, Inject, ɵɵinject, ContentChild, HostListener, ComponentFactoryResolver, ViewContainerRef, ViewChildren, ElementRef, NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
3
|
-
import { GridComponent, GridModule, PagerModule, GridAllModule, PageService, SortService, FilterService, ExcelExportService, EditService, ResizeService, ToolbarService, ColumnChooserService, AggregateService, ColumnMenuService, DetailRowService, SelectionService, GroupService } from '@syncfusion/ej2-angular-grids';
|
|
3
|
+
import { GridComponent, GridModule, PagerModule, GridAllModule, PageService, RowDDService, SortService, FilterService, ExcelExportService, EditService, ResizeService, ToolbarService, ColumnChooserService, AggregateService, ColumnMenuService, DetailRowService, SelectionService, GroupService } from '@syncfusion/ej2-angular-grids';
|
|
4
4
|
import { times, debounce } from 'lodash';
|
|
5
5
|
import { Subject, BehaviorSubject } from 'rxjs';
|
|
6
6
|
import { MAT_SNACK_BAR_DATA, MatSnackBar, MatSnackBarModule } from '@angular/material/snack-bar';
|
|
@@ -55,6 +55,7 @@ var CommonGridComponent = /** @class */ (function () {
|
|
|
55
55
|
this.fields = [];
|
|
56
56
|
this.dataSource = [];
|
|
57
57
|
this.allowPaging = true;
|
|
58
|
+
this.allowRowDragAndDrop = false;
|
|
58
59
|
this.clipMode = "EllipsisWithTooltip";
|
|
59
60
|
this.checkBoxWidth = 32; // col 数量过少的时候,check宽度会拉伸,这时候设置null
|
|
60
61
|
/**
|
|
@@ -760,7 +761,7 @@ var CommonGridComponent = /** @class */ (function () {
|
|
|
760
761
|
CommonGridComponent.decorators = [
|
|
761
762
|
{ type: Component, args: [{
|
|
762
763
|
selector: "rs-common-grid",
|
|
763
|
-
template: "<ejs-grid\r\n
|
|
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",
|
|
764
765
|
styles: [""]
|
|
765
766
|
}] }
|
|
766
767
|
];
|
|
@@ -786,6 +787,7 @@ var CommonGridComponent = /** @class */ (function () {
|
|
|
786
787
|
columnTemplate: [{ type: Input }],
|
|
787
788
|
pageSettings: [{ type: Input }],
|
|
788
789
|
allowPaging: [{ type: Input }],
|
|
790
|
+
allowRowDragAndDrop: [{ type: Input }],
|
|
789
791
|
clipMode: [{ type: Input }],
|
|
790
792
|
checkBoxWidth: [{ type: Input }],
|
|
791
793
|
childGrid: [{ type: Input }],
|
|
@@ -848,6 +850,8 @@ if (false) {
|
|
|
848
850
|
/** @type {?} */
|
|
849
851
|
CommonGridComponent.prototype.allowPaging;
|
|
850
852
|
/** @type {?} */
|
|
853
|
+
CommonGridComponent.prototype.allowRowDragAndDrop;
|
|
854
|
+
/** @type {?} */
|
|
851
855
|
CommonGridComponent.prototype.clipMode;
|
|
852
856
|
/** @type {?} */
|
|
853
857
|
CommonGridComponent.prototype.checkBoxWidth;
|
|
@@ -2228,7 +2232,9 @@ var RsCommentaryComponent = /** @class */ (function () {
|
|
|
2228
2232
|
* @param {?} ele
|
|
2229
2233
|
* @return {?}
|
|
2230
2234
|
*/
|
|
2231
|
-
function (ele) {
|
|
2235
|
+
function (ele) {
|
|
2236
|
+
return ele[_this.filedsKey.messageId] === item[_this.filedsKey.messageId];
|
|
2237
|
+
}));
|
|
2232
2238
|
_this.actionComplete.emit({
|
|
2233
2239
|
action: "deleteComment",
|
|
2234
2240
|
data: item,
|
|
@@ -2288,14 +2294,20 @@ var RsCommentaryComponent = /** @class */ (function () {
|
|
|
2288
2294
|
function (e) {
|
|
2289
2295
|
/** @type {?} */
|
|
2290
2296
|
var textarea = e.target;
|
|
2291
|
-
|
|
2292
|
-
|
|
2297
|
+
if (e.type === "focus" && textarea.value) {
|
|
2298
|
+
textarea.style.height = "auto";
|
|
2299
|
+
textarea.style.height = textarea.scrollHeight + "px";
|
|
2300
|
+
}
|
|
2301
|
+
else if (e.type === "input") {
|
|
2302
|
+
textarea.style.height = "auto";
|
|
2303
|
+
textarea.style.height = textarea.scrollHeight + "px";
|
|
2304
|
+
}
|
|
2293
2305
|
};
|
|
2294
2306
|
RsCommentaryComponent.decorators = [
|
|
2295
2307
|
{ type: Component, args: [{
|
|
2296
2308
|
selector: "rs-commentary",
|
|
2297
|
-
template: "<div class=\"rs-commentary-wrap\">\r\n <ng-container\r\n [ngTemplateOutlet]=\"commentBoxTemplate\"\r\n [ngTemplateOutletContext]=\"{ type: 'comment' }\"\r\n ></ng-container>\r\n <div class=\"reply-box\">\r\n <div *ngFor=\"let item of commentData\">\r\n <ng-container\r\n [ngTemplateOutlet]=\"replyItemTemplate\"\r\n [ngTemplateOutletContext]=\"{ type: 'comment', item: item }\"\r\n ></ng-container>\r\n <div class=\"sub-reply-list\">\r\n <ng-container\r\n *ngFor=\"\r\n let sub of item.isExpanded\r\n ? item[filedsKey.commentaries]\r\n : item[filedsKey.commentaries].slice(0, 3)\r\n \"\r\n [ngTemplateOutlet]=\"replyItemTemplate\"\r\n [ngTemplateOutletContext]=\"{ type: 'sub', item: sub }\"\r\n ></ng-container>\r\n </div>\r\n <button\r\n class=\"e-btn text\"\r\n *ngIf=\"item[filedsKey.commentaries].length > 3\"\r\n (click)=\"item.isExpanded = !item.isExpanded\"\r\n style=\"margin-bottom: 8px\"\r\n >\r\n {{\r\n item.isExpanded\r\n ? \"Collapse\"\r\n : \"View All \" + item[filedsKey.commentaries].length + \" Replies\"\r\n }}\r\n <img\r\n class=\"arrow\"\r\n [ngClass]=\"{ collapse: item.isExpanded }\"\r\n src=\"../../assets/img/dropdown-arrow.svg\"\r\n alt=\"\"\r\n />\r\n </button>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<ng-template #commentBoxTemplate let-type=\"type\" let-item=\"item\">\r\n <div class=\"comment-box\">\r\n <div class=\"comment-input-wrap\">\r\n <div class=\"avatar\" *ngIf=\"type !== 'editComment'\">\r\n {{ cf.rtn(displayName) }}\r\n </div>\r\n <textarea\r\n *ngIf=\"type === 'comment'\"\r\n class=\"e-input\"\r\n rows=\"
|
|
2298
|
-
styles: [".rs-commentary-wrap{width:100%;height:100%;padding:32px;display:flex;flex-direction:column}.rs-commentary-wrap .comment-box{width:100%}.rs-commentary-wrap .comment-box .comment-input-wrap{margin-bottom:12px;display:flex;gap:12px}.rs-commentary-wrap .comment-box .comment-input-wrap .e-input{flex:1;width:0;height:
|
|
2309
|
+
template: "<div class=\"rs-commentary-wrap\">\r\n <ng-container\r\n [ngTemplateOutlet]=\"commentBoxTemplate\"\r\n [ngTemplateOutletContext]=\"{ type: 'comment' }\"\r\n ></ng-container>\r\n <div class=\"reply-box\">\r\n <div *ngFor=\"let item of commentData\">\r\n <ng-container\r\n [ngTemplateOutlet]=\"replyItemTemplate\"\r\n [ngTemplateOutletContext]=\"{ type: 'comment', item: item }\"\r\n ></ng-container>\r\n <div class=\"sub-reply-list\">\r\n <ng-container\r\n *ngFor=\"\r\n let sub of item.isExpanded\r\n ? item[filedsKey.commentaries]\r\n : item[filedsKey.commentaries].slice(0, 3)\r\n \"\r\n [ngTemplateOutlet]=\"replyItemTemplate\"\r\n [ngTemplateOutletContext]=\"{ type: 'sub', item: sub }\"\r\n ></ng-container>\r\n </div>\r\n <button\r\n class=\"e-btn text\"\r\n *ngIf=\"item[filedsKey.commentaries].length > 3\"\r\n (click)=\"item.isExpanded = !item.isExpanded\"\r\n style=\"margin-bottom: 8px\"\r\n >\r\n {{\r\n item.isExpanded\r\n ? \"Collapse\"\r\n : \"View All \" + item[filedsKey.commentaries].length + \" Replies\"\r\n }}\r\n <img\r\n class=\"arrow\"\r\n [ngClass]=\"{ collapse: item.isExpanded }\"\r\n src=\"../../assets/img/dropdown-arrow.svg\"\r\n alt=\"\"\r\n />\r\n </button>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<ng-template #commentBoxTemplate let-type=\"type\" let-item=\"item\">\r\n <div class=\"comment-box\">\r\n <div class=\"comment-input-wrap\">\r\n <div class=\"avatar\" *ngIf=\"type !== 'editComment'\">\r\n {{ cf.rtn(displayName) }}\r\n </div>\r\n <textarea\r\n *ngIf=\"type === 'comment'\"\r\n class=\"e-input\"\r\n rows=\"3\"\r\n [(ngModel)]=\"commentVal\"\r\n (input)=\"adjustTextareaHeight($event)\"\r\n (focus)=\"adjustTextareaHeight($event)\"\r\n [disabled]=\"isReadOnly || !editPermission\"\r\n placeholder=\"Write your comment...\"\r\n ></textarea>\r\n <textarea\r\n *ngIf=\"type === 'reply'\"\r\n class=\"e-input\"\r\n rows=\"3\"\r\n [(ngModel)]=\"replyVal\"\r\n (input)=\"adjustTextareaHeight($event)\"\r\n (focus)=\"adjustTextareaHeight($event)\"\r\n placeholder=\"Write your comment...\"\r\n ></textarea>\r\n <textarea\r\n *ngIf=\"type === 'editComment'\"\r\n class=\"e-input\"\r\n rows=\"3\"\r\n [(ngModel)]=\"editCommentVal\"\r\n (input)=\"adjustTextareaHeight($event)\"\r\n (focus)=\"adjustTextareaHeight($event)\"\r\n placeholder=\"Write your comment...\"\r\n ></textarea>\r\n </div>\r\n <div class=\"btn-wrap\">\r\n <button\r\n *ngIf=\"type === 'comment'\"\r\n class=\"e-btn e-primary small\"\r\n [disabled]=\"commentVal === '' || isReadOnly || !editPermission\"\r\n (click)=\"addComment()\"\r\n >\r\n {{ translation.COMMENT || \".COMMENT\" }}\r\n </button>\r\n <ng-container *ngIf=\"type === 'reply'\">\r\n <button\r\n class=\"e-btn small\"\r\n (click)=\"item.showReplyInput = false; replyVal = ''\"\r\n >\r\n {{ translation.CANCEL || \".CANCEL\" }}\r\n </button>\r\n <button\r\n class=\"e-btn e-primary small\"\r\n [disabled]=\"replyVal === ''\"\r\n (click)=\"addReply(item)\"\r\n >\r\n {{ translation.REPLY || \".REPLY\" }}\r\n </button>\r\n </ng-container>\r\n <ng-container *ngIf=\"type === 'editComment'\">\r\n <button class=\"e-btn text\" (click)=\"item.showCommentEdit = false\">\r\n <img src=\"../../assets/img/comment-cancel.svg\" alt=\"\" />\r\n </button>\r\n <button\r\n class=\"e-btn text\"\r\n [disabled]=\"editCommentVal === ''\"\r\n (click)=\"updateComment(item)\"\r\n >\r\n <img src=\"../../assets/img/comment-check.svg\" alt=\"\" />\r\n </button>\r\n </ng-container>\r\n </div>\r\n </div>\r\n</ng-template>\r\n<ng-template #replyItemTemplate let-type=\"type\" let-item=\"item\">\r\n <div class=\"reply-item\" [ngClass]=\"{ comment: type === 'comment' }\">\r\n <div class=\"avatar\">\r\n {{ cf.rtn(item[filedsKey.ownerName]) }}\r\n </div>\r\n <div class=\"owner-wrap\">\r\n <div class=\"owner-info\">\r\n <div class=\"name\">\r\n {{ item[filedsKey.ownerName] }}\r\n </div>\r\n <div class=\"time\">\r\n {{ item[filedsKey.lastModifiedOn] | date : dateTimePipeFormat }}\r\n </div>\r\n </div>\r\n <div class=\"message-wrap\">\r\n <div class=\"message\" *ngIf=\"!item.showCommentEdit\">\r\n <!-- {{ item[filedsKey.messageBody] }} -->\r\n <truncated-text-toggle\r\n [maximum]=\"1050\"\r\n [data]=\"item[filedsKey.messageBody]\"\r\n >\r\n </truncated-text-toggle>\r\n </div>\r\n <ng-container\r\n *ngIf=\"item.showCommentEdit\"\r\n [ngTemplateOutlet]=\"commentBoxTemplate\"\r\n [ngTemplateOutletContext]=\"{ type: 'editComment', item: item }\"\r\n ></ng-container>\r\n </div>\r\n\r\n <button\r\n *ngIf=\"\r\n type === 'comment' && !item.showReplyInput && !item.showCommentEdit\r\n \"\r\n class=\"e-btn text\"\r\n (click)=\"item.showReplyInput = true\"\r\n [disabled]=\"isReadOnly || !editPermission\"\r\n >\r\n {{ translation.REPLY || \".REPLY\" }}\r\n </button>\r\n <ng-container\r\n *ngIf=\"item.showReplyInput\"\r\n [ngTemplateOutlet]=\"commentBoxTemplate\"\r\n [ngTemplateOutletContext]=\"{ type: 'reply', item: item }\"\r\n ></ng-container>\r\n\r\n <rs-grid-action *ngIf=\"type === 'comment'\">\r\n <rs-grid-action-item\r\n image=\"Edit\"\r\n [text]=\"translation.EDIT\"\r\n [disabled]=\"isReadOnly || !editPermission\"\r\n (click)=\"editComment(item)\"\r\n ></rs-grid-action-item>\r\n <rs-grid-action-item\r\n image=\"Delete\"\r\n [text]=\"translation.DELETE\"\r\n [disabled]=\"isReadOnly || !deletePermission\"\r\n (click)=\"deleteComment(item)\"\r\n ></rs-grid-action-item>\r\n </rs-grid-action>\r\n </div>\r\n </div>\r\n</ng-template>\r\n",
|
|
2310
|
+
styles: [".rs-commentary-wrap{width:100%;height:100%;padding:32px;display:flex;flex-direction:column}.rs-commentary-wrap .comment-box{width:100%}.rs-commentary-wrap .comment-box .comment-input-wrap{margin-bottom:12px;display:flex;gap:12px}.rs-commentary-wrap .comment-box .comment-input-wrap .e-input{flex:1;width:0;height:62px}.rs-commentary-wrap .comment-box .btn-wrap{display:flex;justify-content:flex-end;gap:12px}.rs-commentary-wrap .comment-box .btn-wrap .e-btn.text{padding:4px}.rs-commentary-wrap .reply-box{height:0;flex:1;overflow:auto;margin-top:16px;margin-right:-32px;padding-right:32px}.rs-commentary-wrap .reply-box .sub-reply-list{padding-left:40px}.rs-commentary-wrap .reply-box .e-btn.text{padding:0!important;min-width:auto;height:auto;color:#6c7c90!important}.rs-commentary-wrap .reply-box .e-btn.text:hover{background:0 0!important;color:#1364b3!important}.rs-commentary-wrap .reply-box .e-btn.text:focus{background:0 0!important;color:#6c7c90!important}.rs-commentary-wrap .reply-box .arrow.collapse{transform:rotate(180deg)}.rs-commentary-wrap .reply-box .reply-item{display:flex;gap:12px;padding:12px 0}.rs-commentary-wrap .reply-box .reply-item.comment{border-top:1px solid #eaedf0}.rs-commentary-wrap .reply-box .reply-item.comment:hover{background-color:#f6faff}.rs-commentary-wrap .reply-box .reply-item.comment:hover rs-grid-action{display:block}.rs-commentary-wrap .reply-box .reply-item rs-grid-action{display:none;position:absolute;cursor:pointer;top:-4px;right:8px}.rs-commentary-wrap .reply-box .owner-wrap{flex:1;width:0;position:relative}.rs-commentary-wrap .reply-box .owner-wrap .owner-info{display:flex;align-items:center;gap:8px;height:28px}.rs-commentary-wrap .reply-box .owner-wrap .owner-info .name{color:#44566c;font-family:Arial;font-size:12px;font-style:normal;font-weight:700;line-height:14px}.rs-commentary-wrap .reply-box .owner-wrap .owner-info .time{color:#6c7c90;font-family:Arial;font-size:10px;font-style:normal;font-weight:400;line-height:12px}.rs-commentary-wrap .reply-box .owner-wrap .message-wrap{padding:12px 0}.rs-commentary-wrap .reply-box .owner-wrap .message-wrap .message{color:#44566c;font-family:Arial;font-size:12px;font-style:normal;font-weight:400;line-height:16px;padding-right:8px;white-space:pre-wrap}.rs-commentary-wrap .avatar{width:32px;height:32px;border-radius:100%;border:1px solid rgba(108,124,144,.4);color:#44566c;display:flex;align-items:center;justify-content:center;font-family:Arial;font-size:12px;font-style:normal;font-weight:400;line-height:14px}"]
|
|
2299
2311
|
}] }
|
|
2300
2312
|
];
|
|
2301
2313
|
/** @nocollapse */
|
|
@@ -2332,7 +2344,7 @@ var RsCommentaryComponent = /** @class */ (function () {
|
|
|
2332
2344
|
__metadata("design:returntype", void 0)
|
|
2333
2345
|
], RsCommentaryComponent.prototype, "addReply", null);
|
|
2334
2346
|
__decorate([
|
|
2335
|
-
Debounce(
|
|
2347
|
+
Debounce(100),
|
|
2336
2348
|
__metadata("design:type", Function),
|
|
2337
2349
|
__metadata("design:paramtypes", [Object]),
|
|
2338
2350
|
__metadata("design:returntype", void 0)
|
|
@@ -2378,6 +2390,82 @@ if (false) {
|
|
|
2378
2390
|
RsCommentaryComponent.prototype.ref;
|
|
2379
2391
|
}
|
|
2380
2392
|
|
|
2393
|
+
/**
|
|
2394
|
+
* @fileoverview added by tsickle
|
|
2395
|
+
* Generated from: lib/truncated-text-toggle/index.component.ts
|
|
2396
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2397
|
+
*/
|
|
2398
|
+
var TruncatedTextToggleComponent = /** @class */ (function () {
|
|
2399
|
+
function TruncatedTextToggleComponent() {
|
|
2400
|
+
this.showData = "";
|
|
2401
|
+
this.showExpandMoreBtn = false;
|
|
2402
|
+
this.showCollapseBtn = false;
|
|
2403
|
+
}
|
|
2404
|
+
/**
|
|
2405
|
+
* @return {?}
|
|
2406
|
+
*/
|
|
2407
|
+
TruncatedTextToggleComponent.prototype.ngOnInit = /**
|
|
2408
|
+
* @return {?}
|
|
2409
|
+
*/
|
|
2410
|
+
function () {
|
|
2411
|
+
if (this.data.length > this.maximum) {
|
|
2412
|
+
this.showExpandMoreBtn = true;
|
|
2413
|
+
this.showData = this.data.substring(0, this.maximum) + "...";
|
|
2414
|
+
}
|
|
2415
|
+
else {
|
|
2416
|
+
this.showData = this.data;
|
|
2417
|
+
}
|
|
2418
|
+
};
|
|
2419
|
+
/**
|
|
2420
|
+
* @return {?}
|
|
2421
|
+
*/
|
|
2422
|
+
TruncatedTextToggleComponent.prototype.showAll = /**
|
|
2423
|
+
* @return {?}
|
|
2424
|
+
*/
|
|
2425
|
+
function () {
|
|
2426
|
+
this.showExpandMoreBtn = false;
|
|
2427
|
+
this.showCollapseBtn = true;
|
|
2428
|
+
this.showData = this.data;
|
|
2429
|
+
};
|
|
2430
|
+
/**
|
|
2431
|
+
* @return {?}
|
|
2432
|
+
*/
|
|
2433
|
+
TruncatedTextToggleComponent.prototype.collapse = /**
|
|
2434
|
+
* @return {?}
|
|
2435
|
+
*/
|
|
2436
|
+
function () {
|
|
2437
|
+
this.showExpandMoreBtn = true;
|
|
2438
|
+
this.showCollapseBtn = false;
|
|
2439
|
+
this.showData = this.data.substring(0, this.maximum) + "...";
|
|
2440
|
+
};
|
|
2441
|
+
TruncatedTextToggleComponent.decorators = [
|
|
2442
|
+
{ type: Component, args: [{
|
|
2443
|
+
selector: "truncated-text-toggle",
|
|
2444
|
+
template: "<div class=\"click-show-more-content\">\r\n <span>{{ showData }}</span>\r\n <span *ngIf=\"showExpandMoreBtn\" class=\"show-more\" (click)=\"showAll()\">\r\n Read More\r\n <img src=\"./assets/img/click_show_more_icon.svg\" alt=\"\" />\r\n </span>\r\n <div\r\n class=\"show-more collapse-btn\"\r\n (click)=\"collapse()\"\r\n *ngIf=\"showCollapseBtn\"\r\n >\r\n Collapse\r\n <img src=\"./assets/img/click_show_more_icon.svg\" alt=\"\" />\r\n </div>\r\n</div>\r\n",
|
|
2445
|
+
styles: [".click-show-more-content{word-wrap:break-word}.click-show-more-content .show-more{cursor:pointer;color:#1364b3;font-size:11px;margin-left:4px;vertical-align:middle}.click-show-more-content .show-more img{margin-left:2px;vertical-align:middle}.click-show-more-content .collapse-btn{display:flex;align-items:center;justify-content:flex-end}.click-show-more-content .collapse-btn img{transform:rotate(-180deg)}"]
|
|
2446
|
+
}] }
|
|
2447
|
+
];
|
|
2448
|
+
/** @nocollapse */
|
|
2449
|
+
TruncatedTextToggleComponent.ctorParameters = function () { return []; };
|
|
2450
|
+
TruncatedTextToggleComponent.propDecorators = {
|
|
2451
|
+
data: [{ type: Input }],
|
|
2452
|
+
maximum: [{ type: Input }]
|
|
2453
|
+
};
|
|
2454
|
+
return TruncatedTextToggleComponent;
|
|
2455
|
+
}());
|
|
2456
|
+
if (false) {
|
|
2457
|
+
/** @type {?} */
|
|
2458
|
+
TruncatedTextToggleComponent.prototype.data;
|
|
2459
|
+
/** @type {?} */
|
|
2460
|
+
TruncatedTextToggleComponent.prototype.maximum;
|
|
2461
|
+
/** @type {?} */
|
|
2462
|
+
TruncatedTextToggleComponent.prototype.showData;
|
|
2463
|
+
/** @type {?} */
|
|
2464
|
+
TruncatedTextToggleComponent.prototype.showExpandMoreBtn;
|
|
2465
|
+
/** @type {?} */
|
|
2466
|
+
TruncatedTextToggleComponent.prototype.showCollapseBtn;
|
|
2467
|
+
}
|
|
2468
|
+
|
|
2381
2469
|
/**
|
|
2382
2470
|
* @fileoverview added by tsickle
|
|
2383
2471
|
* Generated from: lib/layout/page-list/index.component.ts
|
|
@@ -22843,7 +22931,8 @@ var RaiseCommonLibModule = /** @class */ (function () {
|
|
|
22843
22931
|
ToolbarItemComponent,
|
|
22844
22932
|
RsCommentaryComponent,
|
|
22845
22933
|
RSNavCardGroupComponent,
|
|
22846
|
-
RSToolbarComponent
|
|
22934
|
+
RSToolbarComponent,
|
|
22935
|
+
TruncatedTextToggleComponent
|
|
22847
22936
|
],
|
|
22848
22937
|
imports: [
|
|
22849
22938
|
CommonModule,
|
|
@@ -22894,6 +22983,7 @@ var RaiseCommonLibModule = /** @class */ (function () {
|
|
|
22894
22983
|
],
|
|
22895
22984
|
providers: [
|
|
22896
22985
|
PageService,
|
|
22986
|
+
RowDDService,
|
|
22897
22987
|
SortService,
|
|
22898
22988
|
FilterService,
|
|
22899
22989
|
ExcelExportService,
|
|
@@ -22994,7 +23084,8 @@ var RaiseCommonLibModule = /** @class */ (function () {
|
|
|
22994
23084
|
ToolbarItemComponent,
|
|
22995
23085
|
RsCommentaryComponent,
|
|
22996
23086
|
RSNavCardGroupComponent,
|
|
22997
|
-
RSToolbarComponent
|
|
23087
|
+
RSToolbarComponent,
|
|
23088
|
+
TruncatedTextToggleComponent
|
|
22998
23089
|
],
|
|
22999
23090
|
entryComponents: [
|
|
23000
23091
|
NewActionNotificationComponent,
|
|
@@ -23019,5 +23110,5 @@ var RaiseCommonLibModule = /** @class */ (function () {
|
|
|
23019
23110
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
23020
23111
|
*/
|
|
23021
23112
|
|
|
23022
|
-
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, filterShowSection, Debounce as ɵa, NewActionNotificationComponent as ɵb, CommonDialogComponent as ɵc, CommonDeleteComponent as ɵd };
|
|
23113
|
+
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 };
|
|
23023
23114
|
//# sourceMappingURL=raise-common-lib.js.map
|