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
|
@@ -1177,6 +1177,8 @@ class FloatBoxComponent {
|
|
|
1177
1177
|
*/
|
|
1178
1178
|
() => {
|
|
1179
1179
|
this.opened = "no";
|
|
1180
|
+
this.ref.markForCheck();
|
|
1181
|
+
this.ref.detectChanges();
|
|
1180
1182
|
this.openChange.emit(false);
|
|
1181
1183
|
}), 0);
|
|
1182
1184
|
}
|
|
@@ -1906,11 +1908,11 @@ class RsCommentaryComponent {
|
|
|
1906
1908
|
lastModifiedOn: "lastModifiedOn",
|
|
1907
1909
|
messageBody: "messageBody",
|
|
1908
1910
|
};
|
|
1911
|
+
this.dateTimePipeFormat = "dd-MMM-yyyy hh:mm:a";
|
|
1909
1912
|
this.actionComplete = new EventEmitter();
|
|
1910
1913
|
this.commentVal = "";
|
|
1911
1914
|
this.replyVal = "";
|
|
1912
1915
|
this.editCommentVal = "";
|
|
1913
|
-
this.dateTimePipeFormat = "dd-MMM-yyyy hh:mm:a";
|
|
1914
1916
|
}
|
|
1915
1917
|
/**
|
|
1916
1918
|
* @return {?}
|
|
@@ -1992,7 +1994,7 @@ class RsCommentaryComponent {
|
|
|
1992
1994
|
* @return {?}
|
|
1993
1995
|
*/
|
|
1994
1996
|
(res) => {
|
|
1995
|
-
if (res ===
|
|
1997
|
+
if (res === "close") {
|
|
1996
1998
|
return;
|
|
1997
1999
|
}
|
|
1998
2000
|
/** @type {?} */
|
|
@@ -2080,6 +2082,7 @@ RsCommentaryComponent.propDecorators = {
|
|
|
2080
2082
|
deletePermission: [{ type: Input }],
|
|
2081
2083
|
isReadOnly: [{ type: Input }],
|
|
2082
2084
|
filedsKey: [{ type: Input }],
|
|
2085
|
+
dateTimePipeFormat: [{ type: Input }],
|
|
2083
2086
|
actionComplete: [{ type: Output }]
|
|
2084
2087
|
};
|
|
2085
2088
|
__decorate([
|
|
@@ -2120,6 +2123,8 @@ if (false) {
|
|
|
2120
2123
|
/** @type {?} */
|
|
2121
2124
|
RsCommentaryComponent.prototype.filedsKey;
|
|
2122
2125
|
/** @type {?} */
|
|
2126
|
+
RsCommentaryComponent.prototype.dateTimePipeFormat;
|
|
2127
|
+
/** @type {?} */
|
|
2123
2128
|
RsCommentaryComponent.prototype.actionComplete;
|
|
2124
2129
|
/** @type {?} */
|
|
2125
2130
|
RsCommentaryComponent.prototype.commentVal;
|
|
@@ -2128,8 +2133,6 @@ if (false) {
|
|
|
2128
2133
|
/** @type {?} */
|
|
2129
2134
|
RsCommentaryComponent.prototype.editCommentVal;
|
|
2130
2135
|
/** @type {?} */
|
|
2131
|
-
RsCommentaryComponent.prototype.dateTimePipeFormat;
|
|
2132
|
-
/** @type {?} */
|
|
2133
2136
|
RsCommentaryComponent.prototype.translation;
|
|
2134
2137
|
/** @type {?} */
|
|
2135
2138
|
RsCommentaryComponent.prototype.cf;
|
|
@@ -2211,6 +2214,84 @@ if (false) {
|
|
|
2211
2214
|
TruncatedTextToggleComponent.prototype.showCollapseBtn;
|
|
2212
2215
|
}
|
|
2213
2216
|
|
|
2217
|
+
/**
|
|
2218
|
+
* @fileoverview added by tsickle
|
|
2219
|
+
* Generated from: lib/form/search-input/index.component.ts
|
|
2220
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2221
|
+
*/
|
|
2222
|
+
class SearchInputComponent {
|
|
2223
|
+
constructor() {
|
|
2224
|
+
this.placeholder = "";
|
|
2225
|
+
this.hanleSearch = new EventEmitter();
|
|
2226
|
+
this.handleInput = new EventEmitter();
|
|
2227
|
+
this.searchValue = "";
|
|
2228
|
+
}
|
|
2229
|
+
/**
|
|
2230
|
+
* @return {?}
|
|
2231
|
+
*/
|
|
2232
|
+
ngOnInit() {
|
|
2233
|
+
this.getInfo();
|
|
2234
|
+
this.debouncedInput = debounce((/**
|
|
2235
|
+
* @return {?}
|
|
2236
|
+
*/
|
|
2237
|
+
() => {
|
|
2238
|
+
this.onSeach();
|
|
2239
|
+
}), 300);
|
|
2240
|
+
}
|
|
2241
|
+
/**
|
|
2242
|
+
* @return {?}
|
|
2243
|
+
*/
|
|
2244
|
+
getInfo() {
|
|
2245
|
+
this.translation = JSON.parse(localStorage.getItem("translation"));
|
|
2246
|
+
this.placeholder = this.placeholder || this.translation.SEARCH;
|
|
2247
|
+
}
|
|
2248
|
+
/**
|
|
2249
|
+
* @param {?} e
|
|
2250
|
+
* @return {?}
|
|
2251
|
+
*/
|
|
2252
|
+
onInput(e) {
|
|
2253
|
+
this.handleInput.emit(e.value);
|
|
2254
|
+
this.debouncedInput();
|
|
2255
|
+
}
|
|
2256
|
+
/**
|
|
2257
|
+
* @return {?}
|
|
2258
|
+
*/
|
|
2259
|
+
onSeach() {
|
|
2260
|
+
this.hanleSearch.emit(this.searchValue);
|
|
2261
|
+
}
|
|
2262
|
+
}
|
|
2263
|
+
SearchInputComponent.decorators = [
|
|
2264
|
+
{ type: Component, args: [{
|
|
2265
|
+
selector: "rs-search-input",
|
|
2266
|
+
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",
|
|
2267
|
+
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}"]
|
|
2268
|
+
}] }
|
|
2269
|
+
];
|
|
2270
|
+
/** @nocollapse */
|
|
2271
|
+
SearchInputComponent.ctorParameters = () => [];
|
|
2272
|
+
SearchInputComponent.propDecorators = {
|
|
2273
|
+
placeholder: [{ type: Input }],
|
|
2274
|
+
hanleSearch: [{ type: Output }],
|
|
2275
|
+
handleInput: [{ type: Output }]
|
|
2276
|
+
};
|
|
2277
|
+
if (false) {
|
|
2278
|
+
/** @type {?} */
|
|
2279
|
+
SearchInputComponent.prototype.placeholder;
|
|
2280
|
+
/** @type {?} */
|
|
2281
|
+
SearchInputComponent.prototype.hanleSearch;
|
|
2282
|
+
/** @type {?} */
|
|
2283
|
+
SearchInputComponent.prototype.handleInput;
|
|
2284
|
+
/**
|
|
2285
|
+
* @type {?}
|
|
2286
|
+
* @private
|
|
2287
|
+
*/
|
|
2288
|
+
SearchInputComponent.prototype.debouncedInput;
|
|
2289
|
+
/** @type {?} */
|
|
2290
|
+
SearchInputComponent.prototype.searchValue;
|
|
2291
|
+
/** @type {?} */
|
|
2292
|
+
SearchInputComponent.prototype.translation;
|
|
2293
|
+
}
|
|
2294
|
+
|
|
2214
2295
|
/**
|
|
2215
2296
|
* @fileoverview added by tsickle
|
|
2216
2297
|
* Generated from: lib/layout/page-list/index.component.ts
|
|
@@ -2243,6 +2324,14 @@ class RsPageListComponent {
|
|
|
2243
2324
|
// 检测是否传入了 wholeToolbarSlot
|
|
2244
2325
|
this.hasWholeToolbarSlot = !!this.wholeToolbarSlot;
|
|
2245
2326
|
}
|
|
2327
|
+
/**
|
|
2328
|
+
* @param {?} value
|
|
2329
|
+
* @return {?}
|
|
2330
|
+
*/
|
|
2331
|
+
setSearchValue(value) {
|
|
2332
|
+
this.searchInput.searchValue = value;
|
|
2333
|
+
this.onSeach(value);
|
|
2334
|
+
}
|
|
2246
2335
|
/**
|
|
2247
2336
|
* @param {?} value
|
|
2248
2337
|
* @return {?}
|
|
@@ -2265,7 +2354,7 @@ class RsPageListComponent {
|
|
|
2265
2354
|
RsPageListComponent.decorators = [
|
|
2266
2355
|
{ type: Component, args: [{
|
|
2267
2356
|
selector: "rs-page-list",
|
|
2268
|
-
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",
|
|
2357
|
+
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",
|
|
2269
2358
|
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)}"]
|
|
2270
2359
|
}] }
|
|
2271
2360
|
];
|
|
@@ -2274,6 +2363,7 @@ RsPageListComponent.propDecorators = {
|
|
|
2274
2363
|
orignGrid: [{ type: ContentChild, args: [GridComponent, { static: false },] }],
|
|
2275
2364
|
treeGrid: [{ type: ContentChild, args: [TreeGridComponent, { static: false },] }],
|
|
2276
2365
|
wholeToolbarSlot: [{ type: ContentChild, args: ["wholeToolbarSlot", { static: false },] }],
|
|
2366
|
+
searchInput: [{ type: ViewChild, args: ["searchInput", { static: false },] }],
|
|
2277
2367
|
pageTitle: [{ type: Input }],
|
|
2278
2368
|
customPageTitle: [{ type: Input }],
|
|
2279
2369
|
hideSearch: [{ type: Input }],
|
|
@@ -2290,6 +2380,8 @@ if (false) {
|
|
|
2290
2380
|
/** @type {?} */
|
|
2291
2381
|
RsPageListComponent.prototype.wholeToolbarSlot;
|
|
2292
2382
|
/** @type {?} */
|
|
2383
|
+
RsPageListComponent.prototype.searchInput;
|
|
2384
|
+
/** @type {?} */
|
|
2293
2385
|
RsPageListComponent.prototype.pageTitle;
|
|
2294
2386
|
/** @type {?} */
|
|
2295
2387
|
RsPageListComponent.prototype.customPageTitle;
|
|
@@ -2427,6 +2519,14 @@ class GridBoxComponent {
|
|
|
2427
2519
|
// 检测是否传入了 wholeToolbarSlot
|
|
2428
2520
|
this.hasWholeToolbarSlot = !!this.wholeToolbarSlot;
|
|
2429
2521
|
}
|
|
2522
|
+
/**
|
|
2523
|
+
* @param {?} value
|
|
2524
|
+
* @return {?}
|
|
2525
|
+
*/
|
|
2526
|
+
setSearchValue(value) {
|
|
2527
|
+
this.searchInput.searchValue = value;
|
|
2528
|
+
this.onSeach(value);
|
|
2529
|
+
}
|
|
2430
2530
|
/**
|
|
2431
2531
|
* @param {?} value
|
|
2432
2532
|
* @return {?}
|
|
@@ -2449,7 +2549,7 @@ class GridBoxComponent {
|
|
|
2449
2549
|
GridBoxComponent.decorators = [
|
|
2450
2550
|
{ type: Component, args: [{
|
|
2451
2551
|
selector: "rs-grid-box",
|
|
2452
|
-
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",
|
|
2552
|
+
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",
|
|
2453
2553
|
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}"]
|
|
2454
2554
|
}] }
|
|
2455
2555
|
];
|
|
@@ -2458,6 +2558,7 @@ GridBoxComponent.propDecorators = {
|
|
|
2458
2558
|
orignGrid: [{ type: ContentChild, args: [GridComponent, { static: false },] }],
|
|
2459
2559
|
treeGrid: [{ type: ContentChild, args: [TreeGridComponent, { static: false },] }],
|
|
2460
2560
|
wholeToolbarSlot: [{ type: ContentChild, args: ["wholeToolbarSlot", { static: false },] }],
|
|
2561
|
+
searchInput: [{ type: ViewChild, args: ["searchInput", { static: false },] }],
|
|
2461
2562
|
hideSearch: [{ type: Input }],
|
|
2462
2563
|
isInner: [{ type: Input }],
|
|
2463
2564
|
onGridSearch: [{ type: Output }]
|
|
@@ -2472,6 +2573,8 @@ if (false) {
|
|
|
2472
2573
|
/** @type {?} */
|
|
2473
2574
|
GridBoxComponent.prototype.wholeToolbarSlot;
|
|
2474
2575
|
/** @type {?} */
|
|
2576
|
+
GridBoxComponent.prototype.searchInput;
|
|
2577
|
+
/** @type {?} */
|
|
2475
2578
|
GridBoxComponent.prototype.hideSearch;
|
|
2476
2579
|
/** @type {?} */
|
|
2477
2580
|
GridBoxComponent.prototype.isInner;
|
|
@@ -20834,8 +20937,8 @@ class RSAsideComponent {
|
|
|
20834
20937
|
RSAsideComponent.decorators = [
|
|
20835
20938
|
{ type: Component, args: [{
|
|
20836
20939
|
selector: "rs-aside",
|
|
20837
|
-
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",
|
|
20838
|
-
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}}"]
|
|
20940
|
+
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",
|
|
20941
|
+
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}}"]
|
|
20839
20942
|
}] }
|
|
20840
20943
|
];
|
|
20841
20944
|
/** @nocollapse */
|
|
@@ -21285,84 +21388,6 @@ if (false) {
|
|
|
21285
21388
|
EncryptedInputComponent.prototype.encrypted;
|
|
21286
21389
|
}
|
|
21287
21390
|
|
|
21288
|
-
/**
|
|
21289
|
-
* @fileoverview added by tsickle
|
|
21290
|
-
* Generated from: lib/form/search-input/index.component.ts
|
|
21291
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
21292
|
-
*/
|
|
21293
|
-
class SearchInputComponent {
|
|
21294
|
-
constructor() {
|
|
21295
|
-
this.placeholder = "";
|
|
21296
|
-
this.hanleSearch = new EventEmitter();
|
|
21297
|
-
this.handleInput = new EventEmitter();
|
|
21298
|
-
this.searchValue = "";
|
|
21299
|
-
}
|
|
21300
|
-
/**
|
|
21301
|
-
* @return {?}
|
|
21302
|
-
*/
|
|
21303
|
-
ngOnInit() {
|
|
21304
|
-
this.getInfo();
|
|
21305
|
-
this.debouncedInput = debounce((/**
|
|
21306
|
-
* @return {?}
|
|
21307
|
-
*/
|
|
21308
|
-
() => {
|
|
21309
|
-
this.onSeach();
|
|
21310
|
-
}), 300);
|
|
21311
|
-
}
|
|
21312
|
-
/**
|
|
21313
|
-
* @return {?}
|
|
21314
|
-
*/
|
|
21315
|
-
getInfo() {
|
|
21316
|
-
this.translation = JSON.parse(localStorage.getItem("translation"));
|
|
21317
|
-
this.placeholder = this.placeholder || this.translation.SEARCH;
|
|
21318
|
-
}
|
|
21319
|
-
/**
|
|
21320
|
-
* @param {?} e
|
|
21321
|
-
* @return {?}
|
|
21322
|
-
*/
|
|
21323
|
-
onInput(e) {
|
|
21324
|
-
this.handleInput.emit(e.value);
|
|
21325
|
-
this.debouncedInput();
|
|
21326
|
-
}
|
|
21327
|
-
/**
|
|
21328
|
-
* @return {?}
|
|
21329
|
-
*/
|
|
21330
|
-
onSeach() {
|
|
21331
|
-
this.hanleSearch.emit(this.searchValue);
|
|
21332
|
-
}
|
|
21333
|
-
}
|
|
21334
|
-
SearchInputComponent.decorators = [
|
|
21335
|
-
{ type: Component, args: [{
|
|
21336
|
-
selector: "rs-search-input",
|
|
21337
|
-
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",
|
|
21338
|
-
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}"]
|
|
21339
|
-
}] }
|
|
21340
|
-
];
|
|
21341
|
-
/** @nocollapse */
|
|
21342
|
-
SearchInputComponent.ctorParameters = () => [];
|
|
21343
|
-
SearchInputComponent.propDecorators = {
|
|
21344
|
-
placeholder: [{ type: Input }],
|
|
21345
|
-
hanleSearch: [{ type: Output }],
|
|
21346
|
-
handleInput: [{ type: Output }]
|
|
21347
|
-
};
|
|
21348
|
-
if (false) {
|
|
21349
|
-
/** @type {?} */
|
|
21350
|
-
SearchInputComponent.prototype.placeholder;
|
|
21351
|
-
/** @type {?} */
|
|
21352
|
-
SearchInputComponent.prototype.hanleSearch;
|
|
21353
|
-
/** @type {?} */
|
|
21354
|
-
SearchInputComponent.prototype.handleInput;
|
|
21355
|
-
/**
|
|
21356
|
-
* @type {?}
|
|
21357
|
-
* @private
|
|
21358
|
-
*/
|
|
21359
|
-
SearchInputComponent.prototype.debouncedInput;
|
|
21360
|
-
/** @type {?} */
|
|
21361
|
-
SearchInputComponent.prototype.searchValue;
|
|
21362
|
-
/** @type {?} */
|
|
21363
|
-
SearchInputComponent.prototype.translation;
|
|
21364
|
-
}
|
|
21365
|
-
|
|
21366
21391
|
/**
|
|
21367
21392
|
* @fileoverview added by tsickle
|
|
21368
21393
|
* Generated from: lib/form/drawer-form/constants.ts
|