@ts-core/angular 11.0.78 → 11.0.82

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.
Files changed (25) hide show
  1. package/bottomSheet/{component/BottomSheetImpl.d.ts → BottomSheetImpl.d.ts} +12 -4
  2. package/bottomSheet/component/BottomSheetBaseComponent.d.ts +19 -0
  3. package/bottomSheet/component/bottom-sheet-close-element/bottom-sheet-close-element.component.d.ts +10 -0
  4. package/bundles/ts-core-angular.umd.js +312 -107
  5. package/bundles/ts-core-angular.umd.js.map +1 -1
  6. package/bundles/ts-core-angular.umd.min.js +1 -1
  7. package/bundles/ts-core-angular.umd.min.js.map +1 -1
  8. package/esm2015/bottomSheet/BottomSheetImpl.js +231 -0
  9. package/esm2015/bottomSheet/BottomSheetModule.js +3 -3
  10. package/esm2015/bottomSheet/BottomSheetService.js +3 -3
  11. package/esm2015/bottomSheet/component/BottomSheetBaseComponent.js +86 -0
  12. package/esm2015/bottomSheet/component/bottom-sheet-close-element/bottom-sheet-close-element.component.js +63 -0
  13. package/esm2015/component/cdk-table/cdk-table-filterable/cdk-table-filterable.component.js +2 -2
  14. package/esm2015/component/cdk-table/cdk-table-paginable/cdk-table-paginable.component.js +2 -2
  15. package/esm2015/service/RouterBaseService.js +6 -3
  16. package/esm2015/ts-core-angular.js +11 -10
  17. package/esm2015/window/component/WindowBaseComponent.js +2 -2
  18. package/fesm2015/ts-core-angular.js +260 -88
  19. package/fesm2015/ts-core-angular.js.map +1 -1
  20. package/package.json +1 -1
  21. package/service/RouterBaseService.d.ts +6 -1
  22. package/style/mat/vi-mat.scss +7 -3
  23. package/ts-core-angular.d.ts +11 -10
  24. package/ts-core-angular.metadata.json +1 -1
  25. package/esm2015/bottomSheet/component/BottomSheetImpl.js +0 -201
@@ -1,16 +1,19 @@
1
1
  import { Observable, Subject, Subscription } from 'rxjs';
2
2
  import { DestroyableContainer } from '@ts-core/common';
3
3
  import { MatBottomSheetRef } from '@angular/material/bottom-sheet';
4
- import { WindowConfig } from '../../window/WindowConfig';
5
- import { IWindow } from '../../window/IWindow';
6
- import { IWindowContent } from '../../window/IWindowContent';
7
- import { WindowProperties } from '../../window/WindowProperties';
4
+ import { WindowConfig } from '../window/WindowConfig';
5
+ import { IWindow } from '../window/IWindow';
6
+ import { IWindowContent } from '../window/IWindowContent';
7
+ import { WindowProperties } from '../window/WindowProperties';
8
8
  export declare class BottomSheetImpl<T = any> extends DestroyableContainer implements IWindow {
9
9
  static BLINK_DELAY: number;
10
10
  static SHAKE_DELAY: number;
11
11
  private _isBlink;
12
12
  private blinkTimer;
13
13
  private _isDisabled;
14
+ private _wrapper;
15
+ private _backdrop;
16
+ private _container;
14
17
  protected properties: WindowProperties;
15
18
  protected subscription: Subscription;
16
19
  protected observer: Subject<string>;
@@ -24,7 +27,12 @@ export declare class BottomSheetImpl<T = any> extends DestroyableContainer imple
24
27
  protected getConfig(): WindowConfig;
25
28
  protected getContainer(): HTMLElement;
26
29
  protected getReference(): MatBottomSheetRef<IWindowContent<T>>;
30
+ protected isNeedClickStopPropagation(event: MouseEvent): boolean;
27
31
  private stopBlinkIfNeed;
32
+ protected mouseDownHandler(event: MouseEvent): void;
33
+ protected mouseClickHandler(event: MouseEvent): void;
34
+ private mouseDownHandlerProxy;
35
+ private mouseClickHandlerProxy;
28
36
  emit(event: string): void;
29
37
  close(): void;
30
38
  destroy(): void;
@@ -0,0 +1,19 @@
1
+ import { ComponentFactoryResolver, ComponentRef } from '@angular/core';
2
+ import { BottomSheetImpl } from '../BottomSheetImpl';
3
+ import { BottomSheetCloseElementComponent } from './bottom-sheet-close-element/bottom-sheet-close-element.component';
4
+ export declare class BottomSheetBaseComponent extends BottomSheetImpl {
5
+ static CLOSE_COMPONENT: typeof BottomSheetCloseElementComponent;
6
+ protected closeWindow: ComponentRef<any>;
7
+ protected setProperties(): void;
8
+ protected createWindowComponents(): void;
9
+ protected commitIsBlinkProperties(): void;
10
+ protected commitIsDisabledProperties(): void;
11
+ protected commitIsShakingProperties(): void;
12
+ protected isNeedClickStopPropagation(event: MouseEvent): boolean;
13
+ protected get resolver(): ComponentFactoryResolver;
14
+ protected get blinkClass(): string;
15
+ protected get disabledClass(): string;
16
+ protected get minimizedClass(): string;
17
+ protected get shakingClass(): string;
18
+ destroy(): void;
19
+ }
@@ -0,0 +1,10 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { WindowElement } from '../../../window/component/WindowElement';
3
+ export declare class BottomSheetCloseElementComponent extends WindowElement {
4
+ static ICON_CLASS: string;
5
+ static ICON_VALUE: string;
6
+ constructor(element: ElementRef);
7
+ protected createChildren(): void;
8
+ protected destroyChildren(): void;
9
+ private mouseClickHandler;
10
+ }
@@ -5145,9 +5145,19 @@
5145
5145
  _this.blinkToggle = function () {
5146
5146
  _this.isBlink = !_this.isBlink;
5147
5147
  };
5148
+ _this.mouseDownHandlerProxy = function (event) {
5149
+ _this.mouseDownHandler(event);
5150
+ };
5151
+ _this.mouseClickHandlerProxy = function (event) {
5152
+ _this.mouseClickHandler(event);
5153
+ };
5148
5154
  _this.observer = new rxjs.Subject();
5149
5155
  _this.properties = properties;
5150
5156
  _this.content.window = _this;
5157
+ // Have to save for unsubscribe on destroy
5158
+ _this._wrapper = _this.properties.overlay.hostElement;
5159
+ _this._backdrop = _this.properties.overlay.backdropElement;
5160
+ _this._container = _this.properties.overlay.overlayElement;
5151
5161
  _this.setProperties();
5152
5162
  _this.getReference().afterOpened().pipe(operators$1.takeUntil(_this.destroyed)).subscribe(_this.setOpened);
5153
5163
  _this.getReference().afterDismissed().pipe(operators$1.takeUntil(_this.destroyed)).subscribe(_this.setClosed);
@@ -5156,6 +5166,10 @@
5156
5166
  BottomSheetImpl.prototype.setProperties = function () {
5157
5167
  ViewUtil.addClass(this.container, 'vi-bottom-sheet');
5158
5168
  ViewUtil.toggleClass(this.container, 'vi-modal', this.config.isModal);
5169
+ if (!this.config.isModal) {
5170
+ this.container.addEventListener('click', this.mouseClickHandlerProxy, true);
5171
+ this.container.addEventListener('mousedown', this.mouseDownHandlerProxy);
5172
+ }
5159
5173
  };
5160
5174
  BottomSheetImpl.prototype.commitIsBlinkProperties = function () { };
5161
5175
  BottomSheetImpl.prototype.commitIsDisabledProperties = function () { };
@@ -5168,6 +5182,9 @@
5168
5182
  BottomSheetImpl.prototype.getReference = function () {
5169
5183
  return this.properties.reference;
5170
5184
  };
5185
+ BottomSheetImpl.prototype.isNeedClickStopPropagation = function (event) {
5186
+ return false;
5187
+ };
5171
5188
  BottomSheetImpl.prototype.stopBlinkIfNeed = function () {
5172
5189
  this.isBlink = false;
5173
5190
  if (!this.blinkTimer) {
@@ -5176,6 +5193,14 @@
5176
5193
  clearInterval(this.blinkTimer);
5177
5194
  this.blinkTimer = null;
5178
5195
  };
5196
+ BottomSheetImpl.prototype.mouseDownHandler = function (event) {
5197
+ this.setOnTop();
5198
+ };
5199
+ BottomSheetImpl.prototype.mouseClickHandler = function (event) {
5200
+ if (this.isNeedClickStopPropagation(event)) {
5201
+ event.stopPropagation();
5202
+ }
5203
+ };
5179
5204
  // --------------------------------------------------------------------------
5180
5205
  //
5181
5206
  // Public Methods
@@ -5192,6 +5217,8 @@
5192
5217
  return;
5193
5218
  }
5194
5219
  _super.prototype.destroy.call(this);
5220
+ this._container.removeEventListener('click', this.mouseClickHandlerProxy, true);
5221
+ this._container.removeEventListener('mousedown', this.mouseDownHandlerProxy);
5195
5222
  if (!_.isNil(this.content)) {
5196
5223
  this.content.destroy();
5197
5224
  }
@@ -5200,6 +5227,9 @@
5200
5227
  this.observer = null;
5201
5228
  }
5202
5229
  this.properties = null;
5230
+ this._wrapper = null;
5231
+ this._backdrop = null;
5232
+ this._container = null;
5203
5233
  clearInterval(this.blinkTimer);
5204
5234
  this.blinkTimer = null;
5205
5235
  };
@@ -5307,21 +5337,21 @@
5307
5337
  });
5308
5338
  Object.defineProperty(BottomSheetImpl.prototype, "container", {
5309
5339
  get: function () {
5310
- return !_.isNil(this.reference) ? this.properties.overlay.overlayElement : null;
5340
+ return this._container;
5311
5341
  },
5312
5342
  enumerable: false,
5313
5343
  configurable: true
5314
5344
  });
5315
5345
  Object.defineProperty(BottomSheetImpl.prototype, "wrapper", {
5316
5346
  get: function () {
5317
- return !_.isNil(this.properties.reference) ? this.properties.overlay.hostElement : null;
5347
+ return this._wrapper;
5318
5348
  },
5319
5349
  enumerable: false,
5320
5350
  configurable: true
5321
5351
  });
5322
5352
  Object.defineProperty(BottomSheetImpl.prototype, "backdrop", {
5323
5353
  get: function () {
5324
- return !_.isNil(this.properties.reference) ? this.properties.overlay.backdropElement : null;
5354
+ return this._backdrop;
5325
5355
  },
5326
5356
  enumerable: false,
5327
5357
  configurable: true
@@ -5367,6 +5397,261 @@
5367
5397
  BottomSheetImpl.BLINK_DELAY = 500;
5368
5398
  BottomSheetImpl.SHAKE_DELAY = 500;
5369
5399
 
5400
+ var WindowElement = /** @class */ (function (_super) {
5401
+ __extends(WindowElement, _super);
5402
+ // --------------------------------------------------------------------------
5403
+ //
5404
+ // Constructor
5405
+ //
5406
+ // --------------------------------------------------------------------------
5407
+ function WindowElement(element) {
5408
+ var _this = _super.call(this) || this;
5409
+ _this.element = element;
5410
+ return _this;
5411
+ }
5412
+ // --------------------------------------------------------------------------
5413
+ //
5414
+ // Private Methods
5415
+ //
5416
+ // --------------------------------------------------------------------------
5417
+ WindowElement.prototype.checkWindowParent = function () {
5418
+ var container = this.getContainer();
5419
+ if (container) {
5420
+ ViewUtil.appendChild(container, this.element.nativeElement);
5421
+ }
5422
+ };
5423
+ WindowElement.prototype.getContainer = function () {
5424
+ var item = ViewUtil.parseElement(this.element.nativeElement);
5425
+ while (item && item.nodeName.toLowerCase() !== 'mat-dialog-container') {
5426
+ item = item.parentElement;
5427
+ }
5428
+ return item;
5429
+ };
5430
+ WindowElement.prototype.createChildren = function () { };
5431
+ WindowElement.prototype.destroyChildren = function () { };
5432
+ WindowElement.prototype.commitWindowProperties = function () { };
5433
+ // --------------------------------------------------------------------------
5434
+ //
5435
+ // Public Methods
5436
+ //
5437
+ // --------------------------------------------------------------------------
5438
+ WindowElement.prototype.ngAfterViewInit = function () {
5439
+ this.createChildren();
5440
+ this.checkWindowParent();
5441
+ };
5442
+ WindowElement.prototype.destroy = function () {
5443
+ if (this.isDestroyed) {
5444
+ return;
5445
+ }
5446
+ _super.prototype.destroy.call(this);
5447
+ this.destroyChildren();
5448
+ this.element = null;
5449
+ this.window = null;
5450
+ };
5451
+ Object.defineProperty(WindowElement.prototype, "nativeElement", {
5452
+ // --------------------------------------------------------------------------
5453
+ //
5454
+ // Protected Properties
5455
+ //
5456
+ // --------------------------------------------------------------------------
5457
+ get: function () {
5458
+ return this.element ? this.element.nativeElement : null;
5459
+ },
5460
+ enumerable: false,
5461
+ configurable: true
5462
+ });
5463
+ Object.defineProperty(WindowElement.prototype, "window", {
5464
+ // --------------------------------------------------------------------------
5465
+ //
5466
+ // Public Properties
5467
+ //
5468
+ // --------------------------------------------------------------------------
5469
+ get: function () {
5470
+ return this._window;
5471
+ },
5472
+ set: function (value) {
5473
+ if (value === this._window) {
5474
+ return;
5475
+ }
5476
+ this._window = value;
5477
+ if (this.window) {
5478
+ this.commitWindowProperties();
5479
+ }
5480
+ },
5481
+ enumerable: false,
5482
+ configurable: true
5483
+ });
5484
+ return WindowElement;
5485
+ }(common.DestroyableContainer));
5486
+
5487
+ var BottomSheetCloseElementComponent = /** @class */ (function (_super) {
5488
+ __extends(BottomSheetCloseElementComponent, _super);
5489
+ // --------------------------------------------------------------------------
5490
+ //
5491
+ // Constructor
5492
+ //
5493
+ // --------------------------------------------------------------------------
5494
+ function BottomSheetCloseElementComponent(element) {
5495
+ var _this = _super.call(this, element) || this;
5496
+ // --------------------------------------------------------------------------
5497
+ //
5498
+ // Event Handlers
5499
+ //
5500
+ // --------------------------------------------------------------------------
5501
+ _this.mouseClickHandler = function (event) {
5502
+ event.stopPropagation();
5503
+ if (!_.isNil(_this.window)) {
5504
+ _this.window.close();
5505
+ }
5506
+ };
5507
+ return _this;
5508
+ }
5509
+ // --------------------------------------------------------------------------
5510
+ //
5511
+ // Private Methods
5512
+ //
5513
+ // --------------------------------------------------------------------------
5514
+ BottomSheetCloseElementComponent.prototype.createChildren = function () {
5515
+ _super.prototype.createChildren.call(this);
5516
+ if (!_.isNil(BottomSheetCloseElementComponent.ICON_VALUE)) {
5517
+ ViewUtil.setProperty(this.nativeElement, 'innerHTML', BottomSheetCloseElementComponent.ICON_VALUE);
5518
+ }
5519
+ if (!_.isNil(BottomSheetCloseElementComponent.ICON_CLASS)) {
5520
+ ViewUtil.addClasses(this.nativeElement, BottomSheetCloseElementComponent.ICON_CLASS);
5521
+ }
5522
+ ViewUtil.addClass(this.nativeElement, 'mouse-active');
5523
+ this.nativeElement.addEventListener('click', this.mouseClickHandler, true);
5524
+ };
5525
+ BottomSheetCloseElementComponent.prototype.destroyChildren = function () {
5526
+ _super.prototype.destroyChildren.call(this);
5527
+ this.nativeElement.removeEventListener('click', this.mouseClickHandler, true);
5528
+ };
5529
+ return BottomSheetCloseElementComponent;
5530
+ }(WindowElement));
5531
+ // --------------------------------------------------------------------------
5532
+ //
5533
+ // Constants
5534
+ //
5535
+ // --------------------------------------------------------------------------
5536
+ BottomSheetCloseElementComponent.ICON_CLASS = 'fas fa-times';
5537
+ BottomSheetCloseElementComponent.ICON_VALUE = null;
5538
+ BottomSheetCloseElementComponent.decorators = [
5539
+ { type: i0.Component, args: [{
5540
+ selector: 'vi-bottom-sheet-close-element',
5541
+ template: '',
5542
+ styles: [":host{display:block;position:absolute;color:#fff;background-color:rgba(0,0,0,.4);border-radius:50%;padding:8px;font-size:14px;font-weight:700}:host:hover{background-color:rgba(0,0,0,.6)}:host.small{font-size:10px;padding:4px}"]
5543
+ },] }
5544
+ ];
5545
+ BottomSheetCloseElementComponent.ctorParameters = function () { return [
5546
+ { type: i0.ElementRef }
5547
+ ]; };
5548
+
5549
+ var BottomSheetBaseComponent = /** @class */ (function (_super) {
5550
+ __extends(BottomSheetBaseComponent, _super);
5551
+ function BottomSheetBaseComponent() {
5552
+ return _super !== null && _super.apply(this, arguments) || this;
5553
+ }
5554
+ // --------------------------------------------------------------------------
5555
+ //
5556
+ // Protected Methods
5557
+ //
5558
+ // --------------------------------------------------------------------------
5559
+ BottomSheetBaseComponent.prototype.setProperties = function () {
5560
+ _super.prototype.setProperties.call(this);
5561
+ this.createWindowComponents();
5562
+ };
5563
+ BottomSheetBaseComponent.prototype.createWindowComponents = function () {
5564
+ if (!(this.content.container instanceof i0.ViewContainerRef)) {
5565
+ return;
5566
+ }
5567
+ if (!this.config.disableClose && !this.closeWindow) {
5568
+ var factory = this.resolver.resolveComponentFactory(BottomSheetBaseComponent.CLOSE_COMPONENT);
5569
+ this.closeWindow = this.content.container.createComponent(factory);
5570
+ this.closeWindow.instance.window = this;
5571
+ }
5572
+ };
5573
+ BottomSheetBaseComponent.prototype.commitIsBlinkProperties = function () {
5574
+ ViewUtil.toggleClass(this.container, this.blinkClass, this.isBlink);
5575
+ };
5576
+ BottomSheetBaseComponent.prototype.commitIsDisabledProperties = function () {
5577
+ ViewUtil.toggleClass(this.container, this.disabledClass, this.isDisabled);
5578
+ ViewUtil.toggleClass(this.content.element, this.disabledClass, this.isDisabled);
5579
+ ViewUtil.toggleClass(this.content.element.nativeElement.parentElement, this.disabledClass, this.isDisabled);
5580
+ };
5581
+ BottomSheetBaseComponent.prototype.commitIsShakingProperties = function () {
5582
+ ViewUtil.toggleClass(this.container, this.shakingClass, this.isShaking);
5583
+ };
5584
+ BottomSheetBaseComponent.prototype.isNeedClickStopPropagation = function (event) {
5585
+ if (!_super.prototype.isNeedClickStopPropagation.call(this, event)) {
5586
+ return false;
5587
+ }
5588
+ if (this.closeWindow && this.closeWindow.location.nativeElement === event.target) {
5589
+ return false;
5590
+ }
5591
+ return true;
5592
+ };
5593
+ Object.defineProperty(BottomSheetBaseComponent.prototype, "resolver", {
5594
+ // --------------------------------------------------------------------------
5595
+ //
5596
+ // Protected Properties
5597
+ //
5598
+ // --------------------------------------------------------------------------
5599
+ get: function () {
5600
+ return APPLICATION_INJECTOR().get(i0.ComponentFactoryResolver);
5601
+ },
5602
+ enumerable: false,
5603
+ configurable: true
5604
+ });
5605
+ Object.defineProperty(BottomSheetBaseComponent.prototype, "blinkClass", {
5606
+ get: function () {
5607
+ return 'vi-blink';
5608
+ },
5609
+ enumerable: false,
5610
+ configurable: true
5611
+ });
5612
+ Object.defineProperty(BottomSheetBaseComponent.prototype, "disabledClass", {
5613
+ get: function () {
5614
+ return 'vi-disabled';
5615
+ },
5616
+ enumerable: false,
5617
+ configurable: true
5618
+ });
5619
+ Object.defineProperty(BottomSheetBaseComponent.prototype, "minimizedClass", {
5620
+ get: function () {
5621
+ return 'vi-minimized';
5622
+ },
5623
+ enumerable: false,
5624
+ configurable: true
5625
+ });
5626
+ Object.defineProperty(BottomSheetBaseComponent.prototype, "shakingClass", {
5627
+ get: function () {
5628
+ return 'shake-constant shake-horizontal';
5629
+ },
5630
+ enumerable: false,
5631
+ configurable: true
5632
+ });
5633
+ // --------------------------------------------------------------------------
5634
+ //
5635
+ // Public Methods
5636
+ //
5637
+ // --------------------------------------------------------------------------
5638
+ BottomSheetBaseComponent.prototype.destroy = function () {
5639
+ if (this.isDestroyed) {
5640
+ return;
5641
+ }
5642
+ _super.prototype.destroy.call(this);
5643
+ // Components will destroy automatically
5644
+ this.closeWindow = null;
5645
+ };
5646
+ return BottomSheetBaseComponent;
5647
+ }(BottomSheetImpl));
5648
+ // --------------------------------------------------------------------------
5649
+ //
5650
+ // Static Properties
5651
+ //
5652
+ // --------------------------------------------------------------------------
5653
+ BottomSheetBaseComponent.CLOSE_COMPONENT = BottomSheetCloseElementComponent;
5654
+
5370
5655
  var IWindowContent = /** @class */ (function (_super) {
5371
5656
  __extends(IWindowContent, _super);
5372
5657
  // --------------------------------------------------------------------------
@@ -5583,93 +5868,6 @@
5583
5868
  { type: language.LanguageService }
5584
5869
  ]; };
5585
5870
 
5586
- var WindowElement = /** @class */ (function (_super) {
5587
- __extends(WindowElement, _super);
5588
- // --------------------------------------------------------------------------
5589
- //
5590
- // Constructor
5591
- //
5592
- // --------------------------------------------------------------------------
5593
- function WindowElement(element) {
5594
- var _this = _super.call(this) || this;
5595
- _this.element = element;
5596
- return _this;
5597
- }
5598
- // --------------------------------------------------------------------------
5599
- //
5600
- // Private Methods
5601
- //
5602
- // --------------------------------------------------------------------------
5603
- WindowElement.prototype.checkWindowParent = function () {
5604
- var container = this.getContainer();
5605
- if (container) {
5606
- ViewUtil.appendChild(container, this.element.nativeElement);
5607
- }
5608
- };
5609
- WindowElement.prototype.getContainer = function () {
5610
- var item = ViewUtil.parseElement(this.element.nativeElement);
5611
- while (item && item.nodeName.toLowerCase() !== 'mat-dialog-container') {
5612
- item = item.parentElement;
5613
- }
5614
- return item;
5615
- };
5616
- WindowElement.prototype.createChildren = function () { };
5617
- WindowElement.prototype.destroyChildren = function () { };
5618
- WindowElement.prototype.commitWindowProperties = function () { };
5619
- // --------------------------------------------------------------------------
5620
- //
5621
- // Public Methods
5622
- //
5623
- // --------------------------------------------------------------------------
5624
- WindowElement.prototype.ngAfterViewInit = function () {
5625
- this.createChildren();
5626
- this.checkWindowParent();
5627
- };
5628
- WindowElement.prototype.destroy = function () {
5629
- if (this.isDestroyed) {
5630
- return;
5631
- }
5632
- _super.prototype.destroy.call(this);
5633
- this.destroyChildren();
5634
- this.element = null;
5635
- this.window = null;
5636
- };
5637
- Object.defineProperty(WindowElement.prototype, "nativeElement", {
5638
- // --------------------------------------------------------------------------
5639
- //
5640
- // Protected Properties
5641
- //
5642
- // --------------------------------------------------------------------------
5643
- get: function () {
5644
- return this.element ? this.element.nativeElement : null;
5645
- },
5646
- enumerable: false,
5647
- configurable: true
5648
- });
5649
- Object.defineProperty(WindowElement.prototype, "window", {
5650
- // --------------------------------------------------------------------------
5651
- //
5652
- // Public Properties
5653
- //
5654
- // --------------------------------------------------------------------------
5655
- get: function () {
5656
- return this._window;
5657
- },
5658
- set: function (value) {
5659
- if (value === this._window) {
5660
- return;
5661
- }
5662
- this._window = value;
5663
- if (this.window) {
5664
- this.commitWindowProperties();
5665
- }
5666
- },
5667
- enumerable: false,
5668
- configurable: true
5669
- });
5670
- return WindowElement;
5671
- }(common.DestroyableContainer));
5672
-
5673
5871
  var WindowCloseElementComponent = /** @class */ (function (_super) {
5674
5872
  __extends(WindowCloseElementComponent, _super);
5675
5873
  // --------------------------------------------------------------------------
@@ -6104,7 +6302,7 @@
6104
6302
  });
6105
6303
  Object.defineProperty(WindowBaseComponent.prototype, "blinkClass", {
6106
6304
  get: function () {
6107
- return 'blink';
6305
+ return 'vi-blink';
6108
6306
  },
6109
6307
  enumerable: false,
6110
6308
  configurable: true
@@ -6537,7 +6735,7 @@
6537
6735
  _this.dialog = dialog;
6538
6736
  _this.language = language;
6539
6737
  _this.observer = new rxjs.Subject();
6540
- _this.factory = new WindowFactory(BottomSheetImpl);
6738
+ _this.factory = new WindowFactory(BottomSheetBaseComponent);
6541
6739
  _this.questionComponent = WindowQuestionComponent;
6542
6740
  return _this;
6543
6741
  }
@@ -6619,9 +6817,8 @@
6619
6817
  { type: language.LanguageService }
6620
6818
  ]; };
6621
6819
 
6622
- // import { WindowQuestionComponent } from '../window/component/window-question/window-question.component';
6623
6820
  var IMPORTS = [common$1.CommonModule, forms.FormsModule, i1$1.MatBottomSheetModule, button.MatButtonModule, LanguageModule];
6624
- var ENTRY_COMPONENTS = [];
6821
+ var ENTRY_COMPONENTS = [BottomSheetCloseElementComponent];
6625
6822
  var DECLARATIONS = __spread(ENTRY_COMPONENTS);
6626
6823
  var EXPORTS = __spread(DECLARATIONS);
6627
6824
  var BottomSheetModule = /** @class */ (function () {
@@ -8314,7 +8511,7 @@
8314
8511
  CdkTablePaginableComponent.decorators = [
8315
8512
  { type: i0.Component, args: [{
8316
8513
  selector: 'vi-cdk-table-paginable',
8317
- template: "<mat-table\n class=\"flex-grow-1 vertical-scroll-only\"\n matSort\n [dataSource]=\"table?.table?.dataSource\"\n [trackBy]=\"table.trackByFn\"\n [matSortActive]=\"sortActive\"\n [matSortDirection]=\"sortDirection\"\n [class.mat-nav-list]=\"settings?.isInteractive\"\n (matSortChange)=\"table.sortEventHandler($event)\"\n>\n <ng-container *ngFor=\"let column of columns; trackBy: columnTrackBy\">\n <ng-container [matColumnDef]=\"column.name\">\n <mat-header-cell\n class=\"px-2\"\n mat-sort-header\n [disableClear]=\"true\"\n [disabled]=\"column.isDisableSort\"\n [ngClass]=\"column.headerClassName\"\n *matHeaderCellDef\n >\n <span [innerHTML]=\"column.headerId | viTranslate\"></span>\n </mat-header-cell>\n\n <mat-cell\n class=\"px-2\"\n (click)=\"cellClickHandler(row, column)\"\n *matCellDef=\"let row\"\n [ngClass]=\"row | viCdkTableColumnClassName: column\"\n [ngStyle]=\"row | viCdkTableColumnStyleName: column\"\n >\n <span [ngClass]=\"column | viCdkTableCellClassName\" [vi-html-content-title]=\"row | viCdkTableColumnValue: column\"></span>\n </mat-cell>\n </ng-container>\n </ng-container>\n\n <mat-header-row *matHeaderRowDef=\"columnNames\"></mat-header-row>\n\n <mat-row\n class=\"mat-list-item\"\n *matRowDef=\"let row; columns: columnNames\"\n [ngClass]=\"row | viCdkTableRowClassName: rows:selectedRows\"\n [ngStyle]=\"row | viCdkTableRowStyleName: rows:selectedRows\"\n (click)=\"rowClicked.emit(row)\"\n ></mat-row>\n</mat-table>\n\n<p class=\"p-3 flex-shrink-0 text-center mouse-inactive\" *ngIf=\"table?.length === 0\" [innerHTML]=\"settings?.noDataId | viTranslate\"></p>\n\n<mat-progress-bar class=\"flex-shrink-0 border transparent\" mode=\"indeterminate\" *ngIf=\"table?.isLoading\" style=\"margin-bottom: -1px\"></mat-progress-bar>\n\n<div class=\"paginator-container d-flex border-sm-top align-items-center justify-content-end flex-shrink-0\">\n <ng-content></ng-content>\n <mat-paginator\n class=\"flex-shrink-0\"\n [pageSize]=\"table?.pageSize\"\n [pageIndex]=\"table?.pageIndex\"\n [length]=\"table?.total\"\n (page)=\"table?.pageEventHandler($event)\"\n [pageSizeOptions]=\"paginator?.pageSizes\"\n [showFirstLastButtons]=\"paginator?.showFirstLastButtons\"\n [hidePageSize]=\"paginator?.hidePageSize\"\n *ngIf=\"paginator && table?.length > 0\"\n ></mat-paginator>\n</div>\n"
8514
+ template: "<mat-table\n class=\"flex-grow-1 vertical-scroll-only\"\n matSort\n [dataSource]=\"table?.table?.dataSource\"\n [trackBy]=\"table.trackByFn\"\n [matSortActive]=\"sortActive\"\n [matSortDirection]=\"sortDirection\"\n [class.mat-nav-list]=\"settings?.isInteractive\"\n (matSortChange)=\"table.sortEventHandler($event)\"\n>\n <ng-container *ngFor=\"let column of columns; trackBy: columnTrackBy\">\n <ng-container [matColumnDef]=\"column.name\">\n <mat-header-cell\n class=\"px-2\"\n mat-sort-header\n [disableClear]=\"true\"\n [disabled]=\"column.isDisableSort\"\n [ngClass]=\"column.headerClassName\"\n *matHeaderCellDef\n >\n <span [innerHTML]=\"column.headerId | viTranslate\"></span>\n </mat-header-cell>\n\n <mat-cell\n class=\"px-2\"\n (click)=\"cellClickHandler(row, column)\"\n *matCellDef=\"let row\"\n [ngClass]=\"row | viCdkTableColumnClassName: column\"\n [ngStyle]=\"row | viCdkTableColumnStyleName: column\"\n >\n <span [ngClass]=\"column | viCdkTableCellClassName\" [vi-html-content-title]=\"row | viCdkTableColumnValue: column\"></span>\n </mat-cell>\n </ng-container>\n </ng-container>\n\n <mat-header-row *matHeaderRowDef=\"columnNames\"></mat-header-row>\n\n <mat-row\n class=\"mat-list-item\"\n *matRowDef=\"let row; columns: columnNames\"\n [ngClass]=\"row | viCdkTableRowClassName: rows:selectedRows\"\n [ngStyle]=\"row | viCdkTableRowStyleName: rows:selectedRows\"\n (click)=\"rowClicked.emit(row)\"\n ></mat-row>\n\n <p class=\"p-3 flex-shrink-0 text-center mouse-inactive\" [vi-translate]=\"settings?.noDataId\" *matNoDataRow></p>\n \n</mat-table>\n\n<!--\n<p class=\"p-3 flex-shrink-0 text-center mouse-inactive\" *ngIf=\"table?.length === 0\" [innerHTML]=\"settings?.noDataId | viTranslate\"></p>\n-->\n\n<mat-progress-bar class=\"flex-shrink-0 border\" [mode]=\"table?.isLoading ? 'indeterminate' : 'determinate'\"></mat-progress-bar>\n\n<div class=\"paginator-container d-flex align-items-center justify-content-end flex-shrink-0\">\n <ng-content></ng-content>\n <mat-paginator\n class=\"flex-shrink-0\"\n [pageSize]=\"table?.pageSize\"\n [pageIndex]=\"table?.pageIndex\"\n [length]=\"table?.total\"\n (page)=\"table?.pageEventHandler($event)\"\n [pageSizeOptions]=\"paginator?.pageSizes\"\n [showFirstLastButtons]=\"paginator?.showFirstLastButtons\"\n [hidePageSize]=\"paginator?.hidePageSize\"\n *ngIf=\"paginator && table?.length > 0\"\n ></mat-paginator>\n</div>\n"
8318
8515
  },] }
8319
8516
  ];
8320
8517
  CdkTablePaginableComponent.ctorParameters = function () { return [
@@ -8341,7 +8538,7 @@
8341
8538
  CdkTableFilterableComponent.decorators = [
8342
8539
  { type: i0.Component, args: [{
8343
8540
  selector: 'vi-cdk-table-filterable',
8344
- template: "<mat-table class=\"flex-grow-1 vertical-scroll-only\" matSort [dataSource]=\"table?.table?.dataSource\" [matSortActive]=\"sortActive\" [matSortDirection]=\"sortDirection\"\n [class.mat-nav-list]=\"settings?.isInteractive\" (matSortChange)=\"table.sortEventHandler($event)\">\n \n <ng-container *ngFor=\"let column of columns;trackBy:columnTrackBy\">\n <ng-container [matColumnDef]=\"column.name\">\n <mat-header-cell class=\"px-2\" mat-sort-header [disableClear]=\"true\" [disabled]=\"column.isDisableSort\" [ngClass]=\"column.headerClassName\" \n *matHeaderCellDef>\n <span [innerHTML]=\"column.headerId | viTranslate\"></span>\n </mat-header-cell>\n <mat-cell class=\"px-2\" (click)=\"cellClickHandler(row, column)\" *matCellDef=\"let row\" \n [ngClass]=\"row | viCdkTableColumnClassName: column\" [ngStyle]=\"row | viCdkTableColumnStyleName: column\" >\n <span [ngClass]=\"column | viCdkTableCellClassName\" [vi-html-content-title]=\"row | viCdkTableColumnValue: column\"></span>\n </mat-cell>\n </ng-container>\n </ng-container>\n\n <mat-header-row *matHeaderRowDef=\"columnNames\"></mat-header-row>\n\n <mat-row class=\"mat-list-item\" *matRowDef=\"let row; columns: columnNames\"\n [ngClass]=\"row | viCdkTableRowClassName: rows : selectedRows\" [ngStyle]=\"row | viCdkTableRowStyleName: rows : selectedRows\"\n (click)=\"rowClicked.emit(row)\"></mat-row>\n\n</mat-table>\n\n<p class=\"p-3 flex-shrink-0 text-center mouse-inactive\" *ngIf=\"!table?.isLoading && table?.length === 0\" [innerHTML]=\"settings?.noDataId | viTranslate\"></p>\n\n<mat-progress-bar class=\"flex-shrink-0 border transparent\" mode=\"indeterminate\" *ngIf=\"table?.isLoading\"\n style=\"margin-bottom: -1px;\"></mat-progress-bar>\n"
8541
+ template: "<mat-table\n class=\"flex-grow-1 vertical-scroll-only\"\n matSort\n [dataSource]=\"table?.table?.dataSource\"\n [matSortActive]=\"sortActive\"\n [matSortDirection]=\"sortDirection\"\n [class.mat-nav-list]=\"settings?.isInteractive\"\n (matSortChange)=\"table.sortEventHandler($event)\"\n>\n <ng-container *ngFor=\"let column of columns; trackBy: columnTrackBy\">\n <ng-container [matColumnDef]=\"column.name\">\n <mat-header-cell\n class=\"px-2\"\n mat-sort-header\n [disableClear]=\"true\"\n [disabled]=\"column.isDisableSort\"\n [ngClass]=\"column.headerClassName\"\n *matHeaderCellDef\n >\n <span [innerHTML]=\"column.headerId | viTranslate\"></span>\n </mat-header-cell>\n <mat-cell\n class=\"px-2\"\n (click)=\"cellClickHandler(row, column)\"\n *matCellDef=\"let row\"\n [ngClass]=\"row | viCdkTableColumnClassName: column\"\n [ngStyle]=\"row | viCdkTableColumnStyleName: column\"\n >\n <span [ngClass]=\"column | viCdkTableCellClassName\" [vi-html-content-title]=\"row | viCdkTableColumnValue: column\"></span>\n </mat-cell>\n </ng-container>\n </ng-container>\n\n <mat-header-row *matHeaderRowDef=\"columnNames\"></mat-header-row>\n\n <mat-row\n class=\"mat-list-item\"\n *matRowDef=\"let row; columns: columnNames\"\n [ngClass]=\"row | viCdkTableRowClassName: rows:selectedRows\"\n [ngStyle]=\"row | viCdkTableRowStyleName: rows:selectedRows\"\n (click)=\"rowClicked.emit(row)\"\n ></mat-row>\n\n <p class=\"p-3 flex-shrink-0 text-center mouse-inactive\" [vi-translate]=\"settings?.noDataId\" *matNoDataRow></p>\n</mat-table>\n\n<mat-progress-bar class=\"flex-shrink-0 border transparent\" [mode]=\"table?.isLoading ? 'indeterminate' : 'determinate'\"></mat-progress-bar>\n"
8345
8542
  },] }
8346
8543
  ];
8347
8544
  CdkTableFilterableComponent.ctorParameters = function () { return [
@@ -10230,10 +10427,10 @@
10230
10427
  _this.status = common.LoadableStatus.LOADING;
10231
10428
  }
10232
10429
  else if (event instanceof router.NavigationEnd || event instanceof router.NavigationCancel || event instanceof router.NavigationError) {
10233
- _this.status = common.LoadableStatus.LOADED;
10234
10430
  if (event instanceof router.NavigationEnd) {
10235
10431
  _this._lastUrl = event.url;
10236
10432
  }
10433
+ _this.status = common.LoadableStatus.LOADED;
10237
10434
  }
10238
10435
  });
10239
10436
  };
@@ -10271,7 +10468,7 @@
10271
10468
  this.isNeedUpdateExtras = false;
10272
10469
  this.applyExtras(this.extrasToApply);
10273
10470
  }
10274
- this.observer.next(new observer.ObservableData(common.LoadableEvent.COMPLETE));
10471
+ this.observer.next(new observer.ObservableData(common.LoadableEvent.COMPLETE, { url: this.url, lastUrl: this.lastUrl }));
10275
10472
  break;
10276
10473
  }
10277
10474
  if (newStatus === common.LoadableStatus.LOADED || newStatus === common.LoadableStatus.ERROR) {
@@ -10431,6 +10628,13 @@
10431
10628
  enumerable: false,
10432
10629
  configurable: true
10433
10630
  });
10631
+ Object.defineProperty(RouterBaseService.prototype, "lastUrlTree", {
10632
+ get: function () {
10633
+ return this.router.parseUrl(this.lastUrl);
10634
+ },
10635
+ enumerable: false,
10636
+ configurable: true
10637
+ });
10434
10638
  Object.defineProperty(RouterBaseService.prototype, "router", {
10435
10639
  get: function () {
10436
10640
  return this._router;
@@ -10728,15 +10932,16 @@
10728
10932
  exports.ɵk = NotificationComponent;
10729
10933
  exports.ɵl = NotificationQuestionBaseComponent;
10730
10934
  exports.ɵm = BottomSheetModule;
10731
- exports.ɵn = CdkTableColumnValuePipe;
10732
- exports.ɵo = CdkTableColumnClassNamePipe;
10733
- exports.ɵp = CdkTableColumnStyleNamePipe;
10734
- exports.ɵq = CdkTableRowStyleNamePipe;
10735
- exports.ɵr = CdkTableRowClassNamePipe;
10736
- exports.ɵs = CdkTableCellClassNamePipe;
10737
- exports.ɵt = CdkTablePaginableComponent;
10738
- exports.ɵu = CdkTableFilterableComponent;
10739
- exports.ɵv = ValueAccessor;
10935
+ exports.ɵn = BottomSheetCloseElementComponent;
10936
+ exports.ɵo = CdkTableColumnValuePipe;
10937
+ exports.ɵp = CdkTableColumnClassNamePipe;
10938
+ exports.ɵq = CdkTableColumnStyleNamePipe;
10939
+ exports.ɵr = CdkTableRowStyleNamePipe;
10940
+ exports.ɵs = CdkTableRowClassNamePipe;
10941
+ exports.ɵt = CdkTableCellClassNamePipe;
10942
+ exports.ɵu = CdkTablePaginableComponent;
10943
+ exports.ɵv = CdkTableFilterableComponent;
10944
+ exports.ɵw = ValueAccessor;
10740
10945
 
10741
10946
  Object.defineProperty(exports, '__esModule', { value: true });
10742
10947