barsa-novin-ray-core 1.0.267 → 1.0.270

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 (44) hide show
  1. package/esm2020/lib/barsa-novin-ray-core.module.mjs +15 -9
  2. package/esm2020/lib/constants.mjs +4 -1
  3. package/esm2020/lib/directives/attr-rtl.directive.mjs +2 -2
  4. package/esm2020/lib/directives/base.directive.mjs +8 -4
  5. package/esm2020/lib/directives/column-resizer.directive.mjs +5 -5
  6. package/esm2020/lib/directives/copy.directive.mjs +58 -0
  7. package/esm2020/lib/directives/ellipsify.directive.mjs +6 -6
  8. package/esm2020/lib/directives/img-lazy.directive.mjs +5 -5
  9. package/esm2020/lib/directives/index.mjs +2 -1
  10. package/esm2020/lib/directives/items-renderer.directive.mjs +5 -5
  11. package/esm2020/lib/directives/render-ulv-paging.directive.mjs +6 -5
  12. package/esm2020/lib/directives/render-ulv-viewer.directive.mjs +6 -5
  13. package/esm2020/lib/directives/table-resizer.directive.mjs +9 -9
  14. package/esm2020/lib/directives/ulv-command.directive.mjs +4 -4
  15. package/esm2020/lib/directives/until-inview.directive.mjs +6 -5
  16. package/esm2020/lib/injdection-tokens.mjs +2 -1
  17. package/esm2020/lib/pipes/index.mjs +2 -1
  18. package/esm2020/lib/pipes/reverse.pipe.mjs +22 -0
  19. package/esm2020/lib/services/toast.service.mjs +2 -0
  20. package/esm2020/lib/services/ulvmain.service.mjs +2 -2
  21. package/fesm2015/barsa-novin-ray-core.mjs +145 -52
  22. package/fesm2015/barsa-novin-ray-core.mjs.map +1 -1
  23. package/fesm2020/barsa-novin-ray-core.mjs +143 -52
  24. package/fesm2020/barsa-novin-ray-core.mjs.map +1 -1
  25. package/lib/barsa-novin-ray-core.module.d.ts +23 -21
  26. package/lib/constants.d.ts +1 -0
  27. package/lib/directives/attr-rtl.directive.d.ts +1 -1
  28. package/lib/directives/base.directive.d.ts +6 -1
  29. package/lib/directives/column-resizer.directive.d.ts +2 -2
  30. package/lib/directives/copy.directive.d.ts +19 -0
  31. package/lib/directives/ellipsify.directive.d.ts +2 -2
  32. package/lib/directives/img-lazy.directive.d.ts +2 -2
  33. package/lib/directives/index.d.ts +1 -0
  34. package/lib/directives/items-renderer.directive.d.ts +2 -2
  35. package/lib/directives/render-ulv-paging.directive.d.ts +3 -2
  36. package/lib/directives/render-ulv-viewer.directive.d.ts +3 -2
  37. package/lib/directives/table-resizer.directive.d.ts +2 -2
  38. package/lib/directives/ulv-command.directive.d.ts +0 -1
  39. package/lib/directives/until-inview.directive.d.ts +2 -1
  40. package/lib/injdection-tokens.d.ts +2 -0
  41. package/lib/pipes/index.d.ts +1 -0
  42. package/lib/pipes/reverse.pipe.d.ts +7 -0
  43. package/lib/services/toast.service.d.ts +3 -0
  44. package/package.json +1 -1
@@ -136,6 +136,7 @@ const APP_VERSION = new InjectionToken('AppVersion');
136
136
  const DIALOG_SERVICE = new InjectionToken('DIALOG_SERVICE');
137
137
  const FORM_DIALOG_COMPONENT = new InjectionToken('FORM_DIALOG_COMPONENT');
138
138
  const NOTIFICATAION_POPUP_SERVER = new InjectionToken('NOTIFICATAION_POPUP_SERVER');
139
+ const TOAST_SERVICE = new InjectionToken('TOAST_SERVICE');
139
140
  const NOTIFICATION_WEBWORKER_FACTORY = new InjectionToken('notificaion-worker');
140
141
 
141
142
  class ApiService {
@@ -1682,6 +1683,9 @@ function getDateService(logService, culture) {
1682
1683
  return new DateMiladiService(logService);
1683
1684
  }
1684
1685
  }
1686
+ function isFirefox() {
1687
+ return navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
1688
+ }
1685
1689
  function getImagePath(type, moId, fileId, fieldDefId, size, sizeH) {
1686
1690
  moId = moId == null ? '' : encodeURIComponent(moId);
1687
1691
  fileId = fileId == null ? '' : encodeURIComponent(fileId);
@@ -4147,6 +4151,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
4147
4151
  }]
4148
4152
  }] });
4149
4153
 
4154
+ class ReversePipe {
4155
+ transform(value, doReverse = true) {
4156
+ if (!doReverse) {
4157
+ return value;
4158
+ }
4159
+ if (!value) {
4160
+ return [];
4161
+ }
4162
+ return value.reverse();
4163
+ }
4164
+ }
4165
+ ReversePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ReversePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
4166
+ ReversePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: ReversePipe, name: "reverse" });
4167
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ReversePipe, decorators: [{
4168
+ type: Pipe,
4169
+ args: [{
4170
+ name: 'reverse'
4171
+ }]
4172
+ }] });
4173
+
4150
4174
  class UlvMainService {
4151
4175
  constructor(_bbbPipe, _apiService) {
4152
4176
  this._bbbPipe = _bbbPipe;
@@ -4205,7 +4229,7 @@ class UlvMainService {
4205
4229
  this.visible$ = this._visibleSource.asObservable().pipe(takeUntil(this._onDestroy$));
4206
4230
  this.enable$ = this._enableSource.asObservable().pipe(takeUntil(this._onDestroy$));
4207
4231
  this.readonly$ = this._readonlySource.asObservable().pipe(takeUntil(this._onDestroy$));
4208
- this.menuItems$ = this._menuItemsSource.asObservable().pipe(takeUntil(this._onDestroy$), map((items) => items.filter((c) => c.itemId !== 'ExportToExcel')));
4232
+ this.menuItems$ = this._menuItemsSource.asObservable().pipe(takeUntil(this._onDestroy$), map((items) => items.filter((c) => c.itemId !== 'ExportToExcel' && c.itemId !== 'Delete')));
4209
4233
  this.title$ = this._titleSource.asObservable().pipe(takeUntil(this._onDestroy$));
4210
4234
  this.formPanelControlShowWindow$ = this._formPanelControlShowWindowSource
4211
4235
  .asObservable()
@@ -8920,7 +8944,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
8920
8944
  }] } });
8921
8945
 
8922
8946
  class BaseDirective {
8923
- constructor() {
8947
+ /**
8948
+ *
8949
+ */
8950
+ constructor(_el) {
8951
+ this._el = _el;
8924
8952
  this._onDestroy$ = new Subject();
8925
8953
  }
8926
8954
  ngAfterContentInit() {
@@ -8965,15 +8993,15 @@ class BaseDirective {
8965
8993
  console.log(this);
8966
8994
  }
8967
8995
  }
8968
- BaseDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BaseDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8996
+ BaseDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BaseDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
8969
8997
  BaseDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: BaseDirective, usesOnChanges: true, ngImport: i0 });
8970
8998
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BaseDirective, decorators: [{
8971
8999
  type: Directive
8972
- }] });
9000
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
8973
9001
 
8974
9002
  class AttrRtlDirective extends BaseDirective {
8975
9003
  constructor(_renderer2, _el, _portalService) {
8976
- super();
9004
+ super(_el);
8977
9005
  this._renderer2 = _renderer2;
8978
9006
  this._el = _el;
8979
9007
  const rtl = this.rtl;
@@ -9002,9 +9030,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
9002
9030
  }] } });
9003
9031
 
9004
9032
  class ColumnResizerDirective extends BaseDirective {
9005
- constructor(el, renderer) {
9006
- super();
9007
- this.el = el;
9033
+ constructor(_el, renderer) {
9034
+ super(_el);
9035
+ this._el = _el;
9008
9036
  this.renderer = renderer;
9009
9037
  }
9010
9038
  ngOnInit() {
@@ -9014,7 +9042,7 @@ class ColumnResizerDirective extends BaseDirective {
9014
9042
  }
9015
9043
  }
9016
9044
  _addColumnsResizer() {
9017
- const cell = this.el.nativeElement;
9045
+ const cell = this._el.nativeElement;
9018
9046
  if (cell.hasAttribute('NoResizable')) {
9019
9047
  return;
9020
9048
  }
@@ -9077,9 +9105,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
9077
9105
  }] } });
9078
9106
 
9079
9107
  class EllipsifyDirective extends BaseDirective {
9080
- constructor(el, renderer) {
9081
- super();
9082
- this.el = el;
9108
+ constructor(_el, renderer) {
9109
+ super(_el);
9110
+ this._el = _el;
9083
9111
  this.renderer = renderer;
9084
9112
  }
9085
9113
  moseMove(e) {
@@ -9090,7 +9118,7 @@ class EllipsifyDirective extends BaseDirective {
9090
9118
  ngAfterViewInit() {
9091
9119
  super.ngAfterViewInit();
9092
9120
  setTimeout(() => {
9093
- this.childes = this.el.nativeElement.querySelectorAll('span, h5, p');
9121
+ this.childes = this._el.nativeElement.querySelectorAll('span, h5, p');
9094
9122
  this._initStyle();
9095
9123
  this._handleNoEllipsis();
9096
9124
  this._heightChange();
@@ -9120,7 +9148,7 @@ class EllipsifyDirective extends BaseDirective {
9120
9148
  });
9121
9149
  }
9122
9150
  _handleNoEllipsis() {
9123
- const noEllipsisEls = this.el.nativeElement.querySelectorAll('[ellipsis=no-ellipsis]');
9151
+ const noEllipsisEls = this._el.nativeElement.querySelectorAll('[ellipsis=no-ellipsis]');
9124
9152
  noEllipsisEls.forEach((el) => {
9125
9153
  const all = el.querySelectorAll('span, h5, p');
9126
9154
  all.forEach((el2) => {
@@ -9161,15 +9189,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
9161
9189
  }] } });
9162
9190
 
9163
9191
  class ImageLazyDirective extends BaseDirective {
9164
- constructor(elementRef, portalService) {
9165
- super();
9166
- this.elementRef = elementRef;
9192
+ constructor(_el, portalService) {
9193
+ super(_el);
9194
+ this._el = _el;
9167
9195
  this.portalService = portalService;
9168
9196
  this.auto = true;
9169
9197
  this.threshold = 20;
9170
9198
  this.imageLoaded = new EventEmitter();
9171
9199
  this._imageViewed$ = new Subject();
9172
- this._imgEl = this.elementRef.nativeElement;
9200
+ this._imgEl = this._el.nativeElement;
9173
9201
  }
9174
9202
  ngOnInit() {
9175
9203
  super.ngOnInit();
@@ -9335,9 +9363,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
9335
9363
  }] } });
9336
9364
 
9337
9365
  class ItemsRendererDirective extends BaseDirective {
9338
- constructor(el) {
9339
- super();
9340
- this.el = el;
9366
+ constructor(_el) {
9367
+ super(_el);
9368
+ this._el = _el;
9341
9369
  this.itemClick = new EventEmitter();
9342
9370
  this.handleClick = false;
9343
9371
  }
@@ -9367,7 +9395,7 @@ class ItemsRendererDirective extends BaseDirective {
9367
9395
  itemComponentElement.allColumns = this.itemsRenderer.allColumns;
9368
9396
  fragmentDoc.appendChild(itemComponentElement);
9369
9397
  });
9370
- this.el.nativeElement.appendChild(fragmentDoc);
9398
+ this._el.nativeElement.appendChild(fragmentDoc);
9371
9399
  this._fragmentDoc = fragmentDoc;
9372
9400
  }
9373
9401
  }
@@ -9428,12 +9456,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
9428
9456
  }] } });
9429
9457
 
9430
9458
  class RenderUlvViewerDirective extends BaseDirective {
9431
- constructor(_injector, _portalService, _vcr, _cdr) {
9432
- super();
9459
+ constructor(_injector, _portalService, _vcr, _cdr, _el) {
9460
+ super(_el);
9433
9461
  this._injector = _injector;
9434
9462
  this._portalService = _portalService;
9435
9463
  this._vcr = _vcr;
9436
9464
  this._cdr = _cdr;
9465
+ this._el = _el;
9437
9466
  }
9438
9467
  ngAfterViewInit() {
9439
9468
  super.ngAfterViewInit();
@@ -9466,14 +9495,14 @@ class RenderUlvViewerDirective extends BaseDirective {
9466
9495
  }
9467
9496
  }
9468
9497
  }
9469
- RenderUlvViewerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: RenderUlvViewerDirective, deps: [{ token: i0.Injector }, { token: PortalService }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
9498
+ RenderUlvViewerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: RenderUlvViewerDirective, deps: [{ token: i0.Injector }, { token: PortalService }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
9470
9499
  RenderUlvViewerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: RenderUlvViewerDirective, selector: "[renderUlvViewer]", inputs: { mask: "mask", viewer: ["renderUlvViewer", "viewer"] }, usesInheritance: true, ngImport: i0 });
9471
9500
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: RenderUlvViewerDirective, decorators: [{
9472
9501
  type: Directive,
9473
9502
  args: [{
9474
9503
  selector: '[renderUlvViewer]'
9475
9504
  }]
9476
- }], ctorParameters: function () { return [{ type: i0.Injector }, { type: PortalService }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { mask: [{
9505
+ }], ctorParameters: function () { return [{ type: i0.Injector }, { type: PortalService }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { mask: [{
9477
9506
  type: Input
9478
9507
  }], viewer: [{
9479
9508
  type: Input,
@@ -9481,12 +9510,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
9481
9510
  }] } });
9482
9511
 
9483
9512
  class RenderUlvPaginDirective extends BaseDirective {
9484
- constructor(_injector, _portalService, _vcr, _cdr) {
9485
- super();
9513
+ constructor(_injector, _portalService, _vcr, _cdr, _el) {
9514
+ super(_el);
9486
9515
  this._injector = _injector;
9487
9516
  this._portalService = _portalService;
9488
9517
  this._vcr = _vcr;
9489
9518
  this._cdr = _cdr;
9519
+ this._el = _el;
9490
9520
  }
9491
9521
  ngOnInit() {
9492
9522
  const _super = Object.create(null, {
@@ -9524,14 +9554,14 @@ class RenderUlvPaginDirective extends BaseDirective {
9524
9554
  });
9525
9555
  }
9526
9556
  }
9527
- RenderUlvPaginDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: RenderUlvPaginDirective, deps: [{ token: i0.Injector }, { token: PortalService }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
9557
+ RenderUlvPaginDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: RenderUlvPaginDirective, deps: [{ token: i0.Injector }, { token: PortalService }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
9528
9558
  RenderUlvPaginDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: RenderUlvPaginDirective, selector: "[renderUlvPaging]", inputs: { mask: "mask", context: ["renderUlvPaging", "context"] }, usesInheritance: true, ngImport: i0 });
9529
9559
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: RenderUlvPaginDirective, decorators: [{
9530
9560
  type: Directive,
9531
9561
  args: [{
9532
9562
  selector: '[renderUlvPaging]'
9533
9563
  }]
9534
- }], ctorParameters: function () { return [{ type: i0.Injector }, { type: PortalService }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { mask: [{
9564
+ }], ctorParameters: function () { return [{ type: i0.Injector }, { type: PortalService }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { mask: [{
9535
9565
  type: Input
9536
9566
  }], context: [{
9537
9567
  type: Input,
@@ -9539,9 +9569,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
9539
9569
  }] } });
9540
9570
 
9541
9571
  class TableResizerDirective extends BaseDirective {
9542
- constructor(el, renderer) {
9543
- super();
9544
- this.el = el;
9572
+ constructor(_el, renderer) {
9573
+ super(_el);
9574
+ this._el = _el;
9545
9575
  this.renderer = renderer;
9546
9576
  this.columnResized = new EventEmitter();
9547
9577
  fromEvent(document, 'mouseup')
@@ -9556,7 +9586,7 @@ class TableResizerDirective extends BaseDirective {
9556
9586
  });
9557
9587
  }
9558
9588
  get _table() {
9559
- return this.el.nativeElement;
9589
+ return this._el.nativeElement;
9560
9590
  }
9561
9591
  moseDown(e) {
9562
9592
  this._mouseDown(e);
@@ -9697,11 +9727,11 @@ class TableResizerDirective extends BaseDirective {
9697
9727
  _mouseDown(e) {
9698
9728
  if (e.srcElement.className === 'row-resizer') {
9699
9729
  this._resizeRow(e);
9700
- this.renderer.setStyle(this.el.nativeElement, 'cursor', 'row-resize');
9730
+ this.renderer.setStyle(this._el.nativeElement, 'cursor', 'row-resize');
9701
9731
  }
9702
9732
  else if (e.srcElement.className === 'column-resizer') {
9703
9733
  this._resizeColumn(e);
9704
- this.renderer.setStyle(this.el.nativeElement, 'cursor', 'col-resize');
9734
+ this.renderer.setStyle(this._el.nativeElement, 'cursor', 'col-resize');
9705
9735
  }
9706
9736
  }
9707
9737
  _mouseMove(e) {
@@ -9727,7 +9757,7 @@ class TableResizerDirective extends BaseDirective {
9727
9757
  _mouseUp() {
9728
9758
  var _a;
9729
9759
  if (this._currentResizer) {
9730
- const table = this.el.nativeElement;
9760
+ const table = this._el.nativeElement;
9731
9761
  const headers = table.querySelectorAll('th');
9732
9762
  const columnResized = [];
9733
9763
  for (let i = 0; i < headers.length; i++) {
@@ -9740,7 +9770,7 @@ class TableResizerDirective extends BaseDirective {
9740
9770
  this.columnResized.emit(columnResized);
9741
9771
  }
9742
9772
  this._currentResizer = null;
9743
- this.renderer.setStyle(this.el.nativeElement, 'cursor', 'default');
9773
+ this.renderer.setStyle(this._el.nativeElement, 'cursor', 'default');
9744
9774
  }
9745
9775
  }
9746
9776
  TableResizerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableResizerDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
@@ -9774,7 +9804,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
9774
9804
 
9775
9805
  class UlvCommandDirective extends BaseDirective {
9776
9806
  constructor() {
9777
- super();
9807
+ super(...arguments);
9778
9808
  this.commandClick = new EventEmitter();
9779
9809
  }
9780
9810
  onClick(event) {
@@ -9794,14 +9824,14 @@ class UlvCommandDirective extends BaseDirective {
9794
9824
  return false;
9795
9825
  }
9796
9826
  }
9797
- UlvCommandDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UlvCommandDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
9827
+ UlvCommandDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UlvCommandDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
9798
9828
  UlvCommandDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: UlvCommandDirective, selector: "[ulvCommandHandler]", inputs: { ulvCommandHandler: "ulvCommandHandler" }, outputs: { commandClick: "commandClick" }, host: { listeners: { "click": "onClick($event)" } }, usesInheritance: true, ngImport: i0 });
9799
9829
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UlvCommandDirective, decorators: [{
9800
9830
  type: Directive,
9801
9831
  args: [{
9802
9832
  selector: '[ulvCommandHandler]'
9803
9833
  }]
9804
- }], ctorParameters: function () { return []; }, propDecorators: { ulvCommandHandler: [{
9834
+ }], propDecorators: { ulvCommandHandler: [{
9805
9835
  type: Input
9806
9836
  }], commandClick: [{
9807
9837
  type: Output
@@ -9811,11 +9841,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
9811
9841
  }] } });
9812
9842
 
9813
9843
  class UntilInViewDirective extends BaseDirective {
9814
- constructor(_templateRef, _vcr, _cdr) {
9815
- super();
9844
+ constructor(_templateRef, _vcr, _cdr, _el) {
9845
+ super(_el);
9816
9846
  this._templateRef = _templateRef;
9817
9847
  this._vcr = _vcr;
9818
9848
  this._cdr = _cdr;
9849
+ this._el = _el;
9819
9850
  this.intersectionDebounce = 100;
9820
9851
  this.viewed$ = new Subject();
9821
9852
  }
@@ -9842,14 +9873,14 @@ class UntilInViewDirective extends BaseDirective {
9842
9873
  this._onDestroy$.next();
9843
9874
  }
9844
9875
  }
9845
- UntilInViewDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UntilInViewDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
9876
+ UntilInViewDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UntilInViewDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
9846
9877
  UntilInViewDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: UntilInViewDirective, selector: "[untilInView]", inputs: { untilInView: "untilInView", intersectionDebounce: "intersectionDebounce" }, usesInheritance: true, ngImport: i0 });
9847
9878
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UntilInViewDirective, decorators: [{
9848
9879
  type: Directive,
9849
9880
  args: [{
9850
9881
  selector: '[untilInView]'
9851
9882
  }]
9852
- }], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { untilInView: [{
9883
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { untilInView: [{
9853
9884
  type: Input
9854
9885
  }], intersectionDebounce: [{
9855
9886
  type: Input
@@ -9912,6 +9943,62 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
9912
9943
  args: ['click', ['$event']]
9913
9944
  }] } });
9914
9945
 
9946
+ class CopyDirective extends BaseDirective {
9947
+ /**
9948
+ *
9949
+ */
9950
+ constructor(_toastService, _el, _renderer2) {
9951
+ super(_el);
9952
+ this._toastService = _toastService;
9953
+ this._el = _el;
9954
+ this._renderer2 = _renderer2;
9955
+ if (!navigator.clipboard) {
9956
+ this._renderer2.addClass(this._el.nativeElement, 'hide');
9957
+ }
9958
+ }
9959
+ doCopy() {
9960
+ const inputEl = this._inputEl;
9961
+ inputEl.value = this.copy;
9962
+ const copyText = inputEl;
9963
+ /* Select the text field */
9964
+ copyText.select();
9965
+ copyText.setSelectionRange(0, inputEl.value.length); /* For mobile devices */
9966
+ /* Copy the text inside the text field */
9967
+ navigator.clipboard.writeText(copyText.value);
9968
+ if (this._toastService) {
9969
+ this._toastService.open(` ${this.copy} copied. `, { duration: 5000 });
9970
+ }
9971
+ }
9972
+ ngOnInit() {
9973
+ super.ngOnInit();
9974
+ const dom = this._el.nativeElement;
9975
+ const inputEl = document.createElement('input');
9976
+ inputEl.style.display = 'none';
9977
+ dom.appendChild(inputEl);
9978
+ this._inputEl = inputEl;
9979
+ }
9980
+ }
9981
+ CopyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CopyDirective, deps: [{ token: TOAST_SERVICE, optional: true }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
9982
+ CopyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: CopyDirective, selector: "[copy]", inputs: { copy: "copy" }, host: { listeners: { "click": "doCopy()" } }, usesInheritance: true, ngImport: i0 });
9983
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CopyDirective, decorators: [{
9984
+ type: Directive,
9985
+ args: [{
9986
+ selector: '[copy]'
9987
+ }]
9988
+ }], ctorParameters: function () {
9989
+ return [{ type: undefined, decorators: [{
9990
+ type: Optional
9991
+ }, {
9992
+ type: Inject,
9993
+ args: [TOAST_SERVICE]
9994
+ }] }, { type: i0.ElementRef }, { type: i0.Renderer2 }];
9995
+ }, propDecorators: { copy: [{
9996
+ type: Input
9997
+ }], doCopy: [{
9998
+ type: HostListener,
9999
+ args: ['click']
10000
+ }] } });
10001
+
9915
10002
  class PortalDynamicPageResolver {
9916
10003
  constructor(portalService) {
9917
10004
  this.portalService = portalService;
@@ -10650,7 +10737,8 @@ const directives = [
10650
10737
  EllipsifyDirective,
10651
10738
  TableResizerDirective,
10652
10739
  ColumnResizerDirective,
10653
- AttrRtlDirective
10740
+ AttrRtlDirective,
10741
+ CopyDirective
10654
10742
  ];
10655
10743
  const pipes = [
10656
10744
  NumeralPipe,
@@ -10684,7 +10772,8 @@ const pipes = [
10684
10772
  MergeFieldsToColumnsPipe,
10685
10773
  FindColumnByDbNamePipe,
10686
10774
  FilterColumnsByDetailsPipe,
10687
- MoInfoUlvMoListPipe
10775
+ MoInfoUlvMoListPipe,
10776
+ ReversePipe
10688
10777
  ];
10689
10778
  class BarsaNovinRayCoreModule extends BaseModule {
10690
10779
  constructor(dcm, componentFactoryResolver) {
@@ -10835,7 +10924,8 @@ BarsaNovinRayCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
10835
10924
  MergeFieldsToColumnsPipe,
10836
10925
  FindColumnByDbNamePipe,
10837
10926
  FilterColumnsByDetailsPipe,
10838
- MoInfoUlvMoListPipe, PlaceHolderDirective,
10927
+ MoInfoUlvMoListPipe,
10928
+ ReversePipe, PlaceHolderDirective,
10839
10929
  NumbersOnlyInputDirective,
10840
10930
  RenderUlvViewerDirective,
10841
10931
  RenderUlvPaginDirective,
@@ -10850,7 +10940,8 @@ BarsaNovinRayCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
10850
10940
  EllipsifyDirective,
10851
10941
  TableResizerDirective,
10852
10942
  ColumnResizerDirective,
10853
- AttrRtlDirective], imports: [CommonModule, HttpClientModule, BarsaNovinRayCoreRoutingModule, BarsaSapUiFormPageModule], exports: [FormComponent,
10943
+ AttrRtlDirective,
10944
+ CopyDirective], imports: [CommonModule, HttpClientModule, BarsaNovinRayCoreRoutingModule, BarsaSapUiFormPageModule], exports: [FormComponent,
10854
10945
  FieldUiComponent,
10855
10946
  NotFoundComponent,
10856
10947
  RootPageComponent,
@@ -10898,7 +10989,8 @@ BarsaNovinRayCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
10898
10989
  MergeFieldsToColumnsPipe,
10899
10990
  FindColumnByDbNamePipe,
10900
10991
  FilterColumnsByDetailsPipe,
10901
- MoInfoUlvMoListPipe, PlaceHolderDirective,
10992
+ MoInfoUlvMoListPipe,
10993
+ ReversePipe, PlaceHolderDirective,
10902
10994
  NumbersOnlyInputDirective,
10903
10995
  RenderUlvViewerDirective,
10904
10996
  RenderUlvPaginDirective,
@@ -10913,7 +11005,8 @@ BarsaNovinRayCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
10913
11005
  EllipsifyDirective,
10914
11006
  TableResizerDirective,
10915
11007
  ColumnResizerDirective,
10916
- AttrRtlDirective] });
11008
+ AttrRtlDirective,
11009
+ CopyDirective] });
10917
11010
  BarsaNovinRayCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarsaNovinRayCoreModule, imports: [CommonModule, HttpClientModule, BarsaNovinRayCoreRoutingModule, BarsaSapUiFormPageModule] });
10918
11011
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarsaNovinRayCoreModule, decorators: [{
10919
11012
  type: NgModule,
@@ -10929,5 +11022,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
10929
11022
  * Generated bundle index. Do not edit.
10930
11023
  */
10931
11024
 
10932
- export { APP_VERSION, AffixRespondEvents, AllFilesMimeType, AnchorScrollDirective, ApiService, ApplicationBaseComponent, AttrRtlDirective, AudioMimeType, AudioRecordingService, AuthGuard, BarsaApi, BarsaDialogService, BarsaIconDictPipe, BarsaNovinRayCoreModule, BarsaStorageService, BaseComponent, BaseDirective, BaseDynamicComponent, BaseFormToolbaritemPropsComponent, BaseItemContentPropsComponent, BaseModule, BaseReportModel, BaseUlvSettingComponent, BaseViewContentPropsComponent, BaseViewItemPropsComponent, BaseViewPropsComponent, BbbTranslatePipe, BoolControlInfoModel, BreadcrumbService, CalculateControlInfoModel, CanUploadFilePipe, CodeEditorControlInfoModel, ColSetting, ColumnResizerDirective, CommandControlInfoModel, ContainerComponent, ContainerService, ContextMenuPipe, ControlUiPipe, ConvertToStylePipe, CustomCommand, CustomInjector, CustomRouteReuseStategy, DIALOG_SERVICE, DateHijriService, DateMiladiService, DateRanges, DateService, DateShamsiService, DateTimeControlInfoModel, DateTimeToCaptionPipe, DeviceWidth, DialogParams, DynamicCommandDirective, DynamicComponentService, DynamicFormComponent, DynamicFormToolbaritemComponent, DynamicItemComponent, DynamicLayoutComponent, EllipsifyDirective, EmptyPageComponent, EmptyPageWithRouterAndRouterOutletComponent, EnumControlInfoModel, ExecuteDynamicCommand, ExecuteWorkflowChoiceDef, FORM_DIALOG_COMPONENT, FieldBaseComponent, FieldDirective, FieldInfoTypeEnum, FieldUiComponent, FileControlInfoModel, FileInfoCountPipe, FilePictureInfoModel, FilesValidationHelper, FilterColumnsByDetailsPipe, FilterPipe, FilterStringPipe, FilterTabPipe, FilterToolbarControlPipe, FindColumnByDbNamePipe, FioriIconPipe, FormBaseComponent, FormComponent, FormNewComponent, FormPageBaseComponent, FormPageComponent, FormPanelService, FormPropsBaseComponent, FormService, FormToolbarBaseComponent, GaugeControlInfoModel, GeneralControlInfoModel, GetAllColumnsSorted, GetDefaultMoObjectInfo, GridSetting, GroupByPipe, HeaderFacetValuePipe, HistoryControlInfoModel, HorizontalLayoutService, IconControlInfoModel, ImageLazyDirective, ImageMimeType, IndexedDbService, InputNumber, IntersectionObserverDirective, IntersectionStatus, ItemsRendererDirective, LayoutItemBaseComponent, LayoutPanelBaseComponent, LayoutService, LinearListControlInfoModel, LinearListHelper, ListCountPipe, ListRelationModel, LocalStorageService, LogService, MergeFieldsToColumnsPipe, MetaobjectDataModel, MetaobjectRelationModel, MoForReportModel, MoInfoUlvMoListPipe, MoReportValueConcatPipe, MoReportValuePipe, MoValuePipe, ModalRootComponent, MultipleGroupByPipe, NOTIFICATAION_POPUP_SERVER, NOTIFICATION_WEBWORKER_FACTORY, NetworkStatusService, NotFoundComponent, NotificationService, NumberBaseComponent, NumberControlInfoModel, NumbersOnlyInputDirective, NumeralPipe, PageBaseComponent, PageWithFormHandlerBaseComponent, PdfMimeType, PictureFieldSourcePipe, PictureFileControlInfoModel, PlaceHolderDirective, PortalDynamicPageResolver, PortalFormPageResolver, PortalPageComponent, PortalPageResolver, PortalReportPageResolver, PortalService, PreventDefaulEvent, PromptUpdateService, RabetehAkseTakiListiControlInfoModel, RedirectHomeGuard, RedirectReportNavigatorCommandComponent, RelatedReportControlInfoModel, RelationListControlInfoModel, RemoveNewlinePipe, RenderUlvPaginDirective, RenderUlvViewerDirective, ReportBaseComponent, ReportBaseInfo, ReportCalendarModel, ReportContainerComponent, ReportExtraInfo, ReportField, ReportFormModel, ReportItemBaseComponent, ReportListModel, ReportModel, ReportTreeModel, ReportViewBaseComponent, ReportViewColumn, RichStringControlInfoModel, RootPageComponent, RootPortalComponent, RowDataOption, SeperatorFixPipe, ServiceWorkerNotificationService, SingleRelationControlInfoModel, SortPipe, SortSetting, StringControlInfoModel, SubformControlInfoModel, SystemBaseComponent, TableResizerDirective, TlbButtonsPipe, TotalSummaryPipe, UiService, UlvCommandDirective, UlvMainService, UntilInViewDirective, UploadService, VideoMimeType, VideoRecordingService, VisibleValuePipe, WordMimeType, WorfkflowwChoiceCommandDirective, availablePrefixes, cancelRequestAnimationFrame, createFormPanelMetaConditions, createGridEditorFormPanel, easeInOutCubic, elementInViewport2, enumValueToStringSize, formatBytes, fromIntersectionObserver, genrateInlineMoId, getComponentDefined, getControlList, getControlSizeMode, getDateService, getDeviceIsDesktop, getDeviceIsMobile, getDeviceIsPhone, getDeviceIsTablet, getFormSettings, getGridSettings, getHeaderValue, getIcon, getImagePath, getLayout94ObjectInfo, getLayoutControl, getNewMoGridEditor, getRequestAnimationFrame, getTargetRect, getUniqueId, getValidExtension, isFunction, isImage, isTargetWindow, requestAnimationFramePolyfill, shallowEqual, throwIfAlreadyLoaded, toNumber };
11025
+ export { APP_VERSION, AffixRespondEvents, AllFilesMimeType, AnchorScrollDirective, ApiService, ApplicationBaseComponent, AttrRtlDirective, AudioMimeType, AudioRecordingService, AuthGuard, BarsaApi, BarsaDialogService, BarsaIconDictPipe, BarsaNovinRayCoreModule, BarsaStorageService, BaseComponent, BaseDirective, BaseDynamicComponent, BaseFormToolbaritemPropsComponent, BaseItemContentPropsComponent, BaseModule, BaseReportModel, BaseUlvSettingComponent, BaseViewContentPropsComponent, BaseViewItemPropsComponent, BaseViewPropsComponent, BbbTranslatePipe, BoolControlInfoModel, BreadcrumbService, CalculateControlInfoModel, CanUploadFilePipe, CodeEditorControlInfoModel, ColSetting, ColumnResizerDirective, CommandControlInfoModel, ContainerComponent, ContainerService, ContextMenuPipe, ControlUiPipe, ConvertToStylePipe, CopyDirective, CustomCommand, CustomInjector, CustomRouteReuseStategy, DIALOG_SERVICE, DateHijriService, DateMiladiService, DateRanges, DateService, DateShamsiService, DateTimeControlInfoModel, DateTimeToCaptionPipe, DeviceWidth, DialogParams, DynamicCommandDirective, DynamicComponentService, DynamicFormComponent, DynamicFormToolbaritemComponent, DynamicItemComponent, DynamicLayoutComponent, EllipsifyDirective, EmptyPageComponent, EmptyPageWithRouterAndRouterOutletComponent, EnumControlInfoModel, ExecuteDynamicCommand, ExecuteWorkflowChoiceDef, FORM_DIALOG_COMPONENT, FieldBaseComponent, FieldDirective, FieldInfoTypeEnum, FieldUiComponent, FileControlInfoModel, FileInfoCountPipe, FilePictureInfoModel, FilesValidationHelper, FilterColumnsByDetailsPipe, FilterPipe, FilterStringPipe, FilterTabPipe, FilterToolbarControlPipe, FindColumnByDbNamePipe, FioriIconPipe, FormBaseComponent, FormComponent, FormNewComponent, FormPageBaseComponent, FormPageComponent, FormPanelService, FormPropsBaseComponent, FormService, FormToolbarBaseComponent, GaugeControlInfoModel, GeneralControlInfoModel, GetAllColumnsSorted, GetDefaultMoObjectInfo, GridSetting, GroupByPipe, HeaderFacetValuePipe, HistoryControlInfoModel, HorizontalLayoutService, IconControlInfoModel, ImageLazyDirective, ImageMimeType, IndexedDbService, InputNumber, IntersectionObserverDirective, IntersectionStatus, ItemsRendererDirective, LayoutItemBaseComponent, LayoutPanelBaseComponent, LayoutService, LinearListControlInfoModel, LinearListHelper, ListCountPipe, ListRelationModel, LocalStorageService, LogService, MergeFieldsToColumnsPipe, MetaobjectDataModel, MetaobjectRelationModel, MoForReportModel, MoInfoUlvMoListPipe, MoReportValueConcatPipe, MoReportValuePipe, MoValuePipe, ModalRootComponent, MultipleGroupByPipe, NOTIFICATAION_POPUP_SERVER, NOTIFICATION_WEBWORKER_FACTORY, NetworkStatusService, NotFoundComponent, NotificationService, NumberBaseComponent, NumberControlInfoModel, NumbersOnlyInputDirective, NumeralPipe, PageBaseComponent, PageWithFormHandlerBaseComponent, PdfMimeType, PictureFieldSourcePipe, PictureFileControlInfoModel, PlaceHolderDirective, PortalDynamicPageResolver, PortalFormPageResolver, PortalPageComponent, PortalPageResolver, PortalReportPageResolver, PortalService, PreventDefaulEvent, PromptUpdateService, RabetehAkseTakiListiControlInfoModel, RedirectHomeGuard, RedirectReportNavigatorCommandComponent, RelatedReportControlInfoModel, RelationListControlInfoModel, RemoveNewlinePipe, RenderUlvPaginDirective, RenderUlvViewerDirective, ReportBaseComponent, ReportBaseInfo, ReportCalendarModel, ReportContainerComponent, ReportExtraInfo, ReportField, ReportFormModel, ReportItemBaseComponent, ReportListModel, ReportModel, ReportTreeModel, ReportViewBaseComponent, ReportViewColumn, ReversePipe, RichStringControlInfoModel, RootPageComponent, RootPortalComponent, RowDataOption, SeperatorFixPipe, ServiceWorkerNotificationService, SingleRelationControlInfoModel, SortPipe, SortSetting, StringControlInfoModel, SubformControlInfoModel, SystemBaseComponent, TOAST_SERVICE, TableResizerDirective, TlbButtonsPipe, TotalSummaryPipe, UiService, UlvCommandDirective, UlvMainService, UntilInViewDirective, UploadService, VideoMimeType, VideoRecordingService, VisibleValuePipe, WordMimeType, WorfkflowwChoiceCommandDirective, availablePrefixes, cancelRequestAnimationFrame, createFormPanelMetaConditions, createGridEditorFormPanel, easeInOutCubic, elementInViewport2, enumValueToStringSize, formatBytes, fromIntersectionObserver, genrateInlineMoId, getComponentDefined, getControlList, getControlSizeMode, getDateService, getDeviceIsDesktop, getDeviceIsMobile, getDeviceIsPhone, getDeviceIsTablet, getFormSettings, getGridSettings, getHeaderValue, getIcon, getImagePath, getLayout94ObjectInfo, getLayoutControl, getNewMoGridEditor, getRequestAnimationFrame, getTargetRect, getUniqueId, getValidExtension, isFirefox, isFunction, isImage, isTargetWindow, requestAnimationFramePolyfill, shallowEqual, throwIfAlreadyLoaded, toNumber };
10933
11026
  //# sourceMappingURL=barsa-novin-ray-core.mjs.map