raise-common-lib 0.0.185 → 0.0.187
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 +134 -101
- 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 +6 -5
- package/esm2015/lib/float-box/index.component.js +3 -1
- package/esm2015/lib/layout/grid-box/index.component.js +15 -3
- package/esm2015/lib/layout/page-list/index.component.js +15 -3
- package/esm2015/lib/layout/rs-aside/index.component.js +3 -3
- package/esm5/lib/commentary/index.component.js +6 -5
- package/esm5/lib/float-box/index.component.js +3 -1
- package/esm5/lib/layout/grid-box/index.component.js +19 -3
- package/esm5/lib/layout/page-list/index.component.js +19 -3
- package/esm5/lib/layout/rs-aside/index.component.js +3 -3
- package/fesm2015/raise-common-lib.js +111 -86
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +134 -101
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/commentary/index.component.d.ts +1 -1
- package/lib/layout/grid-box/index.component.d.ts +3 -0
- package/lib/layout/page-list/index.component.d.ts +3 -0
- package/package.json +1 -1
- package/raise-common-lib.metadata.json +1 -1
- package/src/assets/img/grid-action-preview.svg +6 -6
|
@@ -1389,6 +1389,8 @@ var FloatBoxComponent = /** @class */ (function () {
|
|
|
1389
1389
|
*/
|
|
1390
1390
|
function () {
|
|
1391
1391
|
_this.opened = "no";
|
|
1392
|
+
_this.ref.markForCheck();
|
|
1393
|
+
_this.ref.detectChanges();
|
|
1392
1394
|
_this.openChange.emit(false);
|
|
1393
1395
|
}), 0);
|
|
1394
1396
|
};
|
|
@@ -2223,11 +2225,11 @@ var RsCommentaryComponent = /** @class */ (function () {
|
|
|
2223
2225
|
lastModifiedOn: "lastModifiedOn",
|
|
2224
2226
|
messageBody: "messageBody",
|
|
2225
2227
|
};
|
|
2228
|
+
this.dateTimePipeFormat = "dd-MMM-yyyy hh:mm:a";
|
|
2226
2229
|
this.actionComplete = new EventEmitter();
|
|
2227
2230
|
this.commentVal = "";
|
|
2228
2231
|
this.replyVal = "";
|
|
2229
2232
|
this.editCommentVal = "";
|
|
2230
|
-
this.dateTimePipeFormat = "dd-MMM-yyyy hh:mm:a";
|
|
2231
2233
|
}
|
|
2232
2234
|
/**
|
|
2233
2235
|
* @return {?}
|
|
@@ -2337,7 +2339,7 @@ var RsCommentaryComponent = /** @class */ (function () {
|
|
|
2337
2339
|
* @return {?}
|
|
2338
2340
|
*/
|
|
2339
2341
|
function (res) {
|
|
2340
|
-
if (res ===
|
|
2342
|
+
if (res === "close") {
|
|
2341
2343
|
return;
|
|
2342
2344
|
}
|
|
2343
2345
|
/** @type {?} */
|
|
@@ -2436,6 +2438,7 @@ var RsCommentaryComponent = /** @class */ (function () {
|
|
|
2436
2438
|
deletePermission: [{ type: Input }],
|
|
2437
2439
|
isReadOnly: [{ type: Input }],
|
|
2438
2440
|
filedsKey: [{ type: Input }],
|
|
2441
|
+
dateTimePipeFormat: [{ type: Input }],
|
|
2439
2442
|
actionComplete: [{ type: Output }]
|
|
2440
2443
|
};
|
|
2441
2444
|
__decorate([
|
|
@@ -2478,6 +2481,8 @@ if (false) {
|
|
|
2478
2481
|
/** @type {?} */
|
|
2479
2482
|
RsCommentaryComponent.prototype.filedsKey;
|
|
2480
2483
|
/** @type {?} */
|
|
2484
|
+
RsCommentaryComponent.prototype.dateTimePipeFormat;
|
|
2485
|
+
/** @type {?} */
|
|
2481
2486
|
RsCommentaryComponent.prototype.actionComplete;
|
|
2482
2487
|
/** @type {?} */
|
|
2483
2488
|
RsCommentaryComponent.prototype.commentVal;
|
|
@@ -2486,8 +2491,6 @@ if (false) {
|
|
|
2486
2491
|
/** @type {?} */
|
|
2487
2492
|
RsCommentaryComponent.prototype.editCommentVal;
|
|
2488
2493
|
/** @type {?} */
|
|
2489
|
-
RsCommentaryComponent.prototype.dateTimePipeFormat;
|
|
2490
|
-
/** @type {?} */
|
|
2491
2494
|
RsCommentaryComponent.prototype.translation;
|
|
2492
2495
|
/** @type {?} */
|
|
2493
2496
|
RsCommentaryComponent.prototype.cf;
|
|
@@ -2579,6 +2582,99 @@ if (false) {
|
|
|
2579
2582
|
TruncatedTextToggleComponent.prototype.showCollapseBtn;
|
|
2580
2583
|
}
|
|
2581
2584
|
|
|
2585
|
+
/**
|
|
2586
|
+
* @fileoverview added by tsickle
|
|
2587
|
+
* Generated from: lib/form/search-input/index.component.ts
|
|
2588
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2589
|
+
*/
|
|
2590
|
+
var SearchInputComponent = /** @class */ (function () {
|
|
2591
|
+
function SearchInputComponent() {
|
|
2592
|
+
this.placeholder = "";
|
|
2593
|
+
this.hanleSearch = new EventEmitter();
|
|
2594
|
+
this.handleInput = new EventEmitter();
|
|
2595
|
+
this.searchValue = "";
|
|
2596
|
+
}
|
|
2597
|
+
/**
|
|
2598
|
+
* @return {?}
|
|
2599
|
+
*/
|
|
2600
|
+
SearchInputComponent.prototype.ngOnInit = /**
|
|
2601
|
+
* @return {?}
|
|
2602
|
+
*/
|
|
2603
|
+
function () {
|
|
2604
|
+
var _this = this;
|
|
2605
|
+
this.getInfo();
|
|
2606
|
+
this.debouncedInput = debounce((/**
|
|
2607
|
+
* @return {?}
|
|
2608
|
+
*/
|
|
2609
|
+
function () {
|
|
2610
|
+
_this.onSeach();
|
|
2611
|
+
}), 300);
|
|
2612
|
+
};
|
|
2613
|
+
/**
|
|
2614
|
+
* @return {?}
|
|
2615
|
+
*/
|
|
2616
|
+
SearchInputComponent.prototype.getInfo = /**
|
|
2617
|
+
* @return {?}
|
|
2618
|
+
*/
|
|
2619
|
+
function () {
|
|
2620
|
+
this.translation = JSON.parse(localStorage.getItem("translation"));
|
|
2621
|
+
this.placeholder = this.placeholder || this.translation.SEARCH;
|
|
2622
|
+
};
|
|
2623
|
+
/**
|
|
2624
|
+
* @param {?} e
|
|
2625
|
+
* @return {?}
|
|
2626
|
+
*/
|
|
2627
|
+
SearchInputComponent.prototype.onInput = /**
|
|
2628
|
+
* @param {?} e
|
|
2629
|
+
* @return {?}
|
|
2630
|
+
*/
|
|
2631
|
+
function (e) {
|
|
2632
|
+
this.handleInput.emit(e.value);
|
|
2633
|
+
this.debouncedInput();
|
|
2634
|
+
};
|
|
2635
|
+
/**
|
|
2636
|
+
* @return {?}
|
|
2637
|
+
*/
|
|
2638
|
+
SearchInputComponent.prototype.onSeach = /**
|
|
2639
|
+
* @return {?}
|
|
2640
|
+
*/
|
|
2641
|
+
function () {
|
|
2642
|
+
this.hanleSearch.emit(this.searchValue);
|
|
2643
|
+
};
|
|
2644
|
+
SearchInputComponent.decorators = [
|
|
2645
|
+
{ type: Component, args: [{
|
|
2646
|
+
selector: "rs-search-input",
|
|
2647
|
+
template: "<div class=\"rs-search-input\">\r\n <ejs-textbox\r\n type=\"text\"\r\n class=\"e-input\"\r\n [(ngModel)]=\"searchValue\"\r\n (input)=\"onInput($event)\"\r\n [placeholder]=\"placeholder\"\r\n [showClearButton]=\"true\"\r\n autocomplete=\"off\"\r\n ></ejs-textbox>\r\n</div>\r\n",
|
|
2648
|
+
styles: [".rs-search-input{width:240px}.rs-search-input .e-textbox{display:block;box-shadow:none!important}.rs-search-input ::ng-deep .e-input-group{border-radius:14px!important}.rs-search-input ::ng-deep .e-input-group.e-input-focus,.rs-search-input ::ng-deep .e-input-group:hover{box-shadow:0 0 3px 0 rgba(31,123,255,.4)!important;border-color:var(--rs-input-hover-border-color)!important}.rs-search-input ::ng-deep .e-input-group.e-input-focus input.e-input,.rs-search-input ::ng-deep .e-input-group:hover input.e-input{box-shadow:none!important}.rs-search-input ::ng-deep .e-input-group input.e-input{width:calc(100% - 50px);height:24px!important;line-height:22px!important}.rs-search-input ::ng-deep .e-input-group input.e-input:hover{box-shadow:none!important}.rs-search-input ::ng-deep .e-input-group::before{content:\"\"!important;margin:5px 0 0 8px;display:block;width:16px;height:16px;background-image:url(/assets/img/search.svg);background-size:cover;background-position:center}"]
|
|
2649
|
+
}] }
|
|
2650
|
+
];
|
|
2651
|
+
/** @nocollapse */
|
|
2652
|
+
SearchInputComponent.ctorParameters = function () { return []; };
|
|
2653
|
+
SearchInputComponent.propDecorators = {
|
|
2654
|
+
placeholder: [{ type: Input }],
|
|
2655
|
+
hanleSearch: [{ type: Output }],
|
|
2656
|
+
handleInput: [{ type: Output }]
|
|
2657
|
+
};
|
|
2658
|
+
return SearchInputComponent;
|
|
2659
|
+
}());
|
|
2660
|
+
if (false) {
|
|
2661
|
+
/** @type {?} */
|
|
2662
|
+
SearchInputComponent.prototype.placeholder;
|
|
2663
|
+
/** @type {?} */
|
|
2664
|
+
SearchInputComponent.prototype.hanleSearch;
|
|
2665
|
+
/** @type {?} */
|
|
2666
|
+
SearchInputComponent.prototype.handleInput;
|
|
2667
|
+
/**
|
|
2668
|
+
* @type {?}
|
|
2669
|
+
* @private
|
|
2670
|
+
*/
|
|
2671
|
+
SearchInputComponent.prototype.debouncedInput;
|
|
2672
|
+
/** @type {?} */
|
|
2673
|
+
SearchInputComponent.prototype.searchValue;
|
|
2674
|
+
/** @type {?} */
|
|
2675
|
+
SearchInputComponent.prototype.translation;
|
|
2676
|
+
}
|
|
2677
|
+
|
|
2582
2678
|
/**
|
|
2583
2679
|
* @fileoverview added by tsickle
|
|
2584
2680
|
* Generated from: lib/layout/page-list/index.component.ts
|
|
@@ -2620,6 +2716,18 @@ var RsPageListComponent = /** @class */ (function () {
|
|
|
2620
2716
|
// 检测是否传入了 wholeToolbarSlot
|
|
2621
2717
|
this.hasWholeToolbarSlot = !!this.wholeToolbarSlot;
|
|
2622
2718
|
};
|
|
2719
|
+
/**
|
|
2720
|
+
* @param {?} value
|
|
2721
|
+
* @return {?}
|
|
2722
|
+
*/
|
|
2723
|
+
RsPageListComponent.prototype.setSearchValue = /**
|
|
2724
|
+
* @param {?} value
|
|
2725
|
+
* @return {?}
|
|
2726
|
+
*/
|
|
2727
|
+
function (value) {
|
|
2728
|
+
this.searchInput.searchValue = value;
|
|
2729
|
+
this.onSeach(value);
|
|
2730
|
+
};
|
|
2623
2731
|
/**
|
|
2624
2732
|
* @param {?} value
|
|
2625
2733
|
* @return {?}
|
|
@@ -2645,7 +2753,7 @@ var RsPageListComponent = /** @class */ (function () {
|
|
|
2645
2753
|
RsPageListComponent.decorators = [
|
|
2646
2754
|
{ type: Component, args: [{
|
|
2647
2755
|
selector: "rs-page-list",
|
|
2648
|
-
template: "<div class=\"rs-page-list-wrap\" [ngClass]=\"{ 'is-not-inner': !isInner }\">\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 <h1 class=\"rs-page-title\" *ngIf=\"pageTitle\">{{ pageTitle }}</h1>\r\n </ng-template>\r\n <div class=\"rs-sub-section\">\r\n <ng-content select=\"[subSectionSlot]\"></ng-content>\r\n </div>\r\n <div class=\"rs-content-wrap\">\r\n <div class=\"rs-content-tab\">\r\n <ng-content select=\"[contentTabSlot]\"></ng-content>\r\n </div>\r\n <div class=\"rs-toolbar-wrap\">\r\n <div class=\"rs-whole-bar\" *ngIf=\"hasWholeToolbarSlot\">\r\n <ng-content select=\"[wholeToolbarSlot]\"></ng-content>\r\n </div>\r\n <div class=\"rs-left-col\" *ngIf=\"!hasWholeToolbarSlot\">\r\n <ng-content select=\"[leftToolbarBtnSlot]\"></ng-content>\r\n </div>\r\n <div class=\"rs-right-col\" *ngIf=\"!hasWholeToolbarSlot\">\r\n <ng-content select=\"[rightToolbarBtnSlot]\"></ng-content>\r\n <rs-search-input\r\n *ngIf=\"!hideSearch\"\r\n [placeholder]=\"translation.SEARCH_ALL_FIELD\"\r\n (hanleSearch)=\"onSeach($event)\"\r\n ></rs-search-input>\r\n </div>\r\n </div>\r\n <div class=\"rs-grid-wrap\">\r\n <ng-content select=\"[gridSlot]\"></ng-content>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
2756
|
+
template: "<div class=\"rs-page-list-wrap\" [ngClass]=\"{ 'is-not-inner': !isInner }\">\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 <h1 class=\"rs-page-title\" *ngIf=\"pageTitle\">{{ pageTitle }}</h1>\r\n </ng-template>\r\n <div class=\"rs-sub-section\">\r\n <ng-content select=\"[subSectionSlot]\"></ng-content>\r\n </div>\r\n <div class=\"rs-content-wrap\">\r\n <div class=\"rs-content-tab\">\r\n <ng-content select=\"[contentTabSlot]\"></ng-content>\r\n </div>\r\n <div class=\"rs-toolbar-wrap\">\r\n <div class=\"rs-whole-bar\" *ngIf=\"hasWholeToolbarSlot\">\r\n <ng-content select=\"[wholeToolbarSlot]\"></ng-content>\r\n </div>\r\n <div class=\"rs-left-col\" *ngIf=\"!hasWholeToolbarSlot\">\r\n <ng-content select=\"[leftToolbarBtnSlot]\"></ng-content>\r\n </div>\r\n <div class=\"rs-right-col\" *ngIf=\"!hasWholeToolbarSlot\">\r\n <ng-content select=\"[rightToolbarBtnSlot]\"></ng-content>\r\n <rs-search-input\r\n #searchInput\r\n *ngIf=\"!hideSearch\"\r\n [placeholder]=\"translation.SEARCH_ALL_FIELD\"\r\n (hanleSearch)=\"onSeach($event)\"\r\n ></rs-search-input>\r\n </div>\r\n </div>\r\n <div class=\"rs-grid-wrap\">\r\n <ng-content select=\"[gridSlot]\"></ng-content>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
2649
2757
|
styles: [".rs-page-list-wrap{height:100%;display:flex;flex-direction:column;position:relative;margin:0 auto;max-width:1885px}.rs-page-list-wrap .rs-page-title{font-family:var(--rs-font-family);font-size:var(--rs-page-title-font-size);font-weight:700;text-align:left;color:var(--rs-page-title-color);display:flex;align-items:center;padding:16px 8px 12px 20px}.rs-page-list-wrap .rs-sub-section{width:100%}.rs-page-list-wrap .rs-content-wrap{display:flex;flex-direction:column;flex:1;height:0}.rs-page-list-wrap .rs-content-wrap .rs-toolbar-wrap{display:flex;justify-content:space-between;align-items:center;padding-bottom:4px;border-bottom:1px solid #eaedf0}.rs-page-list-wrap .rs-content-wrap .rs-toolbar-wrap .rs-whole-bar{width:100%}.rs-page-list-wrap .rs-content-wrap .rs-toolbar-wrap .rs-left-col,.rs-page-list-wrap .rs-content-wrap .rs-toolbar-wrap .rs-right-col{display:flex;align-items:center}.rs-page-list-wrap .rs-content-wrap .rs-toolbar-wrap .rs-left-col ::ng-deep .e-btn,.rs-page-list-wrap .rs-content-wrap .rs-toolbar-wrap .rs-right-col ::ng-deep .e-btn{height:24px!important;min-width:auto!important}.rs-page-list-wrap .rs-content-wrap .rs-toolbar-wrap .rs-right-col{gap:12px}.rs-page-list-wrap .rs-content-wrap .rs-left-col{flex:1;width:0;gap:4px}.rs-page-list-wrap .rs-content-wrap .rs-grid-wrap{flex:1;height:0}.rs-page-list-wrap.is-not-inner .rs-content-wrap{border-radius:15px;padding:12px 20px;background:#fff;border:1px solid var(--rs-border-color);box-shadow:0 0 4px 0 rgba(0,0,0,.1)}"]
|
|
2650
2758
|
}] }
|
|
2651
2759
|
];
|
|
@@ -2654,6 +2762,7 @@ var RsPageListComponent = /** @class */ (function () {
|
|
|
2654
2762
|
orignGrid: [{ type: ContentChild, args: [GridComponent, { static: false },] }],
|
|
2655
2763
|
treeGrid: [{ type: ContentChild, args: [TreeGridComponent, { static: false },] }],
|
|
2656
2764
|
wholeToolbarSlot: [{ type: ContentChild, args: ["wholeToolbarSlot", { static: false },] }],
|
|
2765
|
+
searchInput: [{ type: ViewChild, args: ["searchInput", { static: false },] }],
|
|
2657
2766
|
pageTitle: [{ type: Input }],
|
|
2658
2767
|
customPageTitle: [{ type: Input }],
|
|
2659
2768
|
hideSearch: [{ type: Input }],
|
|
@@ -2672,6 +2781,8 @@ if (false) {
|
|
|
2672
2781
|
/** @type {?} */
|
|
2673
2782
|
RsPageListComponent.prototype.wholeToolbarSlot;
|
|
2674
2783
|
/** @type {?} */
|
|
2784
|
+
RsPageListComponent.prototype.searchInput;
|
|
2785
|
+
/** @type {?} */
|
|
2675
2786
|
RsPageListComponent.prototype.pageTitle;
|
|
2676
2787
|
/** @type {?} */
|
|
2677
2788
|
RsPageListComponent.prototype.customPageTitle;
|
|
@@ -2837,6 +2948,18 @@ var GridBoxComponent = /** @class */ (function () {
|
|
|
2837
2948
|
// 检测是否传入了 wholeToolbarSlot
|
|
2838
2949
|
this.hasWholeToolbarSlot = !!this.wholeToolbarSlot;
|
|
2839
2950
|
};
|
|
2951
|
+
/**
|
|
2952
|
+
* @param {?} value
|
|
2953
|
+
* @return {?}
|
|
2954
|
+
*/
|
|
2955
|
+
GridBoxComponent.prototype.setSearchValue = /**
|
|
2956
|
+
* @param {?} value
|
|
2957
|
+
* @return {?}
|
|
2958
|
+
*/
|
|
2959
|
+
function (value) {
|
|
2960
|
+
this.searchInput.searchValue = value;
|
|
2961
|
+
this.onSeach(value);
|
|
2962
|
+
};
|
|
2840
2963
|
/**
|
|
2841
2964
|
* @param {?} value
|
|
2842
2965
|
* @return {?}
|
|
@@ -2862,7 +2985,7 @@ var GridBoxComponent = /** @class */ (function () {
|
|
|
2862
2985
|
GridBoxComponent.decorators = [
|
|
2863
2986
|
{ type: Component, args: [{
|
|
2864
2987
|
selector: "rs-grid-box",
|
|
2865
|
-
template: "<div class=\"rs-grid-box\" [ngClass]=\"{ 'is-not-inner': !isInner }\">\r\n <div class=\"rs-content-tab\">\r\n <ng-content select=\"[contentTabSlot]\"></ng-content>\r\n </div>\r\n <div class=\"rs-toolbar-wrap\">\r\n <div class=\"rs-whole-bar\" *ngIf=\"hasWholeToolbarSlot\">\r\n <ng-content select=\"[wholeToolbarSlot]\"></ng-content>\r\n </div>\r\n <div class=\"rs-left-col\" *ngIf=\"!hasWholeToolbarSlot\">\r\n <ng-content select=\"[leftToolbarBtnSlot]\"></ng-content>\r\n </div>\r\n <div class=\"rs-right-col\" *ngIf=\"!hasWholeToolbarSlot\">\r\n <ng-content select=\"[rightToolbarBtnSlot]\"></ng-content>\r\n <rs-search-input\r\n *ngIf=\"!hideSearch\"\r\n [placeholder]=\"translation.SEARCH_ALL_FIELD\"\r\n (hanleSearch)=\"onSeach($event)\"\r\n ></rs-search-input>\r\n </div>\r\n </div>\r\n <div class=\"rs-grid-wrap\">\r\n <ng-content select=\"[gridSlot]\"></ng-content>\r\n </div>\r\n</div>\r\n",
|
|
2988
|
+
template: "<div class=\"rs-grid-box\" [ngClass]=\"{ 'is-not-inner': !isInner }\">\r\n <div class=\"rs-content-tab\">\r\n <ng-content select=\"[contentTabSlot]\"></ng-content>\r\n </div>\r\n <div class=\"rs-toolbar-wrap\">\r\n <div class=\"rs-whole-bar\" *ngIf=\"hasWholeToolbarSlot\">\r\n <ng-content select=\"[wholeToolbarSlot]\"></ng-content>\r\n </div>\r\n <div class=\"rs-left-col\" *ngIf=\"!hasWholeToolbarSlot\">\r\n <ng-content select=\"[leftToolbarBtnSlot]\"></ng-content>\r\n </div>\r\n <div class=\"rs-right-col\" *ngIf=\"!hasWholeToolbarSlot\">\r\n <ng-content select=\"[rightToolbarBtnSlot]\"></ng-content>\r\n <rs-search-input\r\n #searchInput\r\n *ngIf=\"!hideSearch\"\r\n [placeholder]=\"translation.SEARCH_ALL_FIELD\"\r\n (hanleSearch)=\"onSeach($event)\"\r\n ></rs-search-input>\r\n </div>\r\n </div>\r\n <div class=\"rs-grid-wrap\">\r\n <ng-content select=\"[gridSlot]\"></ng-content>\r\n </div>\r\n</div>\r\n",
|
|
2866
2989
|
styles: [":host{height:100%}.rs-grid-box{display:flex;flex-direction:column;height:100%}.rs-grid-box.is-not-inner{border-radius:15px;padding:12px 20px;background:#fff;border:1px solid var(--rs-border-color);box-shadow:0 0 4px 0 rgba(0,0,0,.1)}.rs-grid-box .rs-toolbar-wrap{display:flex;justify-content:space-between;align-items:center;padding-bottom:4px;border-bottom:1px solid #eaedf0}.rs-grid-box .rs-toolbar-wrap .rs-whole-bar{width:100%}.rs-grid-box .rs-toolbar-wrap .rs-left-col,.rs-grid-box .rs-toolbar-wrap .rs-right-col{display:flex;align-items:center}.rs-grid-box .rs-toolbar-wrap .rs-left-col ::ng-deep .e-btn,.rs-grid-box .rs-toolbar-wrap .rs-right-col ::ng-deep .e-btn{height:24px!important;min-width:auto!important}.rs-grid-box .rs-toolbar-wrap .rs-left-col{flex:1;width:0;gap:4px}.rs-grid-box .rs-toolbar-wrap .rs-right-col{gap:12px}.rs-grid-box .rs-grid-wrap{flex:1;height:0}"]
|
|
2867
2990
|
}] }
|
|
2868
2991
|
];
|
|
@@ -2871,6 +2994,7 @@ var GridBoxComponent = /** @class */ (function () {
|
|
|
2871
2994
|
orignGrid: [{ type: ContentChild, args: [GridComponent, { static: false },] }],
|
|
2872
2995
|
treeGrid: [{ type: ContentChild, args: [TreeGridComponent, { static: false },] }],
|
|
2873
2996
|
wholeToolbarSlot: [{ type: ContentChild, args: ["wholeToolbarSlot", { static: false },] }],
|
|
2997
|
+
searchInput: [{ type: ViewChild, args: ["searchInput", { static: false },] }],
|
|
2874
2998
|
hideSearch: [{ type: Input }],
|
|
2875
2999
|
isInner: [{ type: Input }],
|
|
2876
3000
|
onGridSearch: [{ type: Output }]
|
|
@@ -2887,6 +3011,8 @@ if (false) {
|
|
|
2887
3011
|
/** @type {?} */
|
|
2888
3012
|
GridBoxComponent.prototype.wholeToolbarSlot;
|
|
2889
3013
|
/** @type {?} */
|
|
3014
|
+
GridBoxComponent.prototype.searchInput;
|
|
3015
|
+
/** @type {?} */
|
|
2890
3016
|
GridBoxComponent.prototype.hideSearch;
|
|
2891
3017
|
/** @type {?} */
|
|
2892
3018
|
GridBoxComponent.prototype.isInner;
|
|
@@ -21511,8 +21637,8 @@ var RSAsideComponent = /** @class */ (function () {
|
|
|
21511
21637
|
RSAsideComponent.decorators = [
|
|
21512
21638
|
{ type: Component, args: [{
|
|
21513
21639
|
selector: "rs-aside",
|
|
21514
|
-
template: "<div class=\"rs-aside\" [ngClass]=\"{ isCollapsed: isCollapsed }\">\r\n <div class=\"nav-list\">\r\n <div\r\n class=\"nav-group\"\r\n [ngClass]=\"group.class\"\r\n *ngFor=\"let group of navList\"\r\n >\r\n <div\r\n class=\"nav-item\"\r\n [ngClass]=\"{ isCurrent: currentNav === nav.url }\"\r\n *ngFor=\"let nav of group.navItems\"\r\n (click)=\"onNavClick(nav)\"\r\n >\r\n <div class=\"nav-item-inner\" *ngIf=\"nav.menuType === 'MENU'\">\r\n <ejs-tooltip\r\n [showTipPointer]=\"false\"\r\n *ngIf=\"isCollapsed; else originIcon\"\r\n >\r\n <ng-template #content>\r\n <div class=\"tooltip-content\">\r\n {{ nav.label }}\r\n </div>\r\n </ng-template>\r\n <mat-icon class=\"menu-icon\" [svgIcon]=\"nav.iconCode\"></mat-icon>\r\n </ejs-tooltip>\r\n <ng-template #originIcon>\r\n <mat-icon class=\"menu-icon\" [svgIcon]=\"nav.iconCode\"></mat-icon>\r\n </ng-template>\r\n <!-- <mat-icon class=\"menu-icon\" [svgIcon]=\"nav.iconCode\"></mat-icon> -->\r\n <ejs-tooltip\r\n [showTipPointer]=\"false\"\r\n *ngIf=\"nav.displayLabel !== nav.label; else originText\"\r\n >\r\n <ng-template #content>\r\n <div class=\"tooltip-content\">\r\n {{ nav.label }}\r\n </div>\r\n </ng-template>\r\n <span class=\"nav-text\" [ngClass]=\"{ isCollapsed: isCollapsed }\">{{\r\n nav.displayLabel\r\n }}</span>\r\n </ejs-tooltip>\r\n <ng-template #originText>\r\n <span class=\"nav-text\" [ngClass]=\"{ isCollapsed: isCollapsed }\">{{\r\n nav.label\r\n }}</span>\r\n </ng-template>\r\n </div>\r\n <div class=\"dividing-line\" *ngIf=\"nav.menuType === 'LABEL'\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"bottom-iconbox\" [ngClass]=\"{ isCollapsed: isCollapsed }\">\r\n <ng-content select=\"[bottomIconBox]\"></ng-content>\r\n </div>\r\n</div>\r\n",
|
|
21515
|
-
styles: [".rs-aside{display:flex;flex-direction:column;height:100%;width:240px;will-change:width;transition:width .3s;padding-right:20px}.rs-aside.isCollapsed{width:64px;padding-right:0}.rs-aside.isCollapsed .nav-list .nav-item .nav-item-inner{margin-right:12px}.rs-aside.isCollapsed .nav-list .nav-item .dividing-line{margin:8px 20px 8px 10px}.rs-aside .nav-list{padding-top:12px;flex:1;overflow:auto;height:0}.rs-aside .nav-list .nav-item{cursor:pointer;padding-left:11px}.rs-aside .nav-list .nav-item .nav-item-inner{height:32px;display:flex;align-items:center;padding:8px 8px 8px 12px}.rs-aside .nav-list .nav-item .nav-item-inner ::ng-deep .menu-icon{width:33px;height:16px;display:flex;align-items:center}.rs-aside .nav-list .nav-item .nav-item-inner ::ng-deep .menu-icon svg{width:16px;height:16px}.rs-aside .nav-list .nav-item .dividing-line{margin:8px 0 8px 10px;height:1px;background-color:rgba(219,225,231,.5)}.rs-aside .nav-list .nav-item:hover .nav-item-inner{border-radius:6px;background:rgba(31,123,255,.04)}.rs-aside .nav-list .nav-item .nav-text{color:#5f6f81;font-family:Arial;font-size:12px;font-weight:400;line-height:16px;transition:.3s;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;position:relative;top:1px;flex:1}@media (min-width:993px){.rs-aside .nav-list .nav-item .nav-text.isCollapsed{opacity:0;width:0}}.rs-aside .nav-list .nav-item.isCurrent{position:relative}.rs-aside .nav-list .nav-item.isCurrent .nav-text{color:#44566c;font-weight:700}.rs-aside .nav-list .nav-item.isCurrent::before{content:\"\";position:absolute;left:4px;top:8px;width:3px;height:16px;background-color:#1364b3;border-radius:2px}.rs-aside .bottom-iconbox{padding:12px 20px;height:48px;display:flex;gap:12px}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center;border:1px solid #eaedf0;border-radius:24px;cursor:pointer}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon svg{width:16px;height:16px;color:#6c7c90;stroke:#6c7c90}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon.disabled{cursor:default;opacity:.5}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon:not(.disabled):hover{background-color:#fff}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon:not(.disabled):hover svg{color:#1f7bff;stroke:#1f7bff}@media (min-width:993px){.rs-aside .bottom-iconbox.isCollapsed{flex-direction:column;height:auto}}@media (max-width:992px){.rs-aside{width:0;position:absolute;height:calc(100% - 50px);z-index:10;background-color:var(--rs-container-bg);padding-right:0}.rs-aside .bottom-iconbox{display:none}.rs-aside.isCollapsed{width:240px;padding-right:16px}.rs-aside.isCollapsed .bottom-iconbox{display:flex}}"]
|
|
21640
|
+
template: "<div class=\"rs-aside\" [ngClass]=\"{ isCollapsed: isCollapsed }\">\r\n <div class=\"nav-list\">\r\n <div\r\n class=\"nav-group\"\r\n [ngClass]=\"group.class\"\r\n *ngFor=\"let group of navList\"\r\n >\r\n <div\r\n class=\"nav-item\"\r\n [ngClass]=\"{ isCurrent: currentNav === nav.url }\"\r\n *ngFor=\"let nav of group.navItems\"\r\n (click)=\"onNavClick(nav)\"\r\n >\r\n <div class=\"nav-item-inner\" *ngIf=\"nav.menuType === 'MENU'\">\r\n <ejs-tooltip\r\n [showTipPointer]=\"false\"\r\n *ngIf=\"isCollapsed; else originIcon\"\r\n position='RightCenter'\r\n >\r\n <ng-template #content>\r\n <div class=\"tooltip-content\">\r\n {{ nav.label }}\r\n </div>\r\n </ng-template>\r\n <mat-icon class=\"menu-icon\" [svgIcon]=\"nav.iconCode\"></mat-icon>\r\n </ejs-tooltip>\r\n <ng-template #originIcon>\r\n <mat-icon class=\"menu-icon\" [svgIcon]=\"nav.iconCode\"></mat-icon>\r\n </ng-template>\r\n <!-- <mat-icon class=\"menu-icon\" [svgIcon]=\"nav.iconCode\"></mat-icon> -->\r\n <ejs-tooltip\r\n [showTipPointer]=\"false\"\r\n *ngIf=\"nav.displayLabel !== nav.label; else originText\"\r\n position='RightCenter'\r\n class=\"nav-tooltip-text\"\r\n >\r\n <ng-template #content>\r\n <div class=\"tooltip-content\">\r\n {{ nav.label }}\r\n </div>\r\n </ng-template>\r\n <span class=\"nav-text\" [ngClass]=\"{ isCollapsed: isCollapsed }\">{{\r\n nav.displayLabel\r\n }}</span>\r\n </ejs-tooltip>\r\n <ng-template #originText>\r\n <span class=\"nav-text\" [ngClass]=\"{ isCollapsed: isCollapsed }\">{{\r\n nav.label\r\n }}</span>\r\n </ng-template>\r\n </div>\r\n <div class=\"dividing-line\" *ngIf=\"nav.menuType === 'LABEL'\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"bottom-iconbox\" [ngClass]=\"{ isCollapsed: isCollapsed }\">\r\n <ng-content select=\"[bottomIconBox]\"></ng-content>\r\n </div>\r\n</div>\r\n",
|
|
21641
|
+
styles: [".rs-aside{display:flex;flex-direction:column;height:100%;width:240px;will-change:width;transition:width .3s;padding-right:20px}.rs-aside.isCollapsed{width:64px;padding-right:0}.rs-aside.isCollapsed .nav-list .nav-item .nav-item-inner{margin-right:12px}.rs-aside.isCollapsed .nav-list .nav-item .dividing-line{margin:8px 20px 8px 10px}.rs-aside .nav-list{padding-top:12px;flex:1;overflow:auto;height:0}.rs-aside .nav-list .nav-item{cursor:pointer;padding-left:11px}.rs-aside .nav-list .nav-item .nav-item-inner{height:32px;display:flex;align-items:center;padding:8px 8px 8px 12px}.rs-aside .nav-list .nav-item .nav-item-inner ::ng-deep .menu-icon{width:33px;height:16px;display:flex;align-items:center}.rs-aside .nav-list .nav-item .nav-item-inner ::ng-deep .menu-icon svg{width:16px;height:16px}.rs-aside .nav-list .nav-item .dividing-line{margin:8px 0 8px 10px;height:1px;background-color:rgba(219,225,231,.5)}.rs-aside .nav-list .nav-item:hover .nav-item-inner{border-radius:6px;background:rgba(31,123,255,.04)}.rs-aside .nav-list .nav-item .nav-text{display:inline-block;color:#5f6f81;font-family:Arial;font-size:12px;font-weight:400;line-height:16px;transition:.3s;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;position:relative;top:1px;flex:1}@media (min-width:993px){.rs-aside .nav-list .nav-item .nav-text.isCollapsed{opacity:0;width:0}}.rs-aside .nav-list .nav-item .nav-tooltip-text{flex:1;width:0}.rs-aside .nav-list .nav-item.isCurrent{position:relative}.rs-aside .nav-list .nav-item.isCurrent .nav-text{color:#44566c;font-weight:700}.rs-aside .nav-list .nav-item.isCurrent::before{content:\"\";position:absolute;left:4px;top:8px;width:3px;height:16px;background-color:#1364b3;border-radius:2px}.rs-aside .bottom-iconbox{padding:12px 20px;height:48px;display:flex;gap:12px}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center;border:1px solid #eaedf0;border-radius:24px;cursor:pointer}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon svg{width:16px;height:16px;color:#6c7c90;stroke:#6c7c90}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon.disabled{cursor:default;opacity:.5}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon:not(.disabled):hover{background-color:#fff}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon:not(.disabled):hover svg{color:#1f7bff;stroke:#1f7bff}@media (min-width:993px){.rs-aside .bottom-iconbox.isCollapsed{flex-direction:column;height:auto}}@media (max-width:992px){.rs-aside{width:0;position:absolute;height:calc(100% - 50px);z-index:10;background-color:var(--rs-container-bg);padding-right:0}.rs-aside .bottom-iconbox{display:none}.rs-aside.isCollapsed{width:240px;padding-right:16px}.rs-aside.isCollapsed .bottom-iconbox{display:flex}}"]
|
|
21516
21642
|
}] }
|
|
21517
21643
|
];
|
|
21518
21644
|
/** @nocollapse */
|
|
@@ -22032,99 +22158,6 @@ if (false) {
|
|
|
22032
22158
|
EncryptedInputComponent.prototype.encrypted;
|
|
22033
22159
|
}
|
|
22034
22160
|
|
|
22035
|
-
/**
|
|
22036
|
-
* @fileoverview added by tsickle
|
|
22037
|
-
* Generated from: lib/form/search-input/index.component.ts
|
|
22038
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
22039
|
-
*/
|
|
22040
|
-
var SearchInputComponent = /** @class */ (function () {
|
|
22041
|
-
function SearchInputComponent() {
|
|
22042
|
-
this.placeholder = "";
|
|
22043
|
-
this.hanleSearch = new EventEmitter();
|
|
22044
|
-
this.handleInput = new EventEmitter();
|
|
22045
|
-
this.searchValue = "";
|
|
22046
|
-
}
|
|
22047
|
-
/**
|
|
22048
|
-
* @return {?}
|
|
22049
|
-
*/
|
|
22050
|
-
SearchInputComponent.prototype.ngOnInit = /**
|
|
22051
|
-
* @return {?}
|
|
22052
|
-
*/
|
|
22053
|
-
function () {
|
|
22054
|
-
var _this = this;
|
|
22055
|
-
this.getInfo();
|
|
22056
|
-
this.debouncedInput = debounce((/**
|
|
22057
|
-
* @return {?}
|
|
22058
|
-
*/
|
|
22059
|
-
function () {
|
|
22060
|
-
_this.onSeach();
|
|
22061
|
-
}), 300);
|
|
22062
|
-
};
|
|
22063
|
-
/**
|
|
22064
|
-
* @return {?}
|
|
22065
|
-
*/
|
|
22066
|
-
SearchInputComponent.prototype.getInfo = /**
|
|
22067
|
-
* @return {?}
|
|
22068
|
-
*/
|
|
22069
|
-
function () {
|
|
22070
|
-
this.translation = JSON.parse(localStorage.getItem("translation"));
|
|
22071
|
-
this.placeholder = this.placeholder || this.translation.SEARCH;
|
|
22072
|
-
};
|
|
22073
|
-
/**
|
|
22074
|
-
* @param {?} e
|
|
22075
|
-
* @return {?}
|
|
22076
|
-
*/
|
|
22077
|
-
SearchInputComponent.prototype.onInput = /**
|
|
22078
|
-
* @param {?} e
|
|
22079
|
-
* @return {?}
|
|
22080
|
-
*/
|
|
22081
|
-
function (e) {
|
|
22082
|
-
this.handleInput.emit(e.value);
|
|
22083
|
-
this.debouncedInput();
|
|
22084
|
-
};
|
|
22085
|
-
/**
|
|
22086
|
-
* @return {?}
|
|
22087
|
-
*/
|
|
22088
|
-
SearchInputComponent.prototype.onSeach = /**
|
|
22089
|
-
* @return {?}
|
|
22090
|
-
*/
|
|
22091
|
-
function () {
|
|
22092
|
-
this.hanleSearch.emit(this.searchValue);
|
|
22093
|
-
};
|
|
22094
|
-
SearchInputComponent.decorators = [
|
|
22095
|
-
{ type: Component, args: [{
|
|
22096
|
-
selector: "rs-search-input",
|
|
22097
|
-
template: "<div class=\"rs-search-input\">\r\n <ejs-textbox\r\n type=\"text\"\r\n class=\"e-input\"\r\n [(ngModel)]=\"searchValue\"\r\n (input)=\"onInput($event)\"\r\n [placeholder]=\"placeholder\"\r\n [showClearButton]=\"true\"\r\n autocomplete=\"off\"\r\n ></ejs-textbox>\r\n</div>\r\n",
|
|
22098
|
-
styles: [".rs-search-input{width:240px}.rs-search-input .e-textbox{display:block;box-shadow:none!important}.rs-search-input ::ng-deep .e-input-group{border-radius:14px!important}.rs-search-input ::ng-deep .e-input-group.e-input-focus,.rs-search-input ::ng-deep .e-input-group:hover{box-shadow:0 0 3px 0 rgba(31,123,255,.4)!important;border-color:var(--rs-input-hover-border-color)!important}.rs-search-input ::ng-deep .e-input-group.e-input-focus input.e-input,.rs-search-input ::ng-deep .e-input-group:hover input.e-input{box-shadow:none!important}.rs-search-input ::ng-deep .e-input-group input.e-input{width:calc(100% - 50px);height:24px!important;line-height:22px!important}.rs-search-input ::ng-deep .e-input-group input.e-input:hover{box-shadow:none!important}.rs-search-input ::ng-deep .e-input-group::before{content:\"\"!important;margin:5px 0 0 8px;display:block;width:16px;height:16px;background-image:url(/assets/img/search.svg);background-size:cover;background-position:center}"]
|
|
22099
|
-
}] }
|
|
22100
|
-
];
|
|
22101
|
-
/** @nocollapse */
|
|
22102
|
-
SearchInputComponent.ctorParameters = function () { return []; };
|
|
22103
|
-
SearchInputComponent.propDecorators = {
|
|
22104
|
-
placeholder: [{ type: Input }],
|
|
22105
|
-
hanleSearch: [{ type: Output }],
|
|
22106
|
-
handleInput: [{ type: Output }]
|
|
22107
|
-
};
|
|
22108
|
-
return SearchInputComponent;
|
|
22109
|
-
}());
|
|
22110
|
-
if (false) {
|
|
22111
|
-
/** @type {?} */
|
|
22112
|
-
SearchInputComponent.prototype.placeholder;
|
|
22113
|
-
/** @type {?} */
|
|
22114
|
-
SearchInputComponent.prototype.hanleSearch;
|
|
22115
|
-
/** @type {?} */
|
|
22116
|
-
SearchInputComponent.prototype.handleInput;
|
|
22117
|
-
/**
|
|
22118
|
-
* @type {?}
|
|
22119
|
-
* @private
|
|
22120
|
-
*/
|
|
22121
|
-
SearchInputComponent.prototype.debouncedInput;
|
|
22122
|
-
/** @type {?} */
|
|
22123
|
-
SearchInputComponent.prototype.searchValue;
|
|
22124
|
-
/** @type {?} */
|
|
22125
|
-
SearchInputComponent.prototype.translation;
|
|
22126
|
-
}
|
|
22127
|
-
|
|
22128
22161
|
/**
|
|
22129
22162
|
* @fileoverview added by tsickle
|
|
22130
22163
|
* Generated from: lib/form/drawer-form/constants.ts
|