ngx-rs-ant 2.3.0 → 2.3.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.
@@ -2254,40 +2254,9 @@ class DataGridFactory {
2254
2254
  break;
2255
2255
  case 'DOUBLE':
2256
2256
  case 'INTEGER':
2257
- column.headerFilter.dataSource = (options) => {
2258
- options.dataSource.postProcess = (data) => {
2259
- data.unshift({
2260
- key: '',
2261
- value: null,
2262
- text: '(空白)'
2263
- });
2264
- data.push({
2265
- key: '__',
2266
- value: '__',
2267
- text: '__',
2268
- visible: false
2269
- });
2270
- };
2271
- };
2272
2257
  column.alignment = 'right';
2273
2258
  break;
2274
2259
  case 'STRING':
2275
- column.headerFilter.dataSource = (options) => {
2276
- // TODO 超过20条会分页添加多次,不分页前端性能差,考虑在构建dataSource时处理,与日期类型存在冲突
2277
- options.dataSource.postProcess = (data) => {
2278
- data.unshift({
2279
- key: '',
2280
- value: null,
2281
- text: '(空白)'
2282
- });
2283
- data.push({
2284
- key: '__',
2285
- value: '__',
2286
- text: '__',
2287
- visible: false
2288
- });
2289
- };
2290
- };
2291
2260
  switch (field.config.constraint.type) {
2292
2261
  case 'USER':
2293
2262
  if (column.viewConfig) {
@@ -2299,7 +2268,7 @@ class DataGridFactory {
2299
2268
  column.headerFilter.dataSource = {
2300
2269
  store: new CustomStore({
2301
2270
  load: () => {
2302
- const filter = JSON.stringify(dataGridInstance.getCombinedFilter());
2271
+ const filter = JSON.stringify(dataGridInstance.instance.getCombinedFilter());
2303
2272
  return lastValueFrom(this.service.getUserColumnDataSource(tenant, className, view, field.name, filter));
2304
2273
  }
2305
2274
  }),
@@ -2344,7 +2313,7 @@ class DataGridFactory {
2344
2313
  column.headerFilter.dataSource = {
2345
2314
  store: new CustomStore({
2346
2315
  load: () => {
2347
- const filter = JSON.stringify(dataGridInstance.getCombinedFilter());
2316
+ const filter = JSON.stringify(dataGridInstance.instance.getCombinedFilter());
2348
2317
  return lastValueFrom(this.service.getUnitColumnDataSource(tenant, className, view, field.name, filter));
2349
2318
  }
2350
2319
  }),
@@ -2383,7 +2352,7 @@ class DataGridFactory {
2383
2352
  column.headerFilter.dataSource = {
2384
2353
  store: new CustomStore({
2385
2354
  load: () => {
2386
- const filter = JSON.stringify(dataGridInstance.getCombinedFilter());
2355
+ const filter = JSON.stringify(dataGridInstance.instance.getCombinedFilter());
2387
2356
  return lastValueFrom(this.service.getConstraintColumnDataSource(tenant, className, view, field.name, field.config.constraint.name, filter));
2388
2357
  }
2389
2358
  }),
@@ -3017,7 +2986,7 @@ class DataGridComponent {
3017
2986
  }
3018
2987
  reload() {
3019
2988
  this.columns.length = 0;
3020
- this.factory.makeDataGridColumns(this.tenant, this.className, this.view, this).subscribe(columns => {
2989
+ this.factory.makeDataGridColumns(this.tenant, this.className, this.view, this.dxDataGrid).subscribe(columns => {
3021
2990
  if (this.customColumnFn) {
3022
2991
  this.customColumnFn(columns);
3023
2992
  }
@@ -3337,6 +3306,7 @@ DataGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
3337
3306
  CellComponentTemplateComponent], imports: [CommonModule,
3338
3307
  DevExtremeModule,
3339
3308
  FormModule], exports: [DataGridComponent,
3309
+ CellComponentTemplateComponent,
3340
3310
  RowButtonsTemplateDirective,
3341
3311
  CustomTemplateDirective] });
3342
3312
  DataGridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DataGridModule, imports: [CommonModule,
@@ -3359,6 +3329,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
3359
3329
  ],
3360
3330
  exports: [
3361
3331
  DataGridComponent,
3332
+ CellComponentTemplateComponent,
3362
3333
  RowButtonsTemplateDirective,
3363
3334
  CustomTemplateDirective
3364
3335
  ]
@@ -5172,5 +5143,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
5172
5143
  * Generated bundle index. Do not edit.
5173
5144
  */
5174
5145
 
5175
- export { BoxContainerComponent, BoxContainerModule, CamundaBpmnEditorComponent, CamundaBpmnEditorModule, CamundaBpmnViewerComponent, CamundaBpmnViewerModule, CellComponentBase, CellConfigBase, ChangeFilter, CodeEditorComponent, CodeEditorModule, CustomTemplateDirective, DataGridComponent, DataGridFactory, DataGridModule, DataGridService, DrawerComponent, DrawerModule, DrawerService, DxNativeElementPipe, DynamicParamsComponent, DynamicParamsModule, FieldSelectorComponent, FormComponent, FormItemComponentBase, FormItemConfigBase, FormModule, FormService, FullscreenDirective, IconSelectorComponent, IconSelectorModule, ItemConfigComponent, ItemStyleComponent, MarkItemComponentBase, MarkItemConfigBase, ModalComponent, ModalComponentBase, ModalConfigBase, ModalModule, ModalService, NodeComponent, PageItemComponentBase, PageItemConfigBase, PdfViewerComponent, PluginManager, RowButtonsTemplateDirective, SectionComponent, SectionModule, SectionService, TooltipContentTemplateDirective, WebsocketModule, WebsocketService, WordDesignerComponent, WordDesignerModule, WordEditorComponent, WordEditorModule, addWatermark, deepClone, downloadFile, evaluateFilter, fileTypeIcon, filenameFromDisposition, formatFileSize, localeSortMethod, notifyError, notifySuccess, notifyWarning, openBrowserTab, supportPreviewExt, validate, validateGroup, validateGroupByName };
5146
+ export { BoxContainerComponent, BoxContainerModule, CamundaBpmnEditorComponent, CamundaBpmnEditorModule, CamundaBpmnViewerComponent, CamundaBpmnViewerModule, CellComponentBase, CellComponentTemplateComponent, CellConfigBase, ChangeFilter, CodeEditorComponent, CodeEditorModule, CustomTemplateDirective, DataGridComponent, DataGridFactory, DataGridModule, DataGridService, DrawerComponent, DrawerModule, DrawerService, DxNativeElementPipe, DynamicParamsComponent, DynamicParamsModule, FieldSelectorComponent, FormComponent, FormItemComponentBase, FormItemConfigBase, FormModule, FormService, FullscreenDirective, IconSelectorComponent, IconSelectorModule, ItemConfigComponent, ItemStyleComponent, MarkItemComponentBase, MarkItemConfigBase, ModalComponent, ModalComponentBase, ModalConfigBase, ModalModule, ModalService, NodeComponent, PageItemComponentBase, PageItemConfigBase, PdfViewerComponent, PluginManager, RowButtonsTemplateDirective, SectionComponent, SectionModule, SectionService, TooltipContentTemplateDirective, WebsocketModule, WebsocketService, WordDesignerComponent, WordDesignerModule, WordEditorComponent, WordEditorModule, addWatermark, deepClone, downloadFile, evaluateFilter, fileTypeIcon, filenameFromDisposition, formatFileSize, localeSortMethod, notifyError, notifySuccess, notifyWarning, openBrowserTab, supportPreviewExt, validate, validateGroup, validateGroupByName };
5176
5147
  //# sourceMappingURL=ngx-rs-ant.mjs.map