@vuu-ui/vuu-data-types 0.11.3 → 0.12.0
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.
- package/index.d.ts +0 -50
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import type {
|
|
|
5
5
|
TableSchema,
|
|
6
6
|
} from "@vuu-ui/vuu-data-types";
|
|
7
7
|
import type { Filter } from "@vuu-ui/vuu-filter-types";
|
|
8
|
-
import type { MenuActionClosePopup } from "@vuu-ui/vuu-popups";
|
|
9
8
|
import type {
|
|
10
9
|
LinkDescriptorWithLabel,
|
|
11
10
|
NoAction,
|
|
@@ -201,26 +200,6 @@ export declare type DataSourceRowObject = {
|
|
|
201
200
|
|
|
202
201
|
export declare type DataSourceRowPredicate = (row: DataSourceRow) => boolean;
|
|
203
202
|
|
|
204
|
-
export interface ContextMenuItemBase {
|
|
205
|
-
className?: string;
|
|
206
|
-
icon?: string;
|
|
207
|
-
label: string;
|
|
208
|
-
location?: string;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
export interface ContextMenuLeafItemDescriptor extends ContextMenuItemBase {
|
|
212
|
-
action: string;
|
|
213
|
-
options?: unknown;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
export declare type ContextMenuItemDescriptor =
|
|
217
|
-
| ContextMenuLeafItemDescriptor
|
|
218
|
-
| ContextMenuGroupItemDescriptor;
|
|
219
|
-
|
|
220
|
-
export interface ContextMenuGroupItemDescriptor extends ContextMenuItemBase {
|
|
221
|
-
children: ContextMenuItemDescriptor[];
|
|
222
|
-
}
|
|
223
|
-
|
|
224
203
|
export interface MessageWithClientViewportId {
|
|
225
204
|
clientViewportId: string;
|
|
226
205
|
}
|
|
@@ -372,35 +351,6 @@ export declare type ConfigChangeMessage =
|
|
|
372
351
|
|
|
373
352
|
export declare type ConfigChangeHandler = (msg: ConfigChangeMessage) => void;
|
|
374
353
|
|
|
375
|
-
/**
|
|
376
|
-
* MenuBuilder describes a factory function that creates
|
|
377
|
-
* Menu Item Descriptors appropriate to the supplied
|
|
378
|
-
* location. Location can be any string identifier, it
|
|
379
|
-
* can be used to determine which Menu Items to include
|
|
380
|
-
* in the menu. Most often used for ContextMenus.
|
|
381
|
-
*/
|
|
382
|
-
export declare type MenuBuilder<L = string, O = unknown> = (
|
|
383
|
-
location: L,
|
|
384
|
-
options: O,
|
|
385
|
-
) => ContextMenuItemDescriptor[];
|
|
386
|
-
|
|
387
|
-
/**
|
|
388
|
-
* MenuActionHandler describes a function that provides an implementation of
|
|
389
|
-
* one or more MenuItem actions. It will receive the type from the MenuItem
|
|
390
|
-
* clicked, plus any options object associated with that MenuItem.
|
|
391
|
-
*
|
|
392
|
-
* It should return true if it handled this MenuItem. This allows multiple Menu-
|
|
393
|
-
* ActionHandlers to be chained.
|
|
394
|
-
*/
|
|
395
|
-
export declare type MenuActionHandler = (
|
|
396
|
-
reason: MenuActionClosePopup,
|
|
397
|
-
) => boolean | undefined;
|
|
398
|
-
|
|
399
|
-
export interface ContextMenuContextType {
|
|
400
|
-
menuBuilders: MenuBuilder[];
|
|
401
|
-
menuActionHandler: MenuActionHandler;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
354
|
export declare type SchemaColumn = {
|
|
405
355
|
name: string;
|
|
406
356
|
serverDataType: VuuColumnDataType;
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuu-ui/vuu-data-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"author": "heswell",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"devDependencies": {
|
|
7
|
-
"@vuu-ui/vuu-filter-types": "0.
|
|
8
|
-
"@vuu-ui/vuu-protocol-types": "0.
|
|
7
|
+
"@vuu-ui/vuu-filter-types": "0.12.0",
|
|
8
|
+
"@vuu-ui/vuu-protocol-types": "0.12.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {},
|
|
11
11
|
"peerDependencies": {},
|