@vuu-ui/vuu-data-types 0.9.1 → 0.9.3

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.
Files changed (2) hide show
  1. package/index.d.ts +17 -7
  2. package/package.json +3 -3
package/index.d.ts CHANGED
@@ -61,6 +61,7 @@ export declare type DataValueValidationResult =
61
61
 
62
62
  export declare type DataValueValidationChecker = (
63
63
  value?: VuuRowDataItemType,
64
+ phase: EditPhase | "*",
64
65
  ) => DataValueValidationResult;
65
66
 
66
67
  export declare type EditRuleValidationSuccessResult = {
@@ -90,6 +91,8 @@ export declare type EditRuleValidator = (
90
91
  value?: VuuRowDataItemType,
91
92
  ) => EditRuleValidationResult;
92
93
 
94
+ export declare type EditPhase = "commit" | "change";
95
+
93
96
  /**
94
97
  * Edit validation functions (EditRuleValidator) must be registered with the component registry.
95
98
  * They can then be referenced by name from EditValidationRule(s)
@@ -97,10 +100,10 @@ export declare type EditRuleValidator = (
97
100
  export interface EditValidationRule {
98
101
  /**
99
102
  * when is the rule applied
100
- * - 'commit' - when suer commits change, e.g. by pressent ENTER (on an input), or TAB
103
+ * - 'commit' - when user commits change, e.g. by pressent ENTER (on an input), or TAB
101
104
  * - 'change' - for a text input, on every keystroke
102
105
  * */
103
- apply?: "commit" | "change";
106
+ phase?: EditPhase;
104
107
  name: string;
105
108
  message?: string;
106
109
  value?: string;
@@ -452,6 +455,9 @@ export interface SubscribeProps
452
455
  extends Partial<WithBaseFilter<WithFullConfig>> {
453
456
  viewport?: string;
454
457
  range?: VuuRange;
458
+ revealSelected?: boolean;
459
+ selectedIndexValues?: Selection;
460
+ selectedKeyValues?: string[];
455
461
  title?: string;
456
462
  }
457
463
 
@@ -466,12 +472,15 @@ export declare type RowSelectionEventHandler = (
466
472
  selectedRowCount: number,
467
473
  ) => void;
468
474
 
475
+ export type DataSourceConfigChangeHandler = (
476
+ config: WithBaseFilter<WithFullConfig>,
477
+ range: VuuRange,
478
+ confirmed?: boolean,
479
+ configChanges?: DataSourceConfigChanges,
480
+ ) => void;
481
+
469
482
  export declare type DataSourceEvents = {
470
- config: (
471
- config: WithBaseFilter<WithFullConfig>,
472
- confirmed?: boolean,
473
- configChanges?: DataSourceConfigChanges,
474
- ) => void;
483
+ config: DataSourceConfigChangeHandler;
475
484
  optimize: (optimize: OptimizeStrategy) => void;
476
485
  "page-count": (pageCount: number) => void;
477
486
  range: (range: VuuRange) => void;
@@ -703,6 +712,7 @@ export interface ConnectionQualityMetrics {
703
712
  export interface ServerProxySubscribeMessage extends WithFullConfig {
704
713
  bufferSize?: number;
705
714
  range: VuuRange;
715
+ selectedIndexValues?: Selection;
706
716
  table: VuuTable;
707
717
  title?: string;
708
718
  viewport: string;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@vuu-ui/vuu-data-types",
3
- "version": "0.9.1",
3
+ "version": "0.9.3",
4
4
  "author": "heswell",
5
5
  "license": "Apache-2.0",
6
6
  "devDependencies": {
7
- "@vuu-ui/vuu-filter-types": "0.9.1",
8
- "@vuu-ui/vuu-protocol-types": "0.9.1"
7
+ "@vuu-ui/vuu-filter-types": "0.9.3",
8
+ "@vuu-ui/vuu-protocol-types": "0.9.3"
9
9
  },
10
10
  "dependencies": {},
11
11
  "peerDependencies": {},