raise-common-lib 0.0.201-beta → 0.0.201
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 +182 -110
- 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/drawer-form/drawer-form.component.js +1 -1
- package/esm2015/lib/layout/page-list/index.component.js +10 -15
- package/esm2015/lib/layout/rs-stepper/constants.js +6 -0
- package/esm2015/lib/layout/rs-stepper/index.component.js +68 -0
- package/esm2015/lib/raise-common-lib.module.js +4 -1
- package/esm2015/public-api.js +3 -1
- package/esm2015/raise-common-lib.js +2 -2
- package/esm5/lib/form/drawer-form/drawer-form.component.js +1 -1
- package/esm5/lib/layout/page-list/index.component.js +10 -19
- package/esm5/lib/layout/rs-stepper/constants.js +6 -0
- package/esm5/lib/layout/rs-stepper/index.component.js +75 -0
- package/esm5/lib/raise-common-lib.module.js +4 -1
- package/esm5/public-api.js +3 -1
- package/esm5/raise-common-lib.js +2 -2
- package/fesm2015/raise-common-lib.js +161 -92
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +182 -111
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/layout/page-list/index.component.d.ts +2 -3
- package/lib/layout/rs-stepper/constants.d.ts +5 -0
- package/lib/layout/rs-stepper/index.component.d.ts +12 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/raise-common-lib.metadata.json +1 -1
- package/src/assets/img/step-arrow.svg +3 -0
- package/src/assets/style/syncfusion.min.css +1 -1
- package/src/assets/style/variables.scss +1 -0
|
@@ -2214,84 +2214,6 @@ if (false) {
|
|
|
2214
2214
|
TruncatedTextToggleComponent.prototype.showCollapseBtn;
|
|
2215
2215
|
}
|
|
2216
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
|
-
|
|
2295
2217
|
/**
|
|
2296
2218
|
* @fileoverview added by tsickle
|
|
2297
2219
|
* Generated from: lib/layout/page-list/index.component.ts
|
|
@@ -2304,6 +2226,7 @@ class RsPageListComponent {
|
|
|
2304
2226
|
this.isInner = false;
|
|
2305
2227
|
this.onGridSearch = new EventEmitter();
|
|
2306
2228
|
this.hasWholeToolbarSlot = false;
|
|
2229
|
+
this.hasLeftContentSlot = false;
|
|
2307
2230
|
}
|
|
2308
2231
|
/**
|
|
2309
2232
|
* @return {?}
|
|
@@ -2323,14 +2246,7 @@ class RsPageListComponent {
|
|
|
2323
2246
|
ngAfterContentInit() {
|
|
2324
2247
|
// 检测是否传入了 wholeToolbarSlot
|
|
2325
2248
|
this.hasWholeToolbarSlot = !!this.wholeToolbarSlot;
|
|
2326
|
-
|
|
2327
|
-
/**
|
|
2328
|
-
* @param {?} value
|
|
2329
|
-
* @return {?}
|
|
2330
|
-
*/
|
|
2331
|
-
setSearchValue(value) {
|
|
2332
|
-
this.searchInput.searchValue = value;
|
|
2333
|
-
this.onSeach(value);
|
|
2249
|
+
this.hasLeftContentSlot = !!this.leftContentSlot;
|
|
2334
2250
|
}
|
|
2335
2251
|
/**
|
|
2336
2252
|
* @param {?} value
|
|
@@ -2354,8 +2270,8 @@ class RsPageListComponent {
|
|
|
2354
2270
|
RsPageListComponent.decorators = [
|
|
2355
2271
|
{ type: Component, args: [{
|
|
2356
2272
|
selector: "rs-page-list",
|
|
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
|
|
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)}"]
|
|
2273
|
+
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\r\n class=\"rs-content-wrap\"\r\n [ngClass]=\"{ 'has-left-content': hasLeftContentSlot }\"\r\n >\r\n <div class=\"rs-left-content\" *ngIf=\"hasLeftContentSlot\">\r\n <ng-content select=\"[leftContentSlot]\"></ng-content>\r\n </div>\r\n <div class=\"rs-right-content\">\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</div>\r\n",
|
|
2274
|
+
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-left-content{height:100%}.rs-page-list-wrap .rs-content-wrap .rs-right-content{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)}.rs-page-list-wrap .rs-content-wrap.has-left-content{flex-direction:row}.rs-page-list-wrap .rs-content-wrap.has-left-content .rs-right-content{height:auto;width:0}"]
|
|
2359
2275
|
}] }
|
|
2360
2276
|
];
|
|
2361
2277
|
RsPageListComponent.propDecorators = {
|
|
@@ -2363,7 +2279,7 @@ RsPageListComponent.propDecorators = {
|
|
|
2363
2279
|
orignGrid: [{ type: ContentChild, args: [GridComponent, { static: false },] }],
|
|
2364
2280
|
treeGrid: [{ type: ContentChild, args: [TreeGridComponent, { static: false },] }],
|
|
2365
2281
|
wholeToolbarSlot: [{ type: ContentChild, args: ["wholeToolbarSlot", { static: false },] }],
|
|
2366
|
-
|
|
2282
|
+
leftContentSlot: [{ type: ContentChild, args: ["leftContentSlot", { static: false },] }],
|
|
2367
2283
|
pageTitle: [{ type: Input }],
|
|
2368
2284
|
customPageTitle: [{ type: Input }],
|
|
2369
2285
|
hideSearch: [{ type: Input }],
|
|
@@ -2380,7 +2296,7 @@ if (false) {
|
|
|
2380
2296
|
/** @type {?} */
|
|
2381
2297
|
RsPageListComponent.prototype.wholeToolbarSlot;
|
|
2382
2298
|
/** @type {?} */
|
|
2383
|
-
RsPageListComponent.prototype.
|
|
2299
|
+
RsPageListComponent.prototype.leftContentSlot;
|
|
2384
2300
|
/** @type {?} */
|
|
2385
2301
|
RsPageListComponent.prototype.pageTitle;
|
|
2386
2302
|
/** @type {?} */
|
|
@@ -2394,6 +2310,8 @@ if (false) {
|
|
|
2394
2310
|
/** @type {?} */
|
|
2395
2311
|
RsPageListComponent.prototype.hasWholeToolbarSlot;
|
|
2396
2312
|
/** @type {?} */
|
|
2313
|
+
RsPageListComponent.prototype.hasLeftContentSlot;
|
|
2314
|
+
/** @type {?} */
|
|
2397
2315
|
RsPageListComponent.prototype.translation;
|
|
2398
2316
|
}
|
|
2399
2317
|
|
|
@@ -2492,6 +2410,84 @@ if (false) {
|
|
|
2492
2410
|
RsPageTabComponent.prototype.animation;
|
|
2493
2411
|
}
|
|
2494
2412
|
|
|
2413
|
+
/**
|
|
2414
|
+
* @fileoverview added by tsickle
|
|
2415
|
+
* Generated from: lib/form/search-input/index.component.ts
|
|
2416
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2417
|
+
*/
|
|
2418
|
+
class SearchInputComponent {
|
|
2419
|
+
constructor() {
|
|
2420
|
+
this.placeholder = "";
|
|
2421
|
+
this.hanleSearch = new EventEmitter();
|
|
2422
|
+
this.handleInput = new EventEmitter();
|
|
2423
|
+
this.searchValue = "";
|
|
2424
|
+
}
|
|
2425
|
+
/**
|
|
2426
|
+
* @return {?}
|
|
2427
|
+
*/
|
|
2428
|
+
ngOnInit() {
|
|
2429
|
+
this.getInfo();
|
|
2430
|
+
this.debouncedInput = debounce((/**
|
|
2431
|
+
* @return {?}
|
|
2432
|
+
*/
|
|
2433
|
+
() => {
|
|
2434
|
+
this.onSeach();
|
|
2435
|
+
}), 300);
|
|
2436
|
+
}
|
|
2437
|
+
/**
|
|
2438
|
+
* @return {?}
|
|
2439
|
+
*/
|
|
2440
|
+
getInfo() {
|
|
2441
|
+
this.translation = JSON.parse(localStorage.getItem("translation"));
|
|
2442
|
+
this.placeholder = this.placeholder || this.translation.SEARCH;
|
|
2443
|
+
}
|
|
2444
|
+
/**
|
|
2445
|
+
* @param {?} e
|
|
2446
|
+
* @return {?}
|
|
2447
|
+
*/
|
|
2448
|
+
onInput(e) {
|
|
2449
|
+
this.handleInput.emit(e.value);
|
|
2450
|
+
this.debouncedInput();
|
|
2451
|
+
}
|
|
2452
|
+
/**
|
|
2453
|
+
* @return {?}
|
|
2454
|
+
*/
|
|
2455
|
+
onSeach() {
|
|
2456
|
+
this.hanleSearch.emit(this.searchValue);
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2459
|
+
SearchInputComponent.decorators = [
|
|
2460
|
+
{ type: Component, args: [{
|
|
2461
|
+
selector: "rs-search-input",
|
|
2462
|
+
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",
|
|
2463
|
+
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}"]
|
|
2464
|
+
}] }
|
|
2465
|
+
];
|
|
2466
|
+
/** @nocollapse */
|
|
2467
|
+
SearchInputComponent.ctorParameters = () => [];
|
|
2468
|
+
SearchInputComponent.propDecorators = {
|
|
2469
|
+
placeholder: [{ type: Input }],
|
|
2470
|
+
hanleSearch: [{ type: Output }],
|
|
2471
|
+
handleInput: [{ type: Output }]
|
|
2472
|
+
};
|
|
2473
|
+
if (false) {
|
|
2474
|
+
/** @type {?} */
|
|
2475
|
+
SearchInputComponent.prototype.placeholder;
|
|
2476
|
+
/** @type {?} */
|
|
2477
|
+
SearchInputComponent.prototype.hanleSearch;
|
|
2478
|
+
/** @type {?} */
|
|
2479
|
+
SearchInputComponent.prototype.handleInput;
|
|
2480
|
+
/**
|
|
2481
|
+
* @type {?}
|
|
2482
|
+
* @private
|
|
2483
|
+
*/
|
|
2484
|
+
SearchInputComponent.prototype.debouncedInput;
|
|
2485
|
+
/** @type {?} */
|
|
2486
|
+
SearchInputComponent.prototype.searchValue;
|
|
2487
|
+
/** @type {?} */
|
|
2488
|
+
SearchInputComponent.prototype.translation;
|
|
2489
|
+
}
|
|
2490
|
+
|
|
2495
2491
|
/**
|
|
2496
2492
|
* @fileoverview added by tsickle
|
|
2497
2493
|
* Generated from: lib/layout/grid-box/index.component.ts
|
|
@@ -21012,6 +21008,77 @@ if (false) {
|
|
|
21012
21008
|
RSAsideComponent.prototype.cf;
|
|
21013
21009
|
}
|
|
21014
21010
|
|
|
21011
|
+
/**
|
|
21012
|
+
* @fileoverview added by tsickle
|
|
21013
|
+
* Generated from: lib/layout/rs-stepper/index.component.ts
|
|
21014
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
21015
|
+
*/
|
|
21016
|
+
class RSStepperComponent {
|
|
21017
|
+
/**
|
|
21018
|
+
* @param {?} cf
|
|
21019
|
+
*/
|
|
21020
|
+
constructor(cf) {
|
|
21021
|
+
this.cf = cf;
|
|
21022
|
+
this.steps = [];
|
|
21023
|
+
this.currentStep = 0;
|
|
21024
|
+
this.stepClick = new EventEmitter();
|
|
21025
|
+
}
|
|
21026
|
+
/**
|
|
21027
|
+
* @return {?}
|
|
21028
|
+
*/
|
|
21029
|
+
ngOnInit() {
|
|
21030
|
+
this.steps.forEach((/**
|
|
21031
|
+
* @param {?} step
|
|
21032
|
+
* @return {?}
|
|
21033
|
+
*/
|
|
21034
|
+
step => {
|
|
21035
|
+
step.displayTitle = this.cf.setMiddleEllipsis(step.label, 132, 12);
|
|
21036
|
+
}));
|
|
21037
|
+
}
|
|
21038
|
+
/**
|
|
21039
|
+
* @param {?} step
|
|
21040
|
+
* @return {?}
|
|
21041
|
+
*/
|
|
21042
|
+
onStepClick(step) {
|
|
21043
|
+
if (step.step < this.currentStep) {
|
|
21044
|
+
this.currentStep = step.step;
|
|
21045
|
+
this.stepClick.emit(step);
|
|
21046
|
+
}
|
|
21047
|
+
}
|
|
21048
|
+
}
|
|
21049
|
+
RSStepperComponent.decorators = [
|
|
21050
|
+
{ type: Component, args: [{
|
|
21051
|
+
selector: 'rs-stepper',
|
|
21052
|
+
template: "<div class=\"rs-stepper\">\r\n <div class=\"steps-wrap\">\r\n <ng-container *ngFor=\"let item of steps\">\r\n <div\r\n class=\"step\"\r\n [ngClass]=\"{\r\n done: item.step < currentStep,\r\n active: item.step === currentStep\r\n }\"\r\n (click)=\"onStepClick(item)\"\r\n >\r\n <div\r\n class=\"step-label\"\r\n [matTooltip]=\"item.label !== item.displayTitle ? item.label : ''\"\r\n matTooltipPosition=\"above\"\r\n >\r\n {{ item.displayTitle }}\r\n </div>\r\n </div>\r\n <div class=\"step-arrow\" *ngIf=\"item.step !== steps.length - 1\">\r\n <img src=\"../../../assets/img/step-arrow.svg\" />\r\n </div>\r\n </ng-container>\r\n </div>\r\n</div>\r\n",
|
|
21053
|
+
styles: [".rs-stepper{font-family:Arial;width:100%;border-bottom:1px solid var(--rs-border-color)}.rs-stepper .steps-wrap{display:flex;align-items:center;justify-content:space-between;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin:0 auto;gap:8px}.rs-stepper .steps-wrap .step{flex:1;padding:0 12px 12px}.rs-stepper .steps-wrap .step .step-label{color:var(--rs-labels-color);font-size:12px;font-weight:400;line-height:22px;text-align:center;white-space:nowrap;max-width:132px}.rs-stepper .steps-wrap .step.done{cursor:pointer}.rs-stepper .steps-wrap .step.done .step-label{color:var(--rs-active-labels-color)}.rs-stepper .steps-wrap .step.active .step-label{color:var(--rs-active-labels-color);font-weight:700}.rs-stepper .steps-wrap .step-arrow{padding:4px;align-self:flex-start}"]
|
|
21054
|
+
}] }
|
|
21055
|
+
];
|
|
21056
|
+
/** @nocollapse */
|
|
21057
|
+
RSStepperComponent.ctorParameters = () => [
|
|
21058
|
+
{ type: CommonFunctionService }
|
|
21059
|
+
];
|
|
21060
|
+
RSStepperComponent.propDecorators = {
|
|
21061
|
+
steps: [{ type: Input }],
|
|
21062
|
+
currentStep: [{ type: Input }],
|
|
21063
|
+
stepClick: [{ type: Output }]
|
|
21064
|
+
};
|
|
21065
|
+
if (false) {
|
|
21066
|
+
/** @type {?} */
|
|
21067
|
+
RSStepperComponent.prototype.steps;
|
|
21068
|
+
/** @type {?} */
|
|
21069
|
+
RSStepperComponent.prototype.currentStep;
|
|
21070
|
+
/** @type {?} */
|
|
21071
|
+
RSStepperComponent.prototype.stepClick;
|
|
21072
|
+
/** @type {?} */
|
|
21073
|
+
RSStepperComponent.prototype.cf;
|
|
21074
|
+
}
|
|
21075
|
+
|
|
21076
|
+
/**
|
|
21077
|
+
* @fileoverview added by tsickle
|
|
21078
|
+
* Generated from: lib/layout/rs-stepper/constants.ts
|
|
21079
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
21080
|
+
*/
|
|
21081
|
+
|
|
21015
21082
|
/**
|
|
21016
21083
|
* @fileoverview added by tsickle
|
|
21017
21084
|
* Generated from: lib/form/tag-input/index.component.ts
|
|
@@ -22099,7 +22166,7 @@ DrawerFormComponent.decorators = [
|
|
|
22099
22166
|
{ type: Component, args: [{
|
|
22100
22167
|
selector: "rs-drawer-form",
|
|
22101
22168
|
template: "<div #drawerFormEl class=\"rs-drawer-form-container\">\r\n <div class=\"section-container\">\r\n <div #sectionEl class=\"section-item\" *ngFor=\"let section of sections\">\r\n <input\r\n type=\"checkbox\"\r\n class=\"section-expand-checkbox\"\r\n *ngIf=\"section.title\"\r\n />\r\n <div class=\"section-title\" *ngIf=\"section.title\">\r\n <span>{{ section.title }}</span>\r\n </div>\r\n <div class=\"section-form\" *ngIf=\"!section.customKey\">\r\n <div\r\n class=\"form-item\"\r\n *ngFor=\"let field of section.fields\"\r\n [attr.data-required]=\"field.required ? 'yes' : 'no'\"\r\n [attr.data-disabled]=\"field.disabled || formDisabled ? 'yes' : 'no'\"\r\n [attr.data-error]=\"\r\n fieldValidMap[field.formKey] === false ? 'yes' : 'no'\r\n \"\r\n >\r\n <div class=\"form-label\">\r\n <span>{{ field.label }}</span>\r\n <ejs-tooltip\r\n class=\"form-tooltip\"\r\n cssClass=\"rs-drawer-tooltip\"\r\n *ngIf=\"field.tooltip\"\r\n position=\"RightCenter\"\r\n [content]=\"field.tooltip\"\r\n >\r\n <span class=\"tooltip-icon\"></span>\r\n </ejs-tooltip>\r\n </div>\r\n <div class=\"form-content\">\r\n <!-- Radio -->\r\n <rs-radio-group\r\n *ngIf=\"field.fieldFormType === 'Radio'\"\r\n [value]=\"form[field.formKey]\"\r\n [dataSource]=\"getOptions(field)\"\r\n [fields]=\"getOptionFields(field)\"\r\n [disabled]=\"getDisabled(field)\"\r\n [error]=\"fieldValidMap[field.formKey] === false\"\r\n (valueChange)=\"onChange($event, field)\"\r\n ></rs-radio-group>\r\n <!-- Checkbox -->\r\n <rs-checkbox-group\r\n *ngIf=\"field.fieldFormType === 'Checkbox'\"\r\n [value]=\"form[field.formKey]\"\r\n [dataSource]=\"getOptions(field)\"\r\n [fields]=\"getOptionFields(field)\"\r\n [disabled]=\"getDisabled(field)\"\r\n [error]=\"fieldValidMap[field.formKey] === false\"\r\n (valueChange)=\"onChange($event, field)\"\r\n ></rs-checkbox-group>\r\n <!-- Switch -->\r\n <rs-switch-input\r\n *ngIf=\"field.fieldFormType === 'Switch'\"\r\n [value]=\"form[field.formKey]\"\r\n [disabled]=\"getDisabled(field)\"\r\n (valueChange)=\"onChange($event, field)\"\r\n ></rs-switch-input>\r\n <!-- Input -->\r\n <input\r\n class=\"e-input\"\r\n *ngIf=\"\r\n field.fieldFormType === 'Text' ||\r\n field.fieldFormType === 'Email'\r\n \"\r\n [value]=\"form[field.formKey]\"\r\n [disabled]=\"getDisabled(field)\"\r\n [required]=\"field.required\"\r\n [attr.maxlength]=\"field.maxlength\"\r\n [attr.minlength]=\"field.minlength\"\r\n [class.error]=\"fieldValidMap[field.formKey] === false\"\r\n (input)=\"onInput($event.target.value, field)\"\r\n (change)=\"onChange($event.target.value, field)\"\r\n (focus)=\"onFocus(field)\"\r\n (blur)=\"onBlur(field)\"\r\n autocomplete=\"off\"\r\n />\r\n <!-- Textarea -->\r\n <textarea\r\n class=\"e-input\"\r\n *ngIf=\"field.fieldFormType === 'Textarea'\"\r\n [value]=\"form[field.formKey]\"\r\n [disabled]=\"getDisabled(field)\"\r\n [required]=\"field.required\"\r\n [attr.maxlength]=\"field.maxlength\"\r\n [attr.minlength]=\"field.minlength\"\r\n [class.error]=\"fieldValidMap[field.formKey] === false\"\r\n (input)=\"onInput($event.target.value, field)\"\r\n (change)=\"onChange($event.target.value, field)\"\r\n (focus)=\"onFocus(field)\"\r\n (blur)=\"onBlur(field)\"\r\n autocomplete=\"off\"\r\n rows=\"3\"\r\n ></textarea>\r\n <!-- Number Input -->\r\n <ejs-numerictextbox\r\n *ngIf=\"field.fieldFormType === 'Number'\"\r\n [value]=\"form[field.formKey]\"\r\n [max]=\"field.max\"\r\n [min]=\"field.min\"\r\n [step]=\"field.step\"\r\n [decimals]=\"field.decimals\"\r\n [format]=\"field.format || numberFormat\"\r\n [enabled]=\"!getDisabled(field)\"\r\n [class.error]=\"fieldValidMap[field.formKey] === false\"\r\n (change)=\"onComponentChange($event, field)\"\r\n (focus)=\"onFocus(field)\"\r\n (blur)=\"onBlur(field)\"\r\n ></ejs-numerictextbox>\r\n <!-- Tags Input -->\r\n <rs-tag-input\r\n *ngIf=\"field.fieldFormType === 'Tags'\"\r\n [value]=\"form[field.formKey]\"\r\n [fields]=\"getOptionFields(field)\"\r\n [inputMaxlength]=\"field.maxlength\"\r\n [inputMinlength]=\"field.minlength\"\r\n [disabled]=\"getDisabled(field)\"\r\n [error]=\"fieldValidMap[field.formKey] === false\"\r\n (valueChange)=\"onChange($event, field)\"\r\n (focus)=\"onFocus(field)\"\r\n (blur)=\"onBlur(field)\"\r\n ></rs-tag-input>\r\n <!-- AutoComplete -->\r\n <ejs-autocomplete\r\n *ngIf=\"field.fieldFormType === 'AutoComplete'\"\r\n [value]=\"form[field.formKey]\"\r\n [dataSource]=\"getOptions(field)\"\r\n [fields]=\"getOptionFields(field)\"\r\n [enabled]=\"!getDisabled(field)\"\r\n [class.error]=\"fieldValidMap[field.formKey] === false\"\r\n (filtering)=\"onFiltering($event, field)\"\r\n (change)=\"onComponentChange($event, field)\"\r\n (focus)=\"onFocus(field)\"\r\n (blur)=\"onBlur(field)\"\r\n ></ejs-autocomplete>\r\n <!-- Dropdown -->\r\n <ejs-dropdownlist\r\n #dropdown\r\n *ngIf=\"field.fieldFormType === 'Dropdown'\"\r\n [value]=\"form[field.formKey]\"\r\n [dataSource]=\"getOptions(field)\"\r\n [fields]=\"getOptionFields(field)\"\r\n [allowFiltering]=\"true\"\r\n [showClearButton]=\"true\"\r\n [enabled]=\"!getDisabled(field)\"\r\n [class.error]=\"fieldValidMap[field.formKey] === false\"\r\n (filtering)=\"onFiltering($event, field)\"\r\n (dataBound)=\"onDropdownDataBound($event, field)\"\r\n (change)=\"onComponentChange($event, field)\"\r\n (focus)=\"onFocus(field)\"\r\n (blur)=\"onBlur(field)\"\r\n ></ejs-dropdownlist>\r\n <!-- MultiSelect -->\r\n <ejs-multiselect\r\n *ngIf=\"field.fieldFormType === 'MultiSelect'\"\r\n mode=\"CheckBox\"\r\n [ngModel]=\"form[field.formKey]\"\r\n [dataSource]=\"getOptions(field)\"\r\n [fields]=\"getOptionFields(field)\"\r\n [allowFiltering]=\"true\"\r\n [showDropDownIcon]=\"true\"\r\n [enabled]=\"!getDisabled(field)\"\r\n [class.error]=\"fieldValidMap[field.formKey] === false\"\r\n (filtering)=\"onFiltering($event, field)\"\r\n (change)=\"onComponentChange($event, field)\"\r\n (focus)=\"onFocus(field)\"\r\n (blur)=\"onBlur(field)\"\r\n >\r\n </ejs-multiselect>\r\n <!-- Datepicker -->\r\n <ejs-datepicker\r\n *ngIf=\"field.fieldFormType === 'Datepicker'\"\r\n [(value)]=\"dateForm[field.formKey]\"\r\n [format]=\"field.format || dateFormat\"\r\n [enabled]=\"!getDisabled(field)\"\r\n [class.error]=\"\r\n fieldValidMap[field.formKey] === false ||\r\n dateValidMap[field.formKey] === false\r\n \"\r\n (change)=\"onComponentChange($event, field)\"\r\n (focus)=\"onFocus(field)\"\r\n (blur)=\"onDatePickerBlur($event, field)\"\r\n ></ejs-datepicker>\r\n <ng-template\r\n #customTemplateContainer\r\n *ngIf=\"field.fieldFormType === 'Custom'\"\r\n ></ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"section-form\" *ngIf=\"section.customKey\">\r\n <ng-template #customSectionContainer></ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"sections.length > 1 && showAnchor\" class=\"anchor-container\">\r\n <div\r\n class=\"anchor-item\"\r\n *ngFor=\"let section of sections; let index = index\"\r\n [style.display]=\"section.title ? 'block' : 'none'\"\r\n [attr.data-active]=\"scrollIndex === index ? 'yes' : 'no'\"\r\n [attr.data-content]=\"section.title\"\r\n (click)=\"onClickAnchor(index)\"\r\n ></div>\r\n </div>\r\n</div>\r\n",
|
|
22102
|
-
styles: [":host{display:block;margin-top:16px}.rs-drawer-form-container{display:flex;flex-flow:row nowrap;align-items:flex-start;gap:32px}.rs-drawer-form-container .section-container{
|
|
22169
|
+
styles: [":host{display:block;margin-top:16px}.rs-drawer-form-container{display:flex;flex-flow:row nowrap;align-items:flex-start;gap:32px}.rs-drawer-form-container .section-container{display:flex;flex-flow:column nowrap;max-width:1576px;flex:1;width:0}.rs-drawer-form-container .section-item{position:relative}.rs-drawer-form-container .section-item:not(:first-child){border-top:1px solid #eaedf0}.rs-drawer-form-container .section-expand-checkbox{display:block;width:100%;height:28px;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;position:absolute;top:0;left:0}.rs-drawer-form-container .section-expand-checkbox:checked+.section-title::before{transform:rotate(-90deg)}.rs-drawer-form-container .section-expand-checkbox:checked+.section-title+.section-form{max-height:0;overflow:hidden}.rs-drawer-form-container .section-title{padding:6px 0;margin-bottom:12px;color:#44566c;font-family:Arial;font-size:13px;font-style:normal;font-weight:700;line-height:16px;display:flex;flex-flow:row nowrap;align-items:center;pointer-events:none}.rs-drawer-form-container .section-title::before{content:url(../../assets/img/down-arrow.svg);display:block;height:16px;width:16px;margin-right:8px}.rs-drawer-form-container .section-form{display:flex;flex-flow:row wrap;justify-content:space-between;gap:12px 56px;max-width:1576px;padding:0 24px;margin-bottom:20px}.rs-drawer-form-container .section-form .form-item{min-height:28px;min-width:400px;max-width:700px;width:calc((100% - 56px)/ 2);display:flex;flex-flow:row nowrap;justify-content:flex-start;align-items:flex-start}.rs-drawer-form-container .section-form .form-item[data-required=yes] .form-label>span:first-child::after{content:\"*\";color:var(--rs-input-require-label-color)}.rs-drawer-form-container .section-form .form-item .form-label{flex:none;width:144px;height:28px;margin-right:16px;color:#43566c;font-family:Arial;font-size:12px;font-style:normal;font-weight:400;line-height:14px;display:flex;flex-flow:row nowrap;align-items:center}.rs-drawer-form-container .section-form .form-item .form-label .form-tooltip{margin-left:4px}.rs-drawer-form-container .section-form .form-item .form-label .form-tooltip .tooltip-icon::before{content:\" \";display:block;width:14px;height:14px;background-image:url(../../assets/img/tooltip-icon.svg);background-size:contain;cursor:pointer}.rs-drawer-form-container .section-form .form-item .form-content{flex:auto}@media (max-width:1420px){.rs-drawer-form-container .section-form .form-item{width:100%}}.rs-drawer-form-container .anchor-container{flex:none;display:flex;flex-flow:column nowrap;gap:4px;min-width:120px;height:auto;position:-webkit-sticky;position:sticky;top:56px}.rs-drawer-form-container .anchor-item{min-width:120px;padding:4px 12px;border-left:1px solid #eaedf0;cursor:pointer;color:#44566c;font-family:Arial;font-size:11px;font-style:normal;font-weight:400;line-height:16px;position:relative}.rs-drawer-form-container .anchor-item::before{content:attr(data-content);color:#44566c;font-weight:400;position:absolute;left:12px}.rs-drawer-form-container .anchor-item::after{content:attr(data-content);visibility:hidden;color:#1364b3;font-weight:700}.rs-drawer-form-container .anchor-item[data-active=yes]{border-color:#1f7bff}.rs-drawer-form-container .anchor-item[data-active=yes]::before{visibility:hidden}.rs-drawer-form-container .anchor-item[data-active=yes]::after{visibility:visible}.rs-drawer-tooltip.e-tooltip-wrap{border:none;background-color:#44566c}.rs-drawer-tooltip.e-tooltip-wrap .e-arrow-tip{height:4px;visibility:hidden}"]
|
|
22103
22170
|
}] }
|
|
22104
22171
|
];
|
|
22105
22172
|
/** @nocollapse */
|
|
@@ -23828,6 +23895,7 @@ RaiseCommonLibModule.decorators = [
|
|
|
23828
23895
|
RSNavCardGroupComponent,
|
|
23829
23896
|
RSToolbarComponent,
|
|
23830
23897
|
TruncatedTextToggleComponent,
|
|
23898
|
+
RSStepperComponent
|
|
23831
23899
|
],
|
|
23832
23900
|
imports: [
|
|
23833
23901
|
CommonModule,
|
|
@@ -23991,6 +24059,7 @@ RaiseCommonLibModule.decorators = [
|
|
|
23991
24059
|
RSToolbarComponent,
|
|
23992
24060
|
TruncatedTextToggleComponent,
|
|
23993
24061
|
CommonDialogComponent,
|
|
24062
|
+
RSStepperComponent
|
|
23994
24063
|
],
|
|
23995
24064
|
entryComponents: [
|
|
23996
24065
|
NewActionNotificationComponent,
|
|
@@ -24013,5 +24082,5 @@ RaiseCommonLibModule.decorators = [
|
|
|
24013
24082
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
24014
24083
|
*/
|
|
24015
24084
|
|
|
24016
|
-
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, RichtexteditorComponent as ɵb, ConfirmSelectComponent as ɵc, NewActionNotificationComponent as ɵd, CommonDeleteComponent as ɵe };
|
|
24085
|
+
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, RSStepperComponent, RSToolbarComponent, RadioGroupComponent, RaiseCommonLibModule, RsCommentaryComponent, RsPageListComponent, RsPageTabComponent, SearchInputComponent, SwitchInputComponent, TagInputComponent, ToolbarItemComponent, TranslationService, TruncatedTextToggleComponent, filterShowSection, Debounce as ɵa, RichtexteditorComponent as ɵb, ConfirmSelectComponent as ɵc, NewActionNotificationComponent as ɵd, CommonDeleteComponent as ɵe };
|
|
24017
24086
|
//# sourceMappingURL=raise-common-lib.js.map
|