raise-common-lib 0.0.166 → 0.0.168
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 +126 -60
- 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/form/search-input/index.component.js +81 -0
- package/esm2015/lib/layout/grid-box/index.component.js +17 -29
- package/esm2015/lib/layout/multi-tab/index.component.js +6 -1
- package/esm2015/lib/layout/page-list/index.component.js +9 -28
- package/esm2015/lib/raise-common-lib.module.js +4 -1
- package/esm2015/public-api.js +2 -1
- package/esm2015/raise-common-lib.js +2 -2
- package/esm5/lib/form/search-input/index.component.js +97 -0
- package/esm5/lib/layout/grid-box/index.component.js +18 -33
- package/esm5/lib/layout/multi-tab/index.component.js +6 -1
- package/esm5/lib/layout/page-list/index.component.js +10 -32
- package/esm5/lib/raise-common-lib.module.js +4 -1
- package/esm5/public-api.js +2 -1
- package/esm5/raise-common-lib.js +2 -2
- package/fesm2015/raise-common-lib.js +109 -53
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +126 -61
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/form/search-input/index.component.d.ts +14 -0
- package/lib/layout/grid-box/index.component.d.ts +3 -5
- package/lib/layout/multi-tab/index.component.d.ts +1 -0
- package/lib/layout/page-list/index.component.d.ts +1 -4
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/raise-common-lib.metadata.json +1 -1
- package/src/assets/img/time-disabled.svg +4 -0
- package/src/assets/img/time.svg +4 -0
- package/src/assets/img/toolbar-action-submitForApproval.svg +3 -3
|
@@ -2559,14 +2559,7 @@ var RsPageListComponent = /** @class */ (function () {
|
|
|
2559
2559
|
* @return {?}
|
|
2560
2560
|
*/
|
|
2561
2561
|
function () {
|
|
2562
|
-
var _this = this;
|
|
2563
2562
|
this.getInfo();
|
|
2564
|
-
this.debouncedInput = debounce((/**
|
|
2565
|
-
* @return {?}
|
|
2566
|
-
*/
|
|
2567
|
-
function () {
|
|
2568
|
-
_this.onSeach();
|
|
2569
|
-
}), 300);
|
|
2570
2563
|
};
|
|
2571
2564
|
/**
|
|
2572
2565
|
* @return {?}
|
|
@@ -2588,39 +2581,32 @@ var RsPageListComponent = /** @class */ (function () {
|
|
|
2588
2581
|
this.hasWholeToolbarSlot = !!this.wholeToolbarSlot;
|
|
2589
2582
|
};
|
|
2590
2583
|
/**
|
|
2584
|
+
* @param {?} value
|
|
2591
2585
|
* @return {?}
|
|
2592
2586
|
*/
|
|
2593
2587
|
RsPageListComponent.prototype.onSeach = /**
|
|
2588
|
+
* @param {?} value
|
|
2594
2589
|
* @return {?}
|
|
2595
2590
|
*/
|
|
2596
|
-
function () {
|
|
2591
|
+
function (value) {
|
|
2597
2592
|
if (this.gridContent) {
|
|
2598
|
-
this.gridContent.grid.search(
|
|
2593
|
+
this.gridContent.grid.search(value);
|
|
2599
2594
|
}
|
|
2600
2595
|
else if (this.orignGrid) {
|
|
2601
|
-
this.orignGrid.search(
|
|
2596
|
+
this.orignGrid.search(value);
|
|
2602
2597
|
}
|
|
2603
2598
|
else if (this.treeGrid) {
|
|
2604
|
-
this.treeGrid.search(
|
|
2599
|
+
this.treeGrid.search(value);
|
|
2605
2600
|
}
|
|
2606
2601
|
else {
|
|
2607
|
-
this.onGridSearch.emit(
|
|
2602
|
+
this.onGridSearch.emit(value);
|
|
2608
2603
|
}
|
|
2609
2604
|
};
|
|
2610
|
-
/**
|
|
2611
|
-
* @return {?}
|
|
2612
|
-
*/
|
|
2613
|
-
RsPageListComponent.prototype.onInput = /**
|
|
2614
|
-
* @return {?}
|
|
2615
|
-
*/
|
|
2616
|
-
function () {
|
|
2617
|
-
this.debouncedInput();
|
|
2618
|
-
};
|
|
2619
2605
|
RsPageListComponent.decorators = [
|
|
2620
2606
|
{ type: Component, args: [{
|
|
2621
2607
|
selector: "rs-page-list",
|
|
2622
|
-
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 <
|
|
2623
|
-
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)}
|
|
2608
|
+
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",
|
|
2609
|
+
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)}"]
|
|
2624
2610
|
}] }
|
|
2625
2611
|
];
|
|
2626
2612
|
RsPageListComponent.propDecorators = {
|
|
@@ -2655,17 +2641,10 @@ if (false) {
|
|
|
2655
2641
|
RsPageListComponent.prototype.isInner;
|
|
2656
2642
|
/** @type {?} */
|
|
2657
2643
|
RsPageListComponent.prototype.onGridSearch;
|
|
2658
|
-
/**
|
|
2659
|
-
* @type {?}
|
|
2660
|
-
* @private
|
|
2661
|
-
*/
|
|
2662
|
-
RsPageListComponent.prototype.debouncedInput;
|
|
2663
2644
|
/** @type {?} */
|
|
2664
2645
|
RsPageListComponent.prototype.hasWholeToolbarSlot;
|
|
2665
2646
|
/** @type {?} */
|
|
2666
2647
|
RsPageListComponent.prototype.translation;
|
|
2667
|
-
/** @type {?} */
|
|
2668
|
-
RsPageListComponent.prototype.searchValue;
|
|
2669
2648
|
}
|
|
2670
2649
|
|
|
2671
2650
|
/**
|
|
@@ -2787,6 +2766,7 @@ var GridBoxComponent = /** @class */ (function () {
|
|
|
2787
2766
|
function GridBoxComponent() {
|
|
2788
2767
|
this.hideSearch = false;
|
|
2789
2768
|
this.isInner = false;
|
|
2769
|
+
this.onGridSearch = new EventEmitter();
|
|
2790
2770
|
this.hasWholeToolbarSlot = false;
|
|
2791
2771
|
}
|
|
2792
2772
|
/**
|
|
@@ -2796,14 +2776,7 @@ var GridBoxComponent = /** @class */ (function () {
|
|
|
2796
2776
|
* @return {?}
|
|
2797
2777
|
*/
|
|
2798
2778
|
function () {
|
|
2799
|
-
var _this = this;
|
|
2800
2779
|
this.getInfo();
|
|
2801
|
-
this.debouncedInput = debounce((/**
|
|
2802
|
-
* @return {?}
|
|
2803
|
-
*/
|
|
2804
|
-
function () {
|
|
2805
|
-
_this.onSeach();
|
|
2806
|
-
}), 300);
|
|
2807
2780
|
};
|
|
2808
2781
|
/**
|
|
2809
2782
|
* @return {?}
|
|
@@ -2825,36 +2798,32 @@ var GridBoxComponent = /** @class */ (function () {
|
|
|
2825
2798
|
this.hasWholeToolbarSlot = !!this.wholeToolbarSlot;
|
|
2826
2799
|
};
|
|
2827
2800
|
/**
|
|
2801
|
+
* @param {?} value
|
|
2828
2802
|
* @return {?}
|
|
2829
2803
|
*/
|
|
2830
2804
|
GridBoxComponent.prototype.onSeach = /**
|
|
2805
|
+
* @param {?} value
|
|
2831
2806
|
* @return {?}
|
|
2832
2807
|
*/
|
|
2833
|
-
function () {
|
|
2808
|
+
function (value) {
|
|
2834
2809
|
if (this.gridContent) {
|
|
2835
|
-
this.gridContent.grid.search(
|
|
2810
|
+
this.gridContent.grid.search(value);
|
|
2836
2811
|
}
|
|
2837
2812
|
else if (this.orignGrid) {
|
|
2838
|
-
this.orignGrid.search(
|
|
2813
|
+
this.orignGrid.search(value);
|
|
2839
2814
|
}
|
|
2840
2815
|
else if (this.treeGrid) {
|
|
2841
|
-
this.treeGrid.search(
|
|
2816
|
+
this.treeGrid.search(value);
|
|
2817
|
+
}
|
|
2818
|
+
else {
|
|
2819
|
+
this.onGridSearch.emit(value);
|
|
2842
2820
|
}
|
|
2843
|
-
};
|
|
2844
|
-
/**
|
|
2845
|
-
* @return {?}
|
|
2846
|
-
*/
|
|
2847
|
-
GridBoxComponent.prototype.onInput = /**
|
|
2848
|
-
* @return {?}
|
|
2849
|
-
*/
|
|
2850
|
-
function () {
|
|
2851
|
-
this.debouncedInput();
|
|
2852
2821
|
};
|
|
2853
2822
|
GridBoxComponent.decorators = [
|
|
2854
2823
|
{ type: Component, args: [{
|
|
2855
2824
|
selector: "rs-grid-box",
|
|
2856
|
-
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 <
|
|
2857
|
-
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}
|
|
2825
|
+
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",
|
|
2826
|
+
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}"]
|
|
2858
2827
|
}] }
|
|
2859
2828
|
];
|
|
2860
2829
|
GridBoxComponent.propDecorators = {
|
|
@@ -2863,7 +2832,8 @@ var GridBoxComponent = /** @class */ (function () {
|
|
|
2863
2832
|
treeGrid: [{ type: ContentChild, args: [TreeGridComponent, { static: false },] }],
|
|
2864
2833
|
wholeToolbarSlot: [{ type: ContentChild, args: ["wholeToolbarSlot", { static: false },] }],
|
|
2865
2834
|
hideSearch: [{ type: Input }],
|
|
2866
|
-
isInner: [{ type: Input }]
|
|
2835
|
+
isInner: [{ type: Input }],
|
|
2836
|
+
onGridSearch: [{ type: Output }]
|
|
2867
2837
|
};
|
|
2868
2838
|
return GridBoxComponent;
|
|
2869
2839
|
}());
|
|
@@ -2880,17 +2850,12 @@ if (false) {
|
|
|
2880
2850
|
GridBoxComponent.prototype.hideSearch;
|
|
2881
2851
|
/** @type {?} */
|
|
2882
2852
|
GridBoxComponent.prototype.isInner;
|
|
2883
|
-
/**
|
|
2884
|
-
|
|
2885
|
-
* @private
|
|
2886
|
-
*/
|
|
2887
|
-
GridBoxComponent.prototype.debouncedInput;
|
|
2853
|
+
/** @type {?} */
|
|
2854
|
+
GridBoxComponent.prototype.onGridSearch;
|
|
2888
2855
|
/** @type {?} */
|
|
2889
2856
|
GridBoxComponent.prototype.hasWholeToolbarSlot;
|
|
2890
2857
|
/** @type {?} */
|
|
2891
2858
|
GridBoxComponent.prototype.translation;
|
|
2892
|
-
/** @type {?} */
|
|
2893
|
-
GridBoxComponent.prototype.searchValue;
|
|
2894
2859
|
}
|
|
2895
2860
|
|
|
2896
2861
|
/**
|
|
@@ -3190,6 +3155,7 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
3190
3155
|
this.flattenMenu = [];
|
|
3191
3156
|
this.defaultTabUrl = "";
|
|
3192
3157
|
this.onRefreshTab = new EventEmitter();
|
|
3158
|
+
this.onCloseTab = new EventEmitter();
|
|
3193
3159
|
this.subscriptions = [];
|
|
3194
3160
|
this.TAB_WIDTH = 164;
|
|
3195
3161
|
this.GAP_NORMAL = 54;
|
|
@@ -3449,6 +3415,7 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
3449
3415
|
}
|
|
3450
3416
|
this.setEllipsisTitle();
|
|
3451
3417
|
sessionStorage.setItem("TabCache", JSON.stringify(this.tabList));
|
|
3418
|
+
this.onCloseTab.emit(tab);
|
|
3452
3419
|
this.ref.markForCheck();
|
|
3453
3420
|
};
|
|
3454
3421
|
/**
|
|
@@ -3684,6 +3651,7 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
3684
3651
|
flattenMenu: [{ type: Input }],
|
|
3685
3652
|
defaultTabUrl: [{ type: Input }],
|
|
3686
3653
|
onRefreshTab: [{ type: Output }],
|
|
3654
|
+
onCloseTab: [{ type: Output }],
|
|
3687
3655
|
onResize: [{ type: HostListener, args: ["window:resize", ["$event"],] }]
|
|
3688
3656
|
};
|
|
3689
3657
|
return MultiTabComponent;
|
|
@@ -3701,6 +3669,8 @@ if (false) {
|
|
|
3701
3669
|
MultiTabComponent.prototype.defaultTabUrl;
|
|
3702
3670
|
/** @type {?} */
|
|
3703
3671
|
MultiTabComponent.prototype.onRefreshTab;
|
|
3672
|
+
/** @type {?} */
|
|
3673
|
+
MultiTabComponent.prototype.onCloseTab;
|
|
3704
3674
|
/**
|
|
3705
3675
|
* @type {?}
|
|
3706
3676
|
* @private
|
|
@@ -22004,6 +21974,99 @@ if (false) {
|
|
|
22004
21974
|
EncryptedInputComponent.prototype.encrypted;
|
|
22005
21975
|
}
|
|
22006
21976
|
|
|
21977
|
+
/**
|
|
21978
|
+
* @fileoverview added by tsickle
|
|
21979
|
+
* Generated from: lib/form/search-input/index.component.ts
|
|
21980
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
21981
|
+
*/
|
|
21982
|
+
var SearchInputComponent = /** @class */ (function () {
|
|
21983
|
+
function SearchInputComponent() {
|
|
21984
|
+
this.placeholder = "";
|
|
21985
|
+
this.hanleSearch = new EventEmitter();
|
|
21986
|
+
this.handleInput = new EventEmitter();
|
|
21987
|
+
this.searchValue = "";
|
|
21988
|
+
}
|
|
21989
|
+
/**
|
|
21990
|
+
* @return {?}
|
|
21991
|
+
*/
|
|
21992
|
+
SearchInputComponent.prototype.ngOnInit = /**
|
|
21993
|
+
* @return {?}
|
|
21994
|
+
*/
|
|
21995
|
+
function () {
|
|
21996
|
+
var _this = this;
|
|
21997
|
+
this.getInfo();
|
|
21998
|
+
this.debouncedInput = debounce((/**
|
|
21999
|
+
* @return {?}
|
|
22000
|
+
*/
|
|
22001
|
+
function () {
|
|
22002
|
+
_this.onSeach();
|
|
22003
|
+
}), 300);
|
|
22004
|
+
};
|
|
22005
|
+
/**
|
|
22006
|
+
* @return {?}
|
|
22007
|
+
*/
|
|
22008
|
+
SearchInputComponent.prototype.getInfo = /**
|
|
22009
|
+
* @return {?}
|
|
22010
|
+
*/
|
|
22011
|
+
function () {
|
|
22012
|
+
this.translation = JSON.parse(localStorage.getItem("translation"));
|
|
22013
|
+
this.placeholder = this.placeholder || this.translation.SEARCH;
|
|
22014
|
+
};
|
|
22015
|
+
/**
|
|
22016
|
+
* @param {?} e
|
|
22017
|
+
* @return {?}
|
|
22018
|
+
*/
|
|
22019
|
+
SearchInputComponent.prototype.onInput = /**
|
|
22020
|
+
* @param {?} e
|
|
22021
|
+
* @return {?}
|
|
22022
|
+
*/
|
|
22023
|
+
function (e) {
|
|
22024
|
+
this.handleInput.emit(e.value);
|
|
22025
|
+
this.debouncedInput();
|
|
22026
|
+
};
|
|
22027
|
+
/**
|
|
22028
|
+
* @return {?}
|
|
22029
|
+
*/
|
|
22030
|
+
SearchInputComponent.prototype.onSeach = /**
|
|
22031
|
+
* @return {?}
|
|
22032
|
+
*/
|
|
22033
|
+
function () {
|
|
22034
|
+
this.hanleSearch.emit(this.searchValue);
|
|
22035
|
+
};
|
|
22036
|
+
SearchInputComponent.decorators = [
|
|
22037
|
+
{ type: Component, args: [{
|
|
22038
|
+
selector: "rs-search-input",
|
|
22039
|
+
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",
|
|
22040
|
+
styles: [".rs-search-input{width:240px}.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:26px}.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:6px 0 0 8px;display:block;width:16px;height:16px;background-image:url(/assets/img/search.svg);background-size:cover;background-position:center}"]
|
|
22041
|
+
}] }
|
|
22042
|
+
];
|
|
22043
|
+
/** @nocollapse */
|
|
22044
|
+
SearchInputComponent.ctorParameters = function () { return []; };
|
|
22045
|
+
SearchInputComponent.propDecorators = {
|
|
22046
|
+
placeholder: [{ type: Input }],
|
|
22047
|
+
hanleSearch: [{ type: Output }],
|
|
22048
|
+
handleInput: [{ type: Output }]
|
|
22049
|
+
};
|
|
22050
|
+
return SearchInputComponent;
|
|
22051
|
+
}());
|
|
22052
|
+
if (false) {
|
|
22053
|
+
/** @type {?} */
|
|
22054
|
+
SearchInputComponent.prototype.placeholder;
|
|
22055
|
+
/** @type {?} */
|
|
22056
|
+
SearchInputComponent.prototype.hanleSearch;
|
|
22057
|
+
/** @type {?} */
|
|
22058
|
+
SearchInputComponent.prototype.handleInput;
|
|
22059
|
+
/**
|
|
22060
|
+
* @type {?}
|
|
22061
|
+
* @private
|
|
22062
|
+
*/
|
|
22063
|
+
SearchInputComponent.prototype.debouncedInput;
|
|
22064
|
+
/** @type {?} */
|
|
22065
|
+
SearchInputComponent.prototype.searchValue;
|
|
22066
|
+
/** @type {?} */
|
|
22067
|
+
SearchInputComponent.prototype.translation;
|
|
22068
|
+
}
|
|
22069
|
+
|
|
22007
22070
|
/**
|
|
22008
22071
|
* @fileoverview added by tsickle
|
|
22009
22072
|
* Generated from: lib/form/drawer-form/constants.ts
|
|
@@ -23143,6 +23206,7 @@ var RaiseCommonLibModule = /** @class */ (function () {
|
|
|
23143
23206
|
CheckboxGroupComponent,
|
|
23144
23207
|
SwitchInputComponent,
|
|
23145
23208
|
EncryptedInputComponent,
|
|
23209
|
+
SearchInputComponent,
|
|
23146
23210
|
NewActionNotificationComponent,
|
|
23147
23211
|
CommonDialogComponent,
|
|
23148
23212
|
CommonDeleteComponent,
|
|
@@ -23303,6 +23367,7 @@ var RaiseCommonLibModule = /** @class */ (function () {
|
|
|
23303
23367
|
CheckboxGroupComponent,
|
|
23304
23368
|
SwitchInputComponent,
|
|
23305
23369
|
EncryptedInputComponent,
|
|
23370
|
+
SearchInputComponent,
|
|
23306
23371
|
DrawerComponent,
|
|
23307
23372
|
DrawerFormComponent,
|
|
23308
23373
|
ToolbarItemComponent,
|
|
@@ -23335,5 +23400,5 @@ var RaiseCommonLibModule = /** @class */ (function () {
|
|
|
23335
23400
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
23336
23401
|
*/
|
|
23337
23402
|
|
|
23338
|
-
export { CheckboxGroupComponent, CommonDialogComponent, 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, CommonDeleteComponent as ɵc };
|
|
23403
|
+
export { CheckboxGroupComponent, CommonDialogComponent, 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, SearchInputComponent, SwitchInputComponent, TagInputComponent, ToolbarItemComponent, TranslationService, TruncatedTextToggleComponent, filterShowSection, Debounce as ɵa, NewActionNotificationComponent as ɵb, CommonDeleteComponent as ɵc };
|
|
23339
23404
|
//# sourceMappingURL=raise-common-lib.js.map
|