@easydata/crud 1.5.7 → 1.5.10

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.
@@ -1,7 +1,8 @@
1
1
 
2
2
  /*
3
- * EasyData.JS CRUD v1.5.7
4
- * Copyright 2020-2024 Korzh.com
3
+ * EasyData.JS CRUD v1.5.10
4
+ * Build time: 1/5/2026, 9:15:51 PM
5
+ * Copyright 2020-2026 Korzh.com
5
6
  * Licensed under MIT
6
7
  */
7
8
 
@@ -1,11 +1,12 @@
1
1
 
2
2
  /*
3
- * EasyData.JS CRUD v1.5.7
4
- * Copyright 2020-2024 Korzh.com
3
+ * EasyData.JS CRUD v1.5.10
4
+ * Build time: 1/5/2026, 9:15:51 PM
5
+ * Copyright 2020-2026 Korzh.com
5
6
  * Licensed under MIT
6
7
  */
7
8
 
8
- import { EasyDataTable, utils, DataType, i18n, EntityAttrKind, EditorTag, ValueEditor, DataRow, HttpClient, MetaData, combinePath } from '@easydata/core';
9
+ import { EasyDataTable, utils, i18n, DataType, EntityAttrKind, EditorTag, ValueEditor, DataRow, HttpClient, MetaData, combinePath } from '@easydata/core';
9
10
  import { domel, CellRendererType, browserUtils, DFMT_REGEX, DefaultDialogService, EasyGrid, DefaultDateTimePicker } from '@easydata/ui';
10
11
 
11
12
  class TextDataFilter {
@@ -1,4 +1,4 @@
1
- import { HttpClient, MetaData, MetaEntity, EasyDataTable, EasyDataTableOptions, DataLoader } from '@easydata/core';
1
+ import { MetaData, EasyDataTable, EasyDataTableOptions, DataLoader } from '@easydata/core';
2
2
  import { DataFilter } from '../filter/data_filter';
3
3
  type EasyDataEndpointKey = 'GetMetaData' | 'FetchDataset' | 'FetchRecord' | 'CreateRecord' | 'UpdateRecord' | 'DeleteRecord';
4
4
  interface CompoundRecordKey {
@@ -29,11 +29,11 @@ export declare class DataContext {
29
29
  createFilter(sourceId: string, data: EasyDataTable, isLookup?: boolean): DataFilter;
30
30
  loadMetaData(): Promise<MetaData>;
31
31
  getHttpClient(): HttpClient;
32
- fetchDataset(): Promise<EasyDataTable>;
33
- fetchRecord(keys: CompoundRecordKey, sourceId?: string): Promise<any>;
34
- createRecord(obj: any, sourceId?: string): Promise<any>;
35
- updateRecord(obj: any, sourceId?: string): Promise<any>;
36
- deleteRecord(obj: any, sourceId?: string): Promise<any>;
32
+ fetchDataset(): any;
33
+ fetchRecord(keys: CompoundRecordKey, sourceId?: string): any;
34
+ createRecord(obj: any, sourceId?: string): any;
35
+ updateRecord(obj: any, sourceId?: string): any;
36
+ deleteRecord(obj: any, sourceId?: string): any;
37
37
  setEndpoint(key: EasyDataEndpointKey, value: string): void;
38
38
  setEnpointIfNotExist(key: EasyDataEndpointKey, value: string): void;
39
39
  private endpointVarsRegex;
@@ -0,0 +1,7 @@
1
+ import { DataChunkDescriptor, DataLoader } from '@easydata/core';
2
+ import { DataContext } from './data_context';
3
+ export declare class EasyDataServerLoader implements DataLoader {
4
+ protected context: DataContext;
5
+ constructor(context: DataContext);
6
+ loadChunk(params: DataChunkDescriptor | any): any;
7
+ }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@easydata/crud",
3
- "version": "1.5.7",
3
+ "version": "1.5.10",
4
4
  "description": "EasyData.JS UI widgets and views for CRUD manipulations",
5
5
  "types": "./dist/types/public_api.d.ts",
6
6
  "main": "./dist/easydata.crud.cjs.js",
7
7
  "module": "./dist/easydata.crud.esm.js",
8
8
  "scripts": {
9
- "test": "vitest run",
9
+ "test": "cross-env NODE_OPTIONS=\"--import tsx\" latte -d -v -t --include=./**/*.test.ts",
10
10
  "clear": "shx rm -rf dist/* docs/* lib/*",
11
11
  "build": "npm run clear && rollup -c",
12
12
  "watch": "rollup -c -w",
@@ -1,11 +0,0 @@
1
- import { DataChunkDescriptor, DataLoader, EasyDataTable } from '@easydata/core';
2
- import { DataContext } from './data_context';
3
- export declare class EasyDataServerLoader implements DataLoader {
4
- protected context: DataContext;
5
- constructor(context: DataContext);
6
- loadChunk(params: DataChunkDescriptor | any): Promise<{
7
- table: EasyDataTable;
8
- total: number;
9
- hasNext: boolean;
10
- }>;
11
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes