ngx-rs-ant 2.0.1 → 2.0.2

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.
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
2
2
  import { Component, Input, HostBinding, EventEmitter, Output, HostListener, ViewContainerRef, ViewChild, Directive, ViewChildren, NgModule, Injectable, ContentChild } from '@angular/core';
3
3
  import { PluginFactory } from 'coast-plugin-register';
4
4
  import * as i1 from '@angular/common';
5
- import { CommonModule, formatDate } from '@angular/common';
5
+ import { CommonModule } from '@angular/common';
6
6
  import { Subject, ReplaySubject, Subscription, map, firstValueFrom, of, lastValueFrom, debounceTime, interval } from 'rxjs';
7
7
  import * as i2 from 'devextreme-angular/ui/number-box';
8
8
  import * as i2$1 from 'devextreme-angular/ui/draggable';
@@ -526,7 +526,7 @@ class BoxItemComponent {
526
526
  case 'plugin':
527
527
  const componentRef = PluginManager.createComponent(this, i, item.style, item.config);
528
528
  if (activeIndex === i) {
529
- componentRef.location.nativeElement.click();
529
+ componentRef.location.nativeElement.lastChild.click();
530
530
  }
531
531
  break;
532
532
  case 'item':
@@ -1800,12 +1800,6 @@ function _notify(message, time, type) {
1800
1800
  position: 'bottom right'
1801
1801
  });
1802
1802
  }
1803
- function format_date(date, locale) {
1804
- return formatDate(date, 'yyyy/MM/dd', locale, 'GMT+8');
1805
- }
1806
- function format_datetime(date, locale) {
1807
- return formatDate(date, 'yyyy/MM/dd HH:mm:ss', locale, 'GMT+8');
1808
- }
1809
1803
  function localeSortMethod(value1, value2) {
1810
1804
  return value1.localeCompare(value2);
1811
1805
  }
@@ -2101,6 +2095,7 @@ class DataGridFactory {
2101
2095
  });
2102
2096
  };
2103
2097
  };
2098
+ column.alignment = 'right';
2104
2099
  break;
2105
2100
  case 'STRING':
2106
2101
  column.headerFilter.dataSource = (options) => {
@@ -2761,7 +2756,7 @@ class DataGridComponent {
2761
2756
  this.viewContainerRef = viewContainerRef;
2762
2757
  this.tenant = 'T';
2763
2758
  this.keyExpr = ''; // 用于实例属性选择器,加载组件值时以选中字段为主键获取选中行数据
2764
- this.onlyFrontEnd = false; // 仅前端,不通过获取表格数据
2759
+ this.onlyFrontEnd = false; // 仅前端,需指定dataSource,不自动获取表格数据
2765
2760
  this.disablePage = false;
2766
2761
  this.dataSource = {};
2767
2762
  this.selectionMode = 'none';
@@ -2778,7 +2773,6 @@ class DataGridComponent {
2778
2773
  this.onRowDblClick = new EventEmitter();
2779
2774
  this.onSelectionChanged = new EventEmitter();
2780
2775
  this.columns = [];
2781
- this.CustomTemplateDirective = CustomTemplateDirective;
2782
2776
  }
2783
2777
  ngOnInit() {
2784
2778
  this.reload();
@@ -2814,7 +2808,7 @@ class DataGridComponent {
2814
2808
  });
2815
2809
  if (this.onlyFrontEnd) {
2816
2810
  if (this.dataSource && !Array.isArray(this.dataSource)) {
2817
- notify_error('if onlyFrontEnd set true, you have to set dataSource as an Array');
2811
+ notify_error('onlyFrontEnd参数为true,需要明确指定dataSource参数为数组');
2818
2812
  }
2819
2813
  }
2820
2814
  else {
@@ -3847,5 +3841,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
3847
3841
  * Generated bundle index. Do not edit.
3848
3842
  */
3849
3843
 
3850
- export { BoxContainerComponent, BoxContainerModule, CamundaBpmnEditorComponent, CamundaBpmnEditorModule, CamundaBpmnViewerComponent, CamundaBpmnViewerModule, CellComponentBase, CellConfigBase, ChangeFilter, CodeEditorComponent, CodeEditorModule, CustomTemplateDirective, DataGridComponent, DataGridFactory, DataGridModule, DataGridService, DrawerComponent, DrawerModule, DrawerService, DynamicParamsComponent, DynamicParamsModule, FieldSelectorComponent, FormComponent, FormItemComponentBase, FormItemConfigBase, FormModule, FormService, FullscreenDirective, IconSelectorComponent, IconSelectorModule, ItemConfigComponent, ItemStyleComponent, ModalComponent, ModalComponentBase, ModalConfigBase, ModalModule, ModalService, PageItemComponentBase, PageItemConfigBase, PdfViewerComponent, PluginManager, RowButtonsTemplateDirective, TooltipContentTemplateDirective, WebsocketModule, WebsocketService, download_file, file_type_icon, filename_from_disposition, format_date, format_datetime, format_file_size, localeSortMethod, notify_error, notify_success, notify_warning, support_preview_ext, validate, validate_group, validate_group_by_name };
3844
+ export { BoxContainerComponent, BoxContainerModule, CamundaBpmnEditorComponent, CamundaBpmnEditorModule, CamundaBpmnViewerComponent, CamundaBpmnViewerModule, CellComponentBase, CellConfigBase, ChangeFilter, CodeEditorComponent, CodeEditorModule, CustomTemplateDirective, DataGridComponent, DataGridFactory, DataGridModule, DataGridService, DrawerComponent, DrawerModule, DrawerService, DynamicParamsComponent, DynamicParamsModule, FieldSelectorComponent, FormComponent, FormItemComponentBase, FormItemConfigBase, FormModule, FormService, FullscreenDirective, IconSelectorComponent, IconSelectorModule, ItemConfigComponent, ItemStyleComponent, ModalComponent, ModalComponentBase, ModalConfigBase, ModalModule, ModalService, PageItemComponentBase, PageItemConfigBase, PdfViewerComponent, PluginManager, RowButtonsTemplateDirective, TooltipContentTemplateDirective, WebsocketModule, WebsocketService, download_file, file_type_icon, filename_from_disposition, format_file_size, localeSortMethod, notify_error, notify_success, notify_warning, support_preview_ext, validate, validate_group, validate_group_by_name };
3851
3845
  //# sourceMappingURL=ngx-rs-ant.mjs.map