ngx-rs-ant 2.0.0 → 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';
@@ -142,10 +142,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
142
142
  class PluginNotFoundComponent {
143
143
  }
144
144
  PluginNotFoundComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PluginNotFoundComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
145
- PluginNotFoundComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PluginNotFoundComponent, selector: "rs-plugin-not-found", ngImport: i0, template: "<div>\n <span>\u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25</span>\n</div>\n", styles: [":host{flex:1;margin:16px;border:1px solid var(--coast-border-color, rgb(221, 221, 221));display:flex;flex-flow:row nowrap;justify-content:center}:host div{flex:1;padding:16px;display:flex;flex-flow:row nowrap;justify-content:center;align-items:center}:host div span{color:var(--coast-danger-color, rgb(217, 83, 79));text-align:center;-webkit-user-select:none;user-select:none}\n"] });
145
+ PluginNotFoundComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PluginNotFoundComponent, selector: "rs-plugin-not-found", ngImport: i0, template: "<div>\n <span>\u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25</span>\n</div>\n", styles: [":host{flex:1;margin:16px;border:1px solid var(--coast-border-color, rgb(221, 221, 221));border-radius:4px;display:flex;flex-flow:row nowrap;justify-content:center}:host div{flex:1;padding:16px;display:flex;flex-flow:row nowrap;justify-content:center;align-items:center}:host div span{color:var(--coast-danger-color, rgb(217, 83, 79));text-align:center;-webkit-user-select:none;user-select:none}\n"] });
146
146
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PluginNotFoundComponent, decorators: [{
147
147
  type: Component,
148
- args: [{ selector: 'rs-plugin-not-found', template: "<div>\n <span>\u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25</span>\n</div>\n", styles: [":host{flex:1;margin:16px;border:1px solid var(--coast-border-color, rgb(221, 221, 221));display:flex;flex-flow:row nowrap;justify-content:center}:host div{flex:1;padding:16px;display:flex;flex-flow:row nowrap;justify-content:center;align-items:center}:host div span{color:var(--coast-danger-color, rgb(217, 83, 79));text-align:center;-webkit-user-select:none;user-select:none}\n"] }]
148
+ args: [{ selector: 'rs-plugin-not-found', template: "<div>\n <span>\u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25</span>\n</div>\n", styles: [":host{flex:1;margin:16px;border:1px solid var(--coast-border-color, rgb(221, 221, 221));border-radius:4px;display:flex;flex-flow:row nowrap;justify-content:center}:host div{flex:1;padding:16px;display:flex;flex-flow:row nowrap;justify-content:center;align-items:center}:host div span{color:var(--coast-danger-color, rgb(217, 83, 79));text-align:center;-webkit-user-select:none;user-select:none}\n"] }]
149
149
  }] });
150
150
 
151
151
  class ConfigBlankComponent {
@@ -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 {
@@ -3020,6 +3014,7 @@ class FieldSelectorComponent {
3020
3014
  $event.stopPropagation();
3021
3015
  const findIndex = this._fields.findIndex((innerName) => innerName === field.innerName);
3022
3016
  this._fields.splice(findIndex, 1);
3017
+ this.fieldChange(this.__fields);
3023
3018
  }
3024
3019
  }
3025
3020
  FieldSelectorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FieldSelectorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
@@ -3846,5 +3841,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
3846
3841
  * Generated bundle index. Do not edit.
3847
3842
  */
3848
3843
 
3849
- 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 };
3850
3845
  //# sourceMappingURL=ngx-rs-ant.mjs.map