raise-common-lib 0.0.47 → 0.0.50

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.
@@ -1984,10 +1984,6 @@ var MultiTabComponent = /** @class */ (function () {
1984
1984
  if (_this.noGenerateTabUrls.includes(_this.router.url)) {
1985
1985
  return; // 排除不生成tab的url
1986
1986
  }
1987
- if (_this.tabList.length === 0) {
1988
- title = sessionStorage.getItem("firstTabTitle");
1989
- sessionStorage.removeItem("firstTabTitle");
1990
- }
1991
1987
  _this.setTab(_this.router.url, currentRoute.snapshot.routeConfig.path, title);
1992
1988
  }
1993
1989
  }
@@ -2103,6 +2099,16 @@ var MultiTabComponent = /** @class */ (function () {
2103
2099
  /** @type {?} */
2104
2100
  var TabCache = JSON.parse(sessionStorage.getItem("TabCache"));
2105
2101
  this.tabList = TabCache || [];
2102
+ if (this.tabList.length === 0) {
2103
+ /** @type {?} */
2104
+ var title = sessionStorage.getItem("firstTabTitle");
2105
+ if (title) {
2106
+ sessionStorage.removeItem("firstTabTitle");
2107
+ /** @type {?} */
2108
+ var url = this.router.url;
2109
+ this.addTab(url, title);
2110
+ }
2111
+ }
2106
2112
  };
2107
2113
  /**
2108
2114
  * @param {?} idx
@@ -2333,7 +2339,6 @@ var DrawerComponent = /** @class */ (function () {
2333
2339
  this.config = DefaultDrawerConfig;
2334
2340
  this.useTransition = "yes";
2335
2341
  this.$isOpened = new BehaviorSubject(false);
2336
- this.showToolbarContainer = true;
2337
2342
  this.componentRefMap = new Map();
2338
2343
  }
2339
2344
  /**
@@ -2398,39 +2403,53 @@ var DrawerComponent = /** @class */ (function () {
2398
2403
  /**
2399
2404
  * @private
2400
2405
  * @param {?} componentRef
2406
+ * @param {?} selector
2401
2407
  * @return {?}
2402
2408
  */
2403
- DrawerComponent.prototype.getToolbarElement = /**
2409
+ DrawerComponent.prototype.getSlotElement = /**
2404
2410
  * @private
2405
2411
  * @param {?} componentRef
2412
+ * @param {?} selector
2406
2413
  * @return {?}
2407
2414
  */
2408
- function (componentRef) {
2415
+ function (componentRef, selector) {
2409
2416
  /** @type {?} */
2410
2417
  var componentEl = componentRef.location.nativeElement;
2411
- /** @type {?} */
2412
- var toolbarEl = componentEl.querySelector("[drawer-toolbar]");
2413
- return toolbarEl;
2418
+ return (/** @type {?} */ (componentEl.querySelector(selector)));
2414
2419
  };
2415
2420
  /**
2416
2421
  * @private
2417
- * @param {?} toolbarEl
2422
+ * @param {?} slotEl
2423
+ * @param {?} containerEl
2418
2424
  * @return {?}
2419
2425
  */
2420
- DrawerComponent.prototype.setToolbarElement = /**
2426
+ DrawerComponent.prototype.setSlotElement = /**
2421
2427
  * @private
2422
- * @param {?} toolbarEl
2428
+ * @param {?} slotEl
2429
+ * @param {?} containerEl
2423
2430
  * @return {?}
2424
2431
  */
2425
- function (toolbarEl) {
2426
- /** @type {?} */
2427
- var toolbarContainerEl = this.toolbar.nativeElement;
2428
- toolbarContainerEl.innerHTML = "";
2429
- this.showToolbarContainer = !!toolbarEl;
2430
- if (toolbarEl) {
2431
- toolbarContainerEl.append(toolbarEl);
2432
+ function (slotEl, containerEl) {
2433
+ containerEl.innerHTML = "";
2434
+ if (slotEl) {
2435
+ containerEl.append(slotEl);
2432
2436
  }
2433
2437
  };
2438
+ /**
2439
+ * @param {?} cache
2440
+ * @return {?}
2441
+ */
2442
+ DrawerComponent.prototype.setCache = /**
2443
+ * @param {?} cache
2444
+ * @return {?}
2445
+ */
2446
+ function (cache) {
2447
+ this.setSlotElement(cache.toolbarEl, this.toolbar.nativeElement);
2448
+ this.setSlotElement(cache.headerEl, this.header.nativeElement);
2449
+ /** @type {?} */
2450
+ var drawerTop = cache.config.top ? cache.config.top + "px" : "";
2451
+ this.element.nativeElement.style.setProperty("--drawer-top", drawerTop);
2452
+ };
2434
2453
  /**
2435
2454
  * @template T
2436
2455
  * @param {?} component
@@ -2451,14 +2470,19 @@ var DrawerComponent = /** @class */ (function () {
2451
2470
  /** @type {?} */
2452
2471
  var componentRef = this.createDynamicComponent(component);
2453
2472
  /** @type {?} */
2454
- var toolbarEl = this.getToolbarElement(componentRef);
2455
- this.setComponentData(componentRef, data);
2456
- this.setToolbarElement(toolbarEl);
2457
- this.componentRefMap.set(this.service.cacheKey, {
2473
+ var toolbarEl = this.getSlotElement(componentRef, "[drawer-toolbar]");
2474
+ /** @type {?} */
2475
+ var headerEl = this.getSlotElement(componentRef, "[drawer-header]");
2476
+ /** @type {?} */
2477
+ var cache = {
2458
2478
  config: showConfig,
2459
2479
  ref: componentRef,
2460
2480
  toolbarEl: toolbarEl,
2461
- });
2481
+ headerEl: headerEl,
2482
+ };
2483
+ this.setComponentData(componentRef, data);
2484
+ this.componentRefMap.set(this.service.cacheKey, cache);
2485
+ this.setCache(cache);
2462
2486
  this.config = showConfig;
2463
2487
  this.$isOpened.next(true);
2464
2488
  this.useTransition = "yes";
@@ -2519,7 +2543,7 @@ var DrawerComponent = /** @class */ (function () {
2519
2543
  if (cache) {
2520
2544
  cache.ref.location.nativeElement.style.display = "";
2521
2545
  this.config = cache.config;
2522
- this.setToolbarElement(cache.toolbarEl);
2546
+ this.setCache(cache);
2523
2547
  this.$isOpened.next(true);
2524
2548
  }
2525
2549
  else {
@@ -2530,8 +2554,8 @@ var DrawerComponent = /** @class */ (function () {
2530
2554
  DrawerComponent.decorators = [
2531
2555
  { type: Component, args: [{
2532
2556
  selector: "rs-drawer",
2533
- template: "<div #element id=\"rs-drawer-container\" class=\"rs-drawer-container\">\r\n <div class=\"rs-drawer-content\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div\r\n class=\"rs-drawer\"\r\n [attr.data-mode]=\"config.mode\"\r\n [attr.data-opened]=\"($isOpened | async) ? 'yes' : 'no'\"\r\n [attr.data-transition]=\"useTransition\"\r\n >\r\n <div class=\"drawer-header\">\r\n <button class=\"drawer-return-button\" (click)=\"hide()\">\r\n <span class=\"drawer-sub-title\" *ngIf=\"config.subTitle\">\r\n {{ config.subTitle }}\r\n </span>\r\n </button>\r\n <div class=\"drawer-title\">{{ config.title }}</div>\r\n </div>\r\n <div class=\"drawer-content\">\r\n <div class=\"drawer-content-container\">\r\n <ng-template #dynamicComponentContainer></ng-template>\r\n </div>\r\n </div>\r\n <div\r\n class=\"drawer-footer\"\r\n [attr.data-show-footer]=\"showToolbarContainer ? 'yes' : 'no'\"\r\n >\r\n <div class=\"drawer-toolbar\" #toolbar></div>\r\n </div>\r\n </div>\r\n</div>\r\n",
2534
- styles: [":host{display:block;height:100%}#rs-drawer-container{height:100%}.rs-drawer-container{height:100%;background-color:transparent;overflow:hidden;position:relative}.rs-drawer-container .rs-drawer-content{width:100%;height:100%;overflow:auto;margin-right:0!important}.rs-drawer-container .rs-drawer-content::-webkit-scrollbar{width:5px;height:5px;background:#fff;position:static;z-index:999;border-radius:10px}.rs-drawer-container .rs-drawer-content::-webkit-scrollbar-thumb{background:#eaedf0}.rs-drawer-container .rs-drawer{width:100%;height:100%;border-left:none;background-color:transparent;overflow:visible;pointer-events:none;opacity:0;display:flex;flex-flow:column nowrap;position:absolute;top:0;left:100%}.rs-drawer-container .rs-drawer[data-opened=yes]{left:0;opacity:1;pointer-events:auto}.rs-drawer-container .rs-drawer[data-transition=yes]{transition:opacity .5s ease-in-out,left .5s ease-in-out}.rs-drawer-container .rs-drawer .drawer-header{flex:none;display:flex;flex-flow:row nowrap;justify-content:flex-start;align-items:center;box-sizing:content-box}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button{flex:none;display:flex;flex-flow:row nowrap;align-items:center;padding:0;border:none;background-color:transparent;cursor:pointer}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button::before{content:url(../../assets/img/drawer-back.svg);width:24px;height:24px;margin-right:8px;transition:transform 125ms ease-in-out}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button:hover::before{transform:translateX(-2px)}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button .drawer-sub-title{margin-right:12px;font-family:Arial;font-style:normal;font-weight:400}.rs-drawer-container .rs-drawer .drawer-header .drawer-title{flex:none;padding-left:12px;border-left:1px solid #bdc4ca;font-family:Arial;font-style:normal;font-weight:400}.rs-drawer-container .rs-drawer .drawer-content{flex:auto;overflow:hidden}.rs-drawer-container .rs-drawer .drawer-content .drawer-content-container{height:100%;overflow:hidden auto}.rs-drawer-container .rs-drawer .drawer-footer{flex:none;height:32px;padding:16px 0;box-sizing:content-box;border-top:1px solid #eaedf0;display:flex;flex-flow:row nowrap;justify-content:flex-end;align-items:center}.rs-drawer-container .rs-drawer .drawer-footer[data-show-footer=no]{display:none}.rs-drawer-container .rs-drawer .drawer-footer .drawer-toolbar{height:32px;display:flex;flex-flow:row nowrap;justify-content:flex-end;align-items:center}.rs-drawer-container .rs-drawer[data-mode=inner],.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-content{padding:0 20px;border:1px solid #ebedf0;border-radius:15px;background-color:#fff}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-header{height:46px;padding:0 24px 0 8px;background-color:#f7fafb}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-header .drawer-sub-title,.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-header .drawer-title{color:#1f3f5c;font-size:15px;font-weight:700;line-height:18px}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-content{padding-bottom:20px}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-content .drawer-content-container{margin-right:-20px;padding-right:20px}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-footer{height:0;padding:0;border:none}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-footer .drawer-toolbar{position:absolute;top:7px;right:0;z-index:1}.rs-drawer-container .rs-drawer[data-mode=inner]{height:calc(100% - 16px);margin-top:16px;box-shadow:0 -16px #f8fafb}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-header{height:24px;padding:6px 0;border-bottom:1px solid #eaedf0}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-header .drawer-sub-title,.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-header .drawer-title{color:#44566c;font-size:12px;line-height:14px}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-header .drawer-title{font-weight:700}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-content{padding:0 20px 0 8px}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-content .drawer-content-container{margin-right:-20px;padding-right:20px}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar [drawer-toolbar]{display:flex;flex-flow:row nowrap;justify-content:flex-end;align-items:center;gap:12px}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar [drawer-toolbar] button{display:flex;flex-flow:row nowrap;justify-content:center;align-items:center;gap:6px;min-width:80px;height:32px;padding:0 12px;border:1px solid #adb5bd;border-radius:4px;background-color:#fff;cursor:pointer;color:#44566c;font-size:13px;font-family:Arial;font-style:normal;font-weight:400;line-height:16px}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar [drawer-toolbar] button:hover{border-color:#6c7c90}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar [drawer-toolbar] button:disabled{opacity:1!important;border-color:#6c7c9066;color:#44566c66;cursor:unset}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar [drawer-toolbar] button.primary{border:none;background-color:#1364b3;color:#fff}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar [drawer-toolbar] button.primary:hover{background-color:#176bca}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar [drawer-toolbar] button.primary:disabled{background-color:#1364b366}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar [drawer-toolbar] button img{width:16px;height:16px}::ng-deep .rs-drawer-container .rs-drawer[data-mode=outer] .drawer-toolbar [drawer-toolbar] button{height:26px;font-size:12px;line-height:14px}::ng-deep .rs-drawer-container .rs-drawer[data-mode=inner] .drawer-toolbar [drawer-toolbar] button img{display:none}"]
2557
+ template: "<div #element id=\"rs-drawer-container\" class=\"rs-drawer-container\">\r\n <div class=\"rs-drawer-content\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div\r\n class=\"rs-drawer\"\r\n [attr.data-mode]=\"config.mode\"\r\n [attr.data-opened]=\"($isOpened | async) ? 'yes' : 'no'\"\r\n [attr.data-transition]=\"useTransition\"\r\n >\r\n <div class=\"drawer-header\">\r\n <button class=\"drawer-return-button\" (click)=\"hide()\">\r\n <span class=\"drawer-sub-title\" *ngIf=\"config.subTitle\">\r\n {{ config.subTitle }}\r\n </span>\r\n </button>\r\n <div class=\"drawer-title\">{{ config.title }}</div>\r\n <div class=\"drawer-header-slot\" #header></div>\r\n </div>\r\n <div class=\"drawer-content\">\r\n <div class=\"drawer-content-container\">\r\n <ng-template #dynamicComponentContainer></ng-template>\r\n </div>\r\n </div>\r\n <div class=\"drawer-toolbar-slot\" #toolbar></div>\r\n </div>\r\n</div>\r\n",
2558
+ styles: [":host{display:block;height:100%}#rs-drawer-container{height:100%}.rs-drawer-container{height:100%;background-color:transparent;overflow:hidden;position:relative}.rs-drawer-container .rs-drawer-content{width:100%;height:100%;overflow:auto;margin-right:0!important}.rs-drawer-container .rs-drawer-content::-webkit-scrollbar{width:5px;height:5px;background:#fff;position:static;z-index:999;border-radius:10px}.rs-drawer-container .rs-drawer-content::-webkit-scrollbar-thumb{background:#eaedf0}.rs-drawer-container .rs-drawer{width:100%;height:100%;border-left:none;background-color:transparent;overflow:visible;pointer-events:none;opacity:0;display:flex;flex-flow:column nowrap;position:absolute;top:0;left:100%}.rs-drawer-container .rs-drawer[data-opened=yes]{left:0;opacity:1}.rs-drawer-container .rs-drawer[data-transition=yes]{transition:opacity .5s ease-in-out,left .5s ease-in-out}.rs-drawer-container .rs-drawer .drawer-header{flex:none;display:flex;flex-flow:row nowrap;justify-content:flex-start;align-items:center;box-sizing:content-box;pointer-events:auto}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button{flex:none;display:flex;flex-flow:row nowrap;align-items:center;padding:0;border:none;background-color:transparent;cursor:pointer}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button::before{content:url(../../assets/img/drawer-back.svg);width:24px;height:24px;margin-right:8px;transition:transform 125ms ease-in-out}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button:hover::before{transform:translateX(-2px)}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button .drawer-sub-title{margin-right:12px;font-family:Arial;font-style:normal;font-weight:400}.rs-drawer-container .rs-drawer .drawer-header .drawer-title{flex:none;padding:0 12px;border-left:1px solid #bdc4ca;font-family:Arial;font-style:normal;font-weight:400}.rs-drawer-container .rs-drawer .drawer-header .drawer-header-slot{margin-left:20px}.rs-drawer-container .rs-drawer .drawer-content{flex:auto;overflow:hidden;pointer-events:auto}.rs-drawer-container .rs-drawer .drawer-content .drawer-content-container{height:100%;overflow:hidden auto}.rs-drawer-container .rs-drawer .drawer-toolbar-slot{flex:none;height:32px;display:flex;flex-flow:row nowrap;justify-content:flex-end;align-items:center;pointer-events:auto}.rs-drawer-container .rs-drawer .drawer-toolbar-slot:empty{display:none}.rs-drawer-container .rs-drawer[data-mode=inner],.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-content{padding:0 20px;border:1px solid #ebedf0;border-radius:15px;background-color:#fff}.rs-drawer-container .rs-drawer[data-mode=outer]{margin-top:var(--drawer-top,0);background-color:#f8fafb}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-header{height:46px;padding:0 24px 0 8px;background-color:#f7fafb}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-header .drawer-sub-title,.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-header .drawer-title{color:#1f3f5c;font-size:15px;font-weight:700;line-height:18px}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-content{padding-bottom:20px}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-content .drawer-content-container{margin-right:-20px;padding-right:20px}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-toolbar-slot{position:absolute;top:7px;right:0;z-index:1}.rs-drawer-container .rs-drawer[data-mode=inner]{height:calc(100% - var(--drawer-top,16px));margin-top:var(--drawer-top,16px);box-shadow:0 min(0,var(--drawer-top,-16px)) #f8fafb}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-header{height:24px;padding:6px 0;border-bottom:1px solid #eaedf0}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-header .drawer-sub-title,.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-header .drawer-title{color:#44566c;font-size:12px;line-height:14px}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-header .drawer-title{font-weight:700}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-content{padding:0 20px 0 8px}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-content .drawer-content-container{margin-right:-20px;padding-right:20px}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-toolbar-slot{padding:16px 0;box-sizing:content-box;border-top:1px solid #eaedf0}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar]{display:flex;flex-flow:row nowrap;justify-content:flex-end;align-items:center;gap:12px}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button{display:flex;flex-flow:row nowrap;justify-content:center;align-items:center;gap:6px;min-width:80px;height:32px;padding:0 12px;border:1px solid #adb5bd;border-radius:4px;background-color:#fff;cursor:pointer;color:#44566c;font-size:13px;font-family:Arial;font-style:normal;font-weight:400;line-height:16px}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button:hover{border-color:#6c7c90}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button:disabled{opacity:1!important;border-color:#6c7c9066;color:#44566c66;cursor:unset}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button.primary{border:none;background-color:#1364b3;color:#fff}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button.primary:hover{background-color:#176bca}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button.primary:disabled{background-color:#1364b366}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button img{width:16px;height:16px}::ng-deep .rs-drawer-container .rs-drawer[data-mode=outer] .drawer-toolbar-slot [drawer-toolbar] button{height:26px;font-size:12px;line-height:14px}::ng-deep .rs-drawer-container .rs-drawer[data-mode=inner] .drawer-toolbar-slot [drawer-toolbar] button img{display:none}"]
2535
2559
  }] }
2536
2560
  ];
2537
2561
  /** @nocollapse */
@@ -2542,6 +2566,7 @@ var DrawerComponent = /** @class */ (function () {
2542
2566
  DrawerComponent.propDecorators = {
2543
2567
  element: [{ type: ViewChild, args: ["element", { static: false },] }],
2544
2568
  toolbar: [{ type: ViewChild, args: ["toolbar", { static: false },] }],
2569
+ header: [{ type: ViewChild, args: ["header", { static: false },] }],
2545
2570
  container: [{ type: ViewChild, args: ["dynamicComponentContainer", {
2546
2571
  read: ViewContainerRef,
2547
2572
  static: false,
@@ -2554,6 +2579,8 @@ if (false) {
2554
2579
  DrawerComponent.prototype.element;
2555
2580
  /** @type {?} */
2556
2581
  DrawerComponent.prototype.toolbar;
2582
+ /** @type {?} */
2583
+ DrawerComponent.prototype.header;
2557
2584
  /**
2558
2585
  * @type {?}
2559
2586
  * @private
@@ -2565,8 +2592,6 @@ if (false) {
2565
2592
  DrawerComponent.prototype.useTransition;
2566
2593
  /** @type {?} */
2567
2594
  DrawerComponent.prototype.$isOpened;
2568
- /** @type {?} */
2569
- DrawerComponent.prototype.showToolbarContainer;
2570
2595
  /**
2571
2596
  * @type {?}
2572
2597
  * @private
@@ -20092,6 +20117,9 @@ var DrawerFormComponent = /** @class */ (function () {
20092
20117
  if (changes.sections) {
20093
20118
  this.formatForm(changes.sections.currentValue);
20094
20119
  }
20120
+ if (changes.form && !changes.form.firstChange) {
20121
+ this.checkFormChange(changes.form.previousValue, changes.form.currentValue);
20122
+ }
20095
20123
  };
20096
20124
  /**
20097
20125
  * @return {?}
@@ -20196,6 +20224,31 @@ var DrawerFormComponent = /** @class */ (function () {
20196
20224
  }));
20197
20225
  }
20198
20226
  };
20227
+ /**
20228
+ * @param {?} previous
20229
+ * @param {?} current
20230
+ * @return {?}
20231
+ */
20232
+ DrawerFormComponent.prototype.checkFormChange = /**
20233
+ * @param {?} previous
20234
+ * @param {?} current
20235
+ * @return {?}
20236
+ */
20237
+ function (previous, current) {
20238
+ var _this = this;
20239
+ Object.entries(current).forEach((/**
20240
+ * @param {?} __0
20241
+ * @return {?}
20242
+ */
20243
+ function (_a) {
20244
+ var _b = __read(_a, 2), key = _b[0], currentValue = _b[1];
20245
+ if (previous[key] !== currentValue) {
20246
+ /** @type {?} */
20247
+ var field = _this.getField(key);
20248
+ _this.formItemValidator(field);
20249
+ }
20250
+ }));
20251
+ };
20199
20252
  /**
20200
20253
  * @param {?} sections
20201
20254
  * @return {?}
@@ -21295,9 +21348,7 @@ var KeepAliveService = /** @class */ (function () {
21295
21348
  if (future.routeConfig === curr.routeConfig) {
21296
21349
  if (future.children.length === 0 && curr.children.length === 0) {
21297
21350
  // 无子路由时, 通过params和queryParams判断是否复用路由
21298
- return (JSON.stringify(future.params) === JSON.stringify(curr.params) &&
21299
- JSON.stringify(future.queryParams) ===
21300
- JSON.stringify(curr.queryParams));
21351
+ return (JSON.stringify(future.params) === JSON.stringify(curr.params));
21301
21352
  }
21302
21353
  return true;
21303
21354
  }
@@ -21314,15 +21365,14 @@ var KeepAliveService = /** @class */ (function () {
21314
21365
  function (route) {
21315
21366
  if (route.routeConfig) {
21316
21367
  // const pathParams = JSON.stringify(route.params);
21317
- /** @type {?} */
21318
- var queryParams = new URLSearchParams(route.queryParams).toString();
21368
+ // const queryParams = new URLSearchParams(route.queryParams).toString();
21319
21369
  /** @type {?} */
21320
21370
  var url = route._urlSegment.segments.map((/**
21321
21371
  * @param {?} v
21322
21372
  * @return {?}
21323
21373
  */
21324
21374
  function (v) { return v.path; })).join("/");
21325
- return "/" + url + (queryParams ? "?" + queryParams : "");
21375
+ return "/" + url;
21326
21376
  }
21327
21377
  return "";
21328
21378
  };