raise-common-lib 0.0.167 → 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/toolbar-action-submitForApproval.svg +3 -3
|
@@ -2189,12 +2189,6 @@ class RsPageListComponent {
|
|
|
2189
2189
|
*/
|
|
2190
2190
|
ngOnInit() {
|
|
2191
2191
|
this.getInfo();
|
|
2192
|
-
this.debouncedInput = debounce((/**
|
|
2193
|
-
* @return {?}
|
|
2194
|
-
*/
|
|
2195
|
-
() => {
|
|
2196
|
-
this.onSeach();
|
|
2197
|
-
}), 300);
|
|
2198
2192
|
}
|
|
2199
2193
|
/**
|
|
2200
2194
|
* @return {?}
|
|
@@ -2210,34 +2204,29 @@ class RsPageListComponent {
|
|
|
2210
2204
|
this.hasWholeToolbarSlot = !!this.wholeToolbarSlot;
|
|
2211
2205
|
}
|
|
2212
2206
|
/**
|
|
2207
|
+
* @param {?} value
|
|
2213
2208
|
* @return {?}
|
|
2214
2209
|
*/
|
|
2215
|
-
onSeach() {
|
|
2210
|
+
onSeach(value) {
|
|
2216
2211
|
if (this.gridContent) {
|
|
2217
|
-
this.gridContent.grid.search(
|
|
2212
|
+
this.gridContent.grid.search(value);
|
|
2218
2213
|
}
|
|
2219
2214
|
else if (this.orignGrid) {
|
|
2220
|
-
this.orignGrid.search(
|
|
2215
|
+
this.orignGrid.search(value);
|
|
2221
2216
|
}
|
|
2222
2217
|
else if (this.treeGrid) {
|
|
2223
|
-
this.treeGrid.search(
|
|
2218
|
+
this.treeGrid.search(value);
|
|
2224
2219
|
}
|
|
2225
2220
|
else {
|
|
2226
|
-
this.onGridSearch.emit(
|
|
2221
|
+
this.onGridSearch.emit(value);
|
|
2227
2222
|
}
|
|
2228
2223
|
}
|
|
2229
|
-
/**
|
|
2230
|
-
* @return {?}
|
|
2231
|
-
*/
|
|
2232
|
-
onInput() {
|
|
2233
|
-
this.debouncedInput();
|
|
2234
|
-
}
|
|
2235
2224
|
}
|
|
2236
2225
|
RsPageListComponent.decorators = [
|
|
2237
2226
|
{ type: Component, args: [{
|
|
2238
2227
|
selector: "rs-page-list",
|
|
2239
|
-
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 <
|
|
2240
|
-
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)}
|
|
2228
|
+
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",
|
|
2229
|
+
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)}"]
|
|
2241
2230
|
}] }
|
|
2242
2231
|
];
|
|
2243
2232
|
RsPageListComponent.propDecorators = {
|
|
@@ -2270,17 +2259,10 @@ if (false) {
|
|
|
2270
2259
|
RsPageListComponent.prototype.isInner;
|
|
2271
2260
|
/** @type {?} */
|
|
2272
2261
|
RsPageListComponent.prototype.onGridSearch;
|
|
2273
|
-
/**
|
|
2274
|
-
* @type {?}
|
|
2275
|
-
* @private
|
|
2276
|
-
*/
|
|
2277
|
-
RsPageListComponent.prototype.debouncedInput;
|
|
2278
2262
|
/** @type {?} */
|
|
2279
2263
|
RsPageListComponent.prototype.hasWholeToolbarSlot;
|
|
2280
2264
|
/** @type {?} */
|
|
2281
2265
|
RsPageListComponent.prototype.translation;
|
|
2282
|
-
/** @type {?} */
|
|
2283
|
-
RsPageListComponent.prototype.searchValue;
|
|
2284
2266
|
}
|
|
2285
2267
|
|
|
2286
2268
|
/**
|
|
@@ -2383,6 +2365,7 @@ class GridBoxComponent {
|
|
|
2383
2365
|
constructor() {
|
|
2384
2366
|
this.hideSearch = false;
|
|
2385
2367
|
this.isInner = false;
|
|
2368
|
+
this.onGridSearch = new EventEmitter();
|
|
2386
2369
|
this.hasWholeToolbarSlot = false;
|
|
2387
2370
|
}
|
|
2388
2371
|
/**
|
|
@@ -2390,12 +2373,6 @@ class GridBoxComponent {
|
|
|
2390
2373
|
*/
|
|
2391
2374
|
ngOnInit() {
|
|
2392
2375
|
this.getInfo();
|
|
2393
|
-
this.debouncedInput = debounce((/**
|
|
2394
|
-
* @return {?}
|
|
2395
|
-
*/
|
|
2396
|
-
() => {
|
|
2397
|
-
this.onSeach();
|
|
2398
|
-
}), 300);
|
|
2399
2376
|
}
|
|
2400
2377
|
/**
|
|
2401
2378
|
* @return {?}
|
|
@@ -2411,31 +2388,29 @@ class GridBoxComponent {
|
|
|
2411
2388
|
this.hasWholeToolbarSlot = !!this.wholeToolbarSlot;
|
|
2412
2389
|
}
|
|
2413
2390
|
/**
|
|
2391
|
+
* @param {?} value
|
|
2414
2392
|
* @return {?}
|
|
2415
2393
|
*/
|
|
2416
|
-
onSeach() {
|
|
2394
|
+
onSeach(value) {
|
|
2417
2395
|
if (this.gridContent) {
|
|
2418
|
-
this.gridContent.grid.search(
|
|
2396
|
+
this.gridContent.grid.search(value);
|
|
2419
2397
|
}
|
|
2420
2398
|
else if (this.orignGrid) {
|
|
2421
|
-
this.orignGrid.search(
|
|
2399
|
+
this.orignGrid.search(value);
|
|
2422
2400
|
}
|
|
2423
2401
|
else if (this.treeGrid) {
|
|
2424
|
-
this.treeGrid.search(
|
|
2402
|
+
this.treeGrid.search(value);
|
|
2403
|
+
}
|
|
2404
|
+
else {
|
|
2405
|
+
this.onGridSearch.emit(value);
|
|
2425
2406
|
}
|
|
2426
|
-
}
|
|
2427
|
-
/**
|
|
2428
|
-
* @return {?}
|
|
2429
|
-
*/
|
|
2430
|
-
onInput() {
|
|
2431
|
-
this.debouncedInput();
|
|
2432
2407
|
}
|
|
2433
2408
|
}
|
|
2434
2409
|
GridBoxComponent.decorators = [
|
|
2435
2410
|
{ type: Component, args: [{
|
|
2436
2411
|
selector: "rs-grid-box",
|
|
2437
|
-
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 <
|
|
2438
|
-
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}
|
|
2412
|
+
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",
|
|
2413
|
+
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}"]
|
|
2439
2414
|
}] }
|
|
2440
2415
|
];
|
|
2441
2416
|
GridBoxComponent.propDecorators = {
|
|
@@ -2444,7 +2419,8 @@ GridBoxComponent.propDecorators = {
|
|
|
2444
2419
|
treeGrid: [{ type: ContentChild, args: [TreeGridComponent, { static: false },] }],
|
|
2445
2420
|
wholeToolbarSlot: [{ type: ContentChild, args: ["wholeToolbarSlot", { static: false },] }],
|
|
2446
2421
|
hideSearch: [{ type: Input }],
|
|
2447
|
-
isInner: [{ type: Input }]
|
|
2422
|
+
isInner: [{ type: Input }],
|
|
2423
|
+
onGridSearch: [{ type: Output }]
|
|
2448
2424
|
};
|
|
2449
2425
|
if (false) {
|
|
2450
2426
|
/** @type {?} */
|
|
@@ -2459,17 +2435,12 @@ if (false) {
|
|
|
2459
2435
|
GridBoxComponent.prototype.hideSearch;
|
|
2460
2436
|
/** @type {?} */
|
|
2461
2437
|
GridBoxComponent.prototype.isInner;
|
|
2462
|
-
/**
|
|
2463
|
-
|
|
2464
|
-
* @private
|
|
2465
|
-
*/
|
|
2466
|
-
GridBoxComponent.prototype.debouncedInput;
|
|
2438
|
+
/** @type {?} */
|
|
2439
|
+
GridBoxComponent.prototype.onGridSearch;
|
|
2467
2440
|
/** @type {?} */
|
|
2468
2441
|
GridBoxComponent.prototype.hasWholeToolbarSlot;
|
|
2469
2442
|
/** @type {?} */
|
|
2470
2443
|
GridBoxComponent.prototype.translation;
|
|
2471
|
-
/** @type {?} */
|
|
2472
|
-
GridBoxComponent.prototype.searchValue;
|
|
2473
2444
|
}
|
|
2474
2445
|
|
|
2475
2446
|
/**
|
|
@@ -2728,6 +2699,7 @@ class MultiTabComponent {
|
|
|
2728
2699
|
this.flattenMenu = [];
|
|
2729
2700
|
this.defaultTabUrl = "";
|
|
2730
2701
|
this.onRefreshTab = new EventEmitter();
|
|
2702
|
+
this.onCloseTab = new EventEmitter();
|
|
2731
2703
|
this.subscriptions = [];
|
|
2732
2704
|
this.TAB_WIDTH = 164;
|
|
2733
2705
|
this.GAP_NORMAL = 54;
|
|
@@ -2954,6 +2926,7 @@ class MultiTabComponent {
|
|
|
2954
2926
|
}
|
|
2955
2927
|
this.setEllipsisTitle();
|
|
2956
2928
|
sessionStorage.setItem("TabCache", JSON.stringify(this.tabList));
|
|
2929
|
+
this.onCloseTab.emit(tab);
|
|
2957
2930
|
this.ref.markForCheck();
|
|
2958
2931
|
}
|
|
2959
2932
|
/**
|
|
@@ -3152,6 +3125,7 @@ MultiTabComponent.propDecorators = {
|
|
|
3152
3125
|
flattenMenu: [{ type: Input }],
|
|
3153
3126
|
defaultTabUrl: [{ type: Input }],
|
|
3154
3127
|
onRefreshTab: [{ type: Output }],
|
|
3128
|
+
onCloseTab: [{ type: Output }],
|
|
3155
3129
|
onResize: [{ type: HostListener, args: ["window:resize", ["$event"],] }]
|
|
3156
3130
|
};
|
|
3157
3131
|
if (false) {
|
|
@@ -3167,6 +3141,8 @@ if (false) {
|
|
|
3167
3141
|
MultiTabComponent.prototype.defaultTabUrl;
|
|
3168
3142
|
/** @type {?} */
|
|
3169
3143
|
MultiTabComponent.prototype.onRefreshTab;
|
|
3144
|
+
/** @type {?} */
|
|
3145
|
+
MultiTabComponent.prototype.onCloseTab;
|
|
3170
3146
|
/**
|
|
3171
3147
|
* @type {?}
|
|
3172
3148
|
* @private
|
|
@@ -21250,6 +21226,84 @@ if (false) {
|
|
|
21250
21226
|
EncryptedInputComponent.prototype.encrypted;
|
|
21251
21227
|
}
|
|
21252
21228
|
|
|
21229
|
+
/**
|
|
21230
|
+
* @fileoverview added by tsickle
|
|
21231
|
+
* Generated from: lib/form/search-input/index.component.ts
|
|
21232
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
21233
|
+
*/
|
|
21234
|
+
class SearchInputComponent {
|
|
21235
|
+
constructor() {
|
|
21236
|
+
this.placeholder = "";
|
|
21237
|
+
this.hanleSearch = new EventEmitter();
|
|
21238
|
+
this.handleInput = new EventEmitter();
|
|
21239
|
+
this.searchValue = "";
|
|
21240
|
+
}
|
|
21241
|
+
/**
|
|
21242
|
+
* @return {?}
|
|
21243
|
+
*/
|
|
21244
|
+
ngOnInit() {
|
|
21245
|
+
this.getInfo();
|
|
21246
|
+
this.debouncedInput = debounce((/**
|
|
21247
|
+
* @return {?}
|
|
21248
|
+
*/
|
|
21249
|
+
() => {
|
|
21250
|
+
this.onSeach();
|
|
21251
|
+
}), 300);
|
|
21252
|
+
}
|
|
21253
|
+
/**
|
|
21254
|
+
* @return {?}
|
|
21255
|
+
*/
|
|
21256
|
+
getInfo() {
|
|
21257
|
+
this.translation = JSON.parse(localStorage.getItem("translation"));
|
|
21258
|
+
this.placeholder = this.placeholder || this.translation.SEARCH;
|
|
21259
|
+
}
|
|
21260
|
+
/**
|
|
21261
|
+
* @param {?} e
|
|
21262
|
+
* @return {?}
|
|
21263
|
+
*/
|
|
21264
|
+
onInput(e) {
|
|
21265
|
+
this.handleInput.emit(e.value);
|
|
21266
|
+
this.debouncedInput();
|
|
21267
|
+
}
|
|
21268
|
+
/**
|
|
21269
|
+
* @return {?}
|
|
21270
|
+
*/
|
|
21271
|
+
onSeach() {
|
|
21272
|
+
this.hanleSearch.emit(this.searchValue);
|
|
21273
|
+
}
|
|
21274
|
+
}
|
|
21275
|
+
SearchInputComponent.decorators = [
|
|
21276
|
+
{ type: Component, args: [{
|
|
21277
|
+
selector: "rs-search-input",
|
|
21278
|
+
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",
|
|
21279
|
+
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}"]
|
|
21280
|
+
}] }
|
|
21281
|
+
];
|
|
21282
|
+
/** @nocollapse */
|
|
21283
|
+
SearchInputComponent.ctorParameters = () => [];
|
|
21284
|
+
SearchInputComponent.propDecorators = {
|
|
21285
|
+
placeholder: [{ type: Input }],
|
|
21286
|
+
hanleSearch: [{ type: Output }],
|
|
21287
|
+
handleInput: [{ type: Output }]
|
|
21288
|
+
};
|
|
21289
|
+
if (false) {
|
|
21290
|
+
/** @type {?} */
|
|
21291
|
+
SearchInputComponent.prototype.placeholder;
|
|
21292
|
+
/** @type {?} */
|
|
21293
|
+
SearchInputComponent.prototype.hanleSearch;
|
|
21294
|
+
/** @type {?} */
|
|
21295
|
+
SearchInputComponent.prototype.handleInput;
|
|
21296
|
+
/**
|
|
21297
|
+
* @type {?}
|
|
21298
|
+
* @private
|
|
21299
|
+
*/
|
|
21300
|
+
SearchInputComponent.prototype.debouncedInput;
|
|
21301
|
+
/** @type {?} */
|
|
21302
|
+
SearchInputComponent.prototype.searchValue;
|
|
21303
|
+
/** @type {?} */
|
|
21304
|
+
SearchInputComponent.prototype.translation;
|
|
21305
|
+
}
|
|
21306
|
+
|
|
21253
21307
|
/**
|
|
21254
21308
|
* @fileoverview added by tsickle
|
|
21255
21309
|
* Generated from: lib/form/drawer-form/constants.ts
|
|
@@ -22209,6 +22263,7 @@ RaiseCommonLibModule.decorators = [
|
|
|
22209
22263
|
CheckboxGroupComponent,
|
|
22210
22264
|
SwitchInputComponent,
|
|
22211
22265
|
EncryptedInputComponent,
|
|
22266
|
+
SearchInputComponent,
|
|
22212
22267
|
NewActionNotificationComponent,
|
|
22213
22268
|
CommonDialogComponent,
|
|
22214
22269
|
CommonDeleteComponent,
|
|
@@ -22369,6 +22424,7 @@ RaiseCommonLibModule.decorators = [
|
|
|
22369
22424
|
CheckboxGroupComponent,
|
|
22370
22425
|
SwitchInputComponent,
|
|
22371
22426
|
EncryptedInputComponent,
|
|
22427
|
+
SearchInputComponent,
|
|
22372
22428
|
DrawerComponent,
|
|
22373
22429
|
DrawerFormComponent,
|
|
22374
22430
|
ToolbarItemComponent,
|
|
@@ -22399,5 +22455,5 @@ RaiseCommonLibModule.decorators = [
|
|
|
22399
22455
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
22400
22456
|
*/
|
|
22401
22457
|
|
|
22402
|
-
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 };
|
|
22458
|
+
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 };
|
|
22403
22459
|
//# sourceMappingURL=raise-common-lib.js.map
|